fix: change to release script to config directory

This commit is contained in:
2025-02-27 00:00:38 +08:00
parent 3477d098b7
commit 2b90bbab6f
8 changed files with 57 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
import * as nanoid from 'nanoid';
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
//HMAC-256推荐 32 字节。
// HMAC-512推荐 64 字节。
// jsonwentoken 默认使用 HMAC-256 算法,生成 32 字节的 token。
const v = nanoid.customAlphabet(alphabet, 32);
console.log('v', v());