@interest-protocol/vortex-sdk 1.1.0 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interest-protocol/vortex-sdk",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "./dist/index.mjs",
@@ -36,8 +36,8 @@
36
36
  "rimraf": "^6.0.1",
37
37
  "ts-jest": "^29.1.1",
38
38
  "tsup": "^8.3.5",
39
- "@interest-protocol/typescript-config": "1.0.0",
40
- "@interest-protocol/prettier-config": "1.0.0"
39
+ "@interest-protocol/prettier-config": "1.0.0",
40
+ "@interest-protocol/typescript-config": "1.0.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public",
@@ -58,7 +58,7 @@
58
58
  "scripts": {
59
59
  "prebuild": "rimraf dist",
60
60
  "build": "rollup -c rollup.config.js",
61
- "postbuild": "mkdir -p dist && cp src/pkg/nodejs/vortex_bg.wasm dist/vortex_bg.wasm",
61
+ "postbuild": "mkdir -p dist && cp src/pkg/nodejs/vortex_bg.nodejs.wasm dist/vortex_bg.nodejs.wasm && cp src/pkg/web/vortex_bg.web.wasm dist/vortex_bg.web.wasm",
62
62
  "build:types": "tsc --emitDeclarationOnly"
63
63
  }
64
64
  }
@@ -321,7 +321,7 @@ exports.__wbindgen_init_externref_table = function () {
321
321
  table.set(offset + 3, false);
322
322
  };
323
323
 
324
- const wasmPath = `${__dirname}/vortex_bg.wasm`;
324
+ const wasmPath = `${__dirname}/vortex_bg.nodejs.wasm`;
325
325
  const wasmBytes = require('fs').readFileSync(wasmPath);
326
326
  const wasmModule = new WebAssembly.Module(wasmBytes);
327
327
  const wasm = (exports.__wasm = new WebAssembly.Instance(
@@ -421,7 +421,7 @@ async function __wbg_init(module_or_path) {
421
421
  }
422
422
 
423
423
  if (typeof module_or_path === 'undefined') {
424
- module_or_path = new URL('vortex_bg.wasm', import.meta.url);
424
+ module_or_path = new URL('vortex_bg.web.wasm', import.meta.url);
425
425
  }
426
426
  const imports = __wbg_get_imports();
427
427
 
Binary file
File without changes