@diodeinc/pcb-zen-wasm 0.4.5 → 0.4.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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Diode Computers, Inc. <founders@diode.computer>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for Zen PCB design language",
8
- "version": "0.4.5",
8
+ "version": "0.4.7",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/diodeinc/pcb"
package/pcb_zen_wasm.js CHANGED
@@ -30,7 +30,7 @@ export function start() {
30
30
  function __wbg_get_imports() {
31
31
  const import0 = {
32
32
  __proto__: null,
33
- __wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
33
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
34
34
  const ret = Error(getStringFromWasm0(arg0, arg1));
35
35
  return ret;
36
36
  },
@@ -41,17 +41,17 @@ function __wbg_get_imports() {
41
41
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
42
42
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
43
43
  },
44
- __wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
44
+ __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
45
45
  const ret = typeof(arg0) === 'string';
46
46
  return ret;
47
47
  },
48
- __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
48
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
49
49
  throw new Error(getStringFromWasm0(arg0, arg1));
50
50
  },
51
- __wbg_debug_c014a160490283dc: function(arg0) {
51
+ __wbg_debug_87fd9b1a625b7efb: function(arg0) {
52
52
  console.debug(arg0);
53
53
  },
54
- __wbg_error_2001591ad2463697: function(arg0) {
54
+ __wbg_error_744744ff0c9861e6: function(arg0) {
55
55
  console.error(arg0);
56
56
  },
57
57
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
@@ -65,37 +65,37 @@ function __wbg_get_imports() {
65
65
  wasm.__wbindgen_free_command_export(deferred0_0, deferred0_1, 1);
66
66
  }
67
67
  },
68
- __wbg_info_7479429238bffbce: function(arg0) {
68
+ __wbg_info_eadbe775a8e2e9eb: function(arg0) {
69
69
  console.info(arg0);
70
70
  },
71
- __wbg_log_7e1aa9064a1dbdbd: function(arg0) {
71
+ __wbg_log_d267660666346fb3: function(arg0) {
72
72
  console.log(arg0);
73
73
  },
74
74
  __wbg_new_227d7c05414eb861: function() {
75
75
  const ret = new Error();
76
76
  return ret;
77
77
  },
78
- __wbg_new_34d45cc8e36aaead: function() {
79
- const ret = new Map();
78
+ __wbg_new_32b398fb48b6d94a: function() {
79
+ const ret = new Array();
80
80
  return ret;
81
81
  },
82
- __wbg_new_682678e2f47e32bc: function() {
83
- const ret = new Array();
82
+ __wbg_new_7796ffc7ed656783: function() {
83
+ const ret = new Map();
84
84
  return ret;
85
85
  },
86
- __wbg_new_aa8d0fa9762c29bd: function() {
86
+ __wbg_new_da52cf8fe3429cb2: function() {
87
87
  const ret = new Object();
88
88
  return ret;
89
89
  },
90
- __wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
91
- arg0[arg1 >>> 0] = arg2;
90
+ __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
91
+ const ret = arg0.set(arg1, arg2);
92
+ return ret;
92
93
  },
93
94
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
94
95
  arg0[arg1] = arg2;
95
96
  },
96
- __wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
97
- const ret = arg0.set(arg1, arg2);
98
- return ret;
97
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
98
+ arg0[arg1 >>> 0] = arg2;
99
99
  },
100
100
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
101
101
  const ret = arg1.stack;
@@ -104,7 +104,7 @@ function __wbg_get_imports() {
104
104
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
105
105
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
106
106
  },
107
- __wbg_warn_3cc416af27dbdc02: function(arg0) {
107
+ __wbg_warn_b1370d804fa3e259: function(arg0) {
108
108
  console.warn(arg0);
109
109
  },
110
110
  __wbindgen_cast_0000000000000001: function(arg0) {
@@ -142,8 +142,7 @@ function getDataViewMemory0() {
142
142
  }
143
143
 
144
144
  function getStringFromWasm0(ptr, len) {
145
- ptr = ptr >>> 0;
146
- return decodeText(ptr, len);
145
+ return decodeText(ptr >>> 0, len);
147
146
  }
148
147
 
149
148
  let cachedUint8ArrayMemory0 = null;
@@ -233,8 +232,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
233
232
 
234
233
  let WASM_VECTOR_LEN = 0;
235
234
 
236
- let wasmModule, wasm;
235
+ let wasmModule, wasmInstance, wasm;
237
236
  function __wbg_finalize_init(instance, module) {
237
+ wasmInstance = instance;
238
238
  wasm = instance.exports;
239
239
  wasmModule = module;
240
240
  cachedDataViewMemory0 = null;
Binary file