blank project
This commit is contained in:
14
node_modules/astro/dist/assets/fonts/implementations/hasher.js
generated
vendored
Normal file
14
node_modules/astro/dist/assets/fonts/implementations/hasher.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import xxhash from "xxhash-wasm";
|
||||
import { sortObjectByKey } from "../utils.js";
|
||||
async function createXxHasher() {
|
||||
const { h64ToString: hashString } = await xxhash();
|
||||
return {
|
||||
hashString,
|
||||
hashObject(input) {
|
||||
return hashString(JSON.stringify(sortObjectByKey(input)));
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
createXxHasher
|
||||
};
|
||||
Reference in New Issue
Block a user