@mirascript/bindings 0.1.51 → 0.1.53

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
@@ -1,7 +1,7 @@
1
1
  import { ModuleLoader } from './loader.js';
2
2
  const loader = new ModuleLoader(async () => {
3
3
  const wasm = await import('@mirascript/wasm');
4
- await wasm.ready;
4
+ await wasm.init();
5
5
  return wasm;
6
6
  });
7
7
  /** 加载模块 */
package/dist/wasm.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wasm.js","sourceRoot":"","sources":["../src/wasm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,GAAG,IAAI,YAAY,CAAe,KAAK,IAAI,EAAE;IACrD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,IAAI,CAAC,KAAK,CAAC;IACjB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC,CAAC;AAEH,WAAW;AACX,MAAM,CAAC,MAAM,UAAU,GAAgC,MAAM,CAAC,IAAI,CAAC;AACnE,eAAe;AACf,MAAM,CAAC,MAAM,SAAS,GAAuB,MAAM,CAAC,GAAG,CAAC"}
1
+ {"version":3,"file":"wasm.js","sourceRoot":"","sources":["../src/wasm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,GAAG,IAAI,YAAY,CAAe,KAAK,IAAI,EAAE;IACrD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IAClB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC,CAAC;AAEH,WAAW;AACX,MAAM,CAAC,MAAM,UAAU,GAAgC,MAAM,CAAC,IAAI,CAAC;AACnE,eAAe;AACf,MAAM,CAAC,MAAM,SAAS,GAAuB,MAAM,CAAC,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirascript/bindings",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "description": "MiraScript compiler bindings",
@@ -19,11 +19,11 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@mirascript/napi": "~0.1.51",
23
- "@mirascript/wasm": "~0.1.51"
22
+ "@mirascript/napi": "~0.1.53",
23
+ "@mirascript/wasm": "~0.1.53"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^25.3.3"
26
+ "@types/node": "^25.4.0"
27
27
  },
28
28
  "scripts": {
29
29
  "watch": "pnpm build --watch",
package/src/wasm.ts CHANGED
@@ -8,7 +8,7 @@ export type BcModuleType = typeof BcModule;
8
8
 
9
9
  const loader = new ModuleLoader<BcModuleType>(async () => {
10
10
  const wasm = await import('@mirascript/wasm');
11
- await wasm.ready;
11
+ await wasm.init();
12
12
  return wasm;
13
13
  });
14
14