migrate: move flock and hash utilities to shared package (#22640)

This commit is contained in:
Dax 2026-04-15 11:50:24 -04:00 committed by GitHub
commit 4ae7c77f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 929 additions and 41 deletions

View file

@ -0,0 +1,7 @@
import { createHash } from "crypto"
export namespace Hash {
export function fast(input: string | Buffer): string {
return createHash("sha1").update(input).digest("hex")
}
}