@premai/api-sdk 1.0.43 → 1.0.44

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/bare.cjs CHANGED
@@ -25974,8 +25974,7 @@ async function installBareWasm3(options = {}) {
25974
25974
  _wasm3Installed = true;
25975
25975
  await import("@premai/bare-wasm3/global");
25976
25976
  if (options.ioNudge) {
25977
- const ioNudge = options.ioNudge;
25978
25977
  const OriginalInstance = globalThis.WebAssembly.Instance;
25979
- globalThis.WebAssembly.Instance = (module2, imports) => new OriginalInstance(module2, imports, { ioNudge });
25978
+ globalThis.WebAssembly.Instance = new Proxy(OriginalInstance, (module2, imports) => new OriginalInstance(module2, imports, { ioNudge: options.ioNudge }));
25980
25979
  }
25981
25980
  }
package/dist/bare.mjs CHANGED
@@ -25915,9 +25915,8 @@ async function installBareWasm3(options = {}) {
25915
25915
  _wasm3Installed = true;
25916
25916
  await import("@premai/bare-wasm3/global");
25917
25917
  if (options.ioNudge) {
25918
- const ioNudge = options.ioNudge;
25919
25918
  const OriginalInstance = globalThis.WebAssembly.Instance;
25920
- globalThis.WebAssembly.Instance = (module, imports) => new OriginalInstance(module, imports, { ioNudge });
25919
+ globalThis.WebAssembly.Instance = new Proxy(OriginalInstance, (module, imports) => new OriginalInstance(module, imports, { ioNudge: options.ioNudge }));
25921
25920
  }
25922
25921
  }
25923
25922
  export {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "homepage": "https://github.com/premai-io/api-sdk-ts",
6
6
  "name": "@premai/api-sdk",
7
- "version": "1.0.43",
7
+ "version": "1.0.44",
8
8
  "main": "./dist/index.cjs",
9
9
  "bin": {
10
10
  "confidential-proxy": "./dist/cli.mjs",