@massalabs/gossip-sdk 0.0.2-dev.20260606015404 → 0.0.2-dev.20260623142907

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.
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massalabs/gossip-sdk",
3
- "version": "0.0.2-dev.20260606015404",
3
+ "version": "0.0.2-dev.20260623142907",
4
4
  "description": "Gossip SDK for automation, chatbot, and integration use cases",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",