@devcycle/bucketing-assembly-script
Advanced tools
Comparing version 1.0.28 to 1.0.30
@@ -0,1 +1,3 @@ | ||
/** Exported memory */ | ||
export declare const memory: WebAssembly.Memory; | ||
/** | ||
@@ -2,0 +4,0 @@ * assembly/index/generateBoundedHashesFromJSON |
@@ -246,2 +246,3 @@ async function instantiate(module, imports = {}) { | ||
export const { | ||
memory, | ||
generateBoundedHashesFromJSON, | ||
@@ -265,3 +266,6 @@ generateBucketedConfigForUser, | ||
await (async () => { | ||
try { return await globalThis.WebAssembly.compileStreaming(globalThis.fetch(url)); } | ||
try { | ||
const source = await globalThis.fetch(url) | ||
return await globalThis.WebAssembly.compileStreaming(source); | ||
} | ||
catch { return globalThis.WebAssembly.compile(await (await import("node:fs/promises")).readFile(url)); } | ||
@@ -268,0 +272,0 @@ })(), { |
{ | ||
"name": "@devcycle/bucketing-assembly-script", | ||
"version": "1.0.28", | ||
"version": "1.0.30", | ||
"license": "MIT", | ||
@@ -13,4 +13,4 @@ "type": "module", | ||
"devDependencies": { | ||
"@devcycle/bucketing-test-data": "^1.0.19" | ||
"@devcycle/bucketing-test-data": "^1.0.20" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2040287
392