This commit is contained in:
xiaojunnuo
2024-11-01 00:59:09 +08:00
parent b817cb4a1b
commit 0165ccbaac
17 changed files with 131 additions and 47 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import crypto from "crypto";
import crypto from 'crypto';
function md5(data: string) {
return crypto.createHash("md5").update(data).digest("hex");
return crypto.createHash('md5').update(data).digest('hex');
}
export const hashUtils = {
@@ -71,6 +71,9 @@ export class Registry<T> {
if (define?.deprecated) {
continue;
}
if (!isDev() && define.name.startsWith("demo")) {
continue;
}
list.push({ ...define, key });
}
}