@massalabs/gossip-sdk 0.0.2-dev.20260623141203 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wasm/loader.js +1 -1
- package/package.json +1 -1
package/dist/wasm/loader.js
CHANGED
|
@@ -8,7 +8,6 @@ import { logger } from '../utils/logs.js';
|
|
|
8
8
|
* - Node.js / Jiti: init(bytes) with WASM bytes read from the filesystem
|
|
9
9
|
*/
|
|
10
10
|
import { init } from './bindings.js';
|
|
11
|
-
import gossipWasmUrl from '../assets/generated/wasm/gossip_wasm_bg.wasm?url';
|
|
12
11
|
const WASM_PATH = '../assets/generated/wasm/gossip_wasm_bg.wasm';
|
|
13
12
|
/**
|
|
14
13
|
* WASM Initialization State
|
|
@@ -57,6 +56,7 @@ export async function initializeWasm() {
|
|
|
57
56
|
else {
|
|
58
57
|
// Pre-fetch as ArrayBuffer so Safari doesn't choke on
|
|
59
58
|
// chunked Transfer-Encoding during instantiateStreaming.
|
|
59
|
+
const gossipWasmUrl = new URL('../assets/generated/wasm/gossip_wasm_bg.wasm', import.meta.url).toString();
|
|
60
60
|
const resp = await fetch(gossipWasmUrl);
|
|
61
61
|
const wasmBytes = await resp.arrayBuffer();
|
|
62
62
|
await init(wasmBytes);
|