perf: 优化跳过处理逻辑

This commit is contained in:
xiaojunnuo
2024-09-06 10:19:03 +08:00
parent 3bad0b2685
commit b80210f24b
6 changed files with 67 additions and 41 deletions
@@ -4,6 +4,7 @@ export * from "./util.log.js";
export * from "./util.file.js";
export * from "./util.sp.js";
export * as promises from "./util.promise.js";
export * from "./util.hash.js";
export const utils = {
sleep,
http: request,
@@ -0,0 +1,9 @@
import crypto from "crypto";
function md5(data: string) {
return crypto.createHash("md5").update(data).digest("hex");
}
export const hashUtils = {
md5,
};