UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

11 lines (10 loc) 406 B
//#region src/shared/utils/object-hash.ts async function getObjectHash(obj) { const str = JSON.stringify(obj); const buffer = new TextEncoder().encode(str); const hashBuffer = await crypto.subtle.digest("SHA-1", buffer); return Array.from(new Uint8Array(hashBuffer)).map((b) => b.toString(16).padStart(2, "0")).join(""); } //#endregion export { getObjectHash }; //# sourceMappingURL=object-hash.js.map