build: add precompiled CLI distribution
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { createHash } from 'node:crypto';
|
||||
export function hashPresenterToken(token) {
|
||||
return createHash('sha256').update(token.trim()).digest('hex');
|
||||
}
|
||||
export function hasPresenterToken(env = process.env) {
|
||||
return Boolean(env.PRESENTER_TOKEN?.trim());
|
||||
}
|
||||
//# sourceMappingURL=token.js.map
|
||||
Reference in New Issue
Block a user