@wllzhang/afsim-compiler 0.5.4 → 0.5.7

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { compile_json } from './pkg/afsim_compiler.js';
1
+ import { compile_json } from './pkg/afsim_compiler_lib.js';
2
2
 
3
3
  /**
4
4
  * Compile a JSON object into AFSIM DSL text.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wllzhang/afsim-compiler",
3
- "version": "0.5.4",
3
+ "version": "0.5.7",
4
4
  "description": "JSON to AFSIM DSL compiler — WebAssembly build for browsers and Node.js",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -0,0 +1,9 @@
1
+ /* @ts-self-types="./afsim_compiler_lib.d.ts" */
2
+
3
+ import * as wasm from "./afsim_compiler_lib_bg.wasm";
4
+ import { __wbg_set_wasm } from "./afsim_compiler_lib_bg.js";
5
+ __wbg_set_wasm(wasm);
6
+
7
+ export {
8
+ compile_json
9
+ } from "./afsim_compiler_lib_bg.js";
@@ -21,6 +21,15 @@ export function compile_json(input) {
21
21
  wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
22
22
  }
23
23
  }
24
+ export function __wbg_error_7c5f5b5154c052d7(arg0, arg1) {
25
+ console.error(getStringFromWasm0(arg0, arg1));
26
+ }
27
+ export function __wbg_log_7d8110815355c340(arg0, arg1) {
28
+ console.log(getStringFromWasm0(arg0, arg1));
29
+ }
30
+ export function __wbg_warn_f2f01bad85a87234(arg0, arg1) {
31
+ console.warn(getStringFromWasm0(arg0, arg1));
32
+ }
24
33
  let cachedDataViewMemory0 = null;
25
34
  function getDataViewMemory0() {
26
35
  if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
Binary file
package/pkg/package.json CHANGED
@@ -4,15 +4,15 @@
4
4
  "description": "JSON to AFSIM DSL compiler",
5
5
  "version": "0.1.0",
6
6
  "files": [
7
- "afsim_compiler_bg.wasm",
8
- "afsim_compiler.js",
9
- "afsim_compiler_bg.js",
10
- "afsim_compiler.d.ts"
7
+ "afsim_compiler_lib_bg.wasm",
8
+ "afsim_compiler_lib.js",
9
+ "afsim_compiler_lib_bg.js",
10
+ "afsim_compiler_lib.d.ts"
11
11
  ],
12
- "main": "afsim_compiler.js",
13
- "types": "afsim_compiler.d.ts",
12
+ "main": "afsim_compiler_lib.js",
13
+ "types": "afsim_compiler_lib.d.ts",
14
14
  "sideEffects": [
15
- "./afsim_compiler.js",
15
+ "./afsim_compiler_lib.js",
16
16
  "./snippets/*"
17
17
  ]
18
18
  }
@@ -1,9 +0,0 @@
1
- /* @ts-self-types="./afsim_compiler.d.ts" */
2
-
3
- import * as wasm from "./afsim_compiler_bg.wasm";
4
- import { __wbg_set_wasm } from "./afsim_compiler_bg.js";
5
- __wbg_set_wasm(wasm);
6
-
7
- export {
8
- compile_json
9
- } from "./afsim_compiler_bg.js";
Binary file