@mirascript/wasm 0.1.40 → 0.1.41

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/lib/wasm.d.ts CHANGED
@@ -80,7 +80,6 @@ export interface InitOutput {
80
80
  readonly __wbg_compileresult_free: (a: number, b: number) => void;
81
81
  readonly __wbg_monacocompiler_free: (a: number, b: number) => void;
82
82
  readonly compile: (a: number, b: number, c: number) => number;
83
- readonly compile_buffer: (a: number, b: number, c: number) => number;
84
83
  readonly compileresult_chunk: (a: number, b: number) => void;
85
84
  readonly compileresult_diagnostics: (a: number, b: number) => void;
86
85
  readonly main: () => void;
@@ -89,6 +88,7 @@ export interface InitOutput {
89
88
  readonly monacocompiler_format: (a: number, b: number) => void;
90
89
  readonly monacocompiler_new: (a: number, b: number, c: number) => number;
91
90
  readonly monacocompiler_parse: (a: number) => number;
91
+ readonly compile_buffer: (a: number, b: number, c: number) => number;
92
92
  readonly __wbg_config_free: (a: number, b: number) => void;
93
93
  readonly __wbg_get_config_diagnostic_error: (a: number) => number;
94
94
  readonly __wbg_get_config_diagnostic_hint: (a: number) => number;
package/lib/wasm.js CHANGED
@@ -350,7 +350,7 @@ export function compile_buffer(script, config) {
350
350
  const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export2);
351
351
  const len0 = WASM_VECTOR_LEN;
352
352
  _assertClass(config, Config);
353
- const ret = wasm.compile_buffer(ptr0, len0, config.__wbg_ptr);
353
+ const ret = wasm.compile(ptr0, len0, config.__wbg_ptr);
354
354
  return CompileResult.__wrap(ret);
355
355
  }
356
356
 
package/lib/wasm_bg.wasm CHANGED
Binary file
@@ -4,7 +4,6 @@ export const memory: WebAssembly.Memory;
4
4
  export const __wbg_compileresult_free: (a: number, b: number) => void;
5
5
  export const __wbg_monacocompiler_free: (a: number, b: number) => void;
6
6
  export const compile: (a: number, b: number, c: number) => number;
7
- export const compile_buffer: (a: number, b: number, c: number) => number;
8
7
  export const compileresult_chunk: (a: number, b: number) => void;
9
8
  export const compileresult_diagnostics: (a: number, b: number) => void;
10
9
  export const main: () => void;
@@ -13,6 +12,7 @@ export const monacocompiler_emit: (a: number, b: number) => void;
13
12
  export const monacocompiler_format: (a: number, b: number) => void;
14
13
  export const monacocompiler_new: (a: number, b: number, c: number) => number;
15
14
  export const monacocompiler_parse: (a: number) => number;
15
+ export const compile_buffer: (a: number, b: number, c: number) => number;
16
16
  export const __wbg_config_free: (a: number, b: number) => void;
17
17
  export const __wbg_get_config_diagnostic_error: (a: number) => number;
18
18
  export const __wbg_get_config_diagnostic_hint: (a: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirascript/wasm",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "description": "MiraScript compiler for WebAssembly",
@@ -18,7 +18,7 @@
18
18
  "devDependencies": {
19
19
  "@types/node": "^25.0.10",
20
20
  "nodemon": "^3.1.11",
21
- "@mirascript/constants": "~0.1.40"
21
+ "@mirascript/constants": "~0.1.41"
22
22
  },
23
23
  "scripts": {
24
24
  "wasm": "wasm-pack build --target web --out-dir ../../packages/wasm/lib --no-pack ../../crates/wasm",