@miden-sdk/miden-sdk 0.14.0 → 0.14.1

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.js CHANGED
@@ -4,7 +4,17 @@
4
4
  async function loadWasm() {
5
5
  let wasmModule;
6
6
  if (!import.meta.env || (import.meta.env && !import.meta.env.SSR)) {
7
- wasmModule = await import('./Cargo-M1xGvXNQ.js');
7
+ wasmModule = await import('./Cargo-BZOulF0S.js');
8
+ // The Cargo glue's __wbg_init TLA is stripped by the rollup build to
9
+ // prevent blocking WKWebView module evaluation. Call it explicitly here
10
+ // with the WASM URL that the Cargo glue pre-resolves (relative to its
11
+ // own import.meta.url, which downstream bundlers handle correctly).
12
+ if (wasmModule && typeof wasmModule.__wbg_init === "function") {
13
+ await wasmModule.__wbg_init({
14
+ // eslint-disable-next-line camelcase -- wasm-bindgen init API parameter name
15
+ module_or_path: wasmModule.__wasm_url,
16
+ });
17
+ }
8
18
  }
9
19
  return wasmModule;
10
20
  }
package/dist/wasm.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wasm.js","sources":["../js/wasm.js"],"sourcesContent":["// This is a documented workaround that should avoid issues with Vite projects\n// https://github.com/wasm-tool/rollup-plugin-rust?tab=readme-ov-file#usage-with-vite\n// Also, this effectively disables SSR.\nasync function loadWasm() {\n let wasmModule;\n if (!import.meta.env || (import.meta.env && !import.meta.env.SSR)) {\n wasmModule = await import(\"../Cargo.toml\");\n }\n return wasmModule;\n}\nexport default loadWasm;\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,eAAe,QAAQ,GAAG;AAC1B,EAAE,IAAI,UAAU;AAChB,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AACrE,IAAI,UAAU,GAAG,MAAM,OAAO,qBAAe,CAAC;AAC9C,EAAE;AACF,EAAE,OAAO,UAAU;AACnB;;;;"}
1
+ {"version":3,"file":"wasm.js","sources":["../js/wasm.js"],"sourcesContent":["// This is a documented workaround that should avoid issues with Vite projects\n// https://github.com/wasm-tool/rollup-plugin-rust?tab=readme-ov-file#usage-with-vite\n// Also, this effectively disables SSR.\nasync function loadWasm() {\n let wasmModule;\n if (!import.meta.env || (import.meta.env && !import.meta.env.SSR)) {\n wasmModule = await import(\"../Cargo.toml\");\n // The Cargo glue's __wbg_init TLA is stripped by the rollup build to\n // prevent blocking WKWebView module evaluation. Call it explicitly here\n // with the WASM URL that the Cargo glue pre-resolves (relative to its\n // own import.meta.url, which downstream bundlers handle correctly).\n if (wasmModule && typeof wasmModule.__wbg_init === \"function\") {\n await wasmModule.__wbg_init({\n // eslint-disable-next-line camelcase -- wasm-bindgen init API parameter name\n module_or_path: wasmModule.__wasm_url,\n });\n }\n }\n return wasmModule;\n}\nexport default loadWasm;\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,eAAe,QAAQ,GAAG;AAC1B,EAAE,IAAI,UAAU;AAChB,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AACrE,IAAI,UAAU,GAAG,MAAM,OAAO,qBAAe,CAAC;AAC9C;AACA;AACA;AACA;AACA,IAAI,IAAI,UAAU,IAAI,OAAO,UAAU,CAAC,UAAU,KAAK,UAAU,EAAE;AACnE,MAAM,MAAM,UAAU,CAAC,UAAU,CAAC;AAClC;AACA,QAAQ,cAAc,EAAE,UAAU,CAAC,UAAU;AAC7C,OAAO,CAAC;AACR,IAAI;AACJ,EAAE;AACF,EAAE,OAAO,UAAU;AACnB;;;;"}