windmill-parser-wasm-ts 1.397.2 → 1.398.1

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
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Ruben Fiszel <ruben@windmill.dev>"
5
5
  ],
6
- "version": "1.397.2",
6
+ "version": "1.398.1",
7
7
  "files": [
8
8
  "windmill_parser_wasm_bg.wasm",
9
9
  "windmill_parser_wasm.js",
@@ -98,13 +98,13 @@ function getInt32Memory0() {
98
98
  return cachedInt32Memory0;
99
99
  }
100
100
 
101
- let cachedFloat64Memory0 = null;
101
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
102
102
 
103
- function getFloat64Memory0() {
104
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
105
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
106
- }
107
- return cachedFloat64Memory0;
103
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
104
+
105
+ function getStringFromWasm0(ptr, len) {
106
+ ptr = ptr >>> 0;
107
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
108
108
  }
109
109
 
110
110
  function addHeapObject(obj) {
@@ -116,13 +116,13 @@ function addHeapObject(obj) {
116
116
  return idx;
117
117
  }
118
118
 
119
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
120
-
121
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
119
+ let cachedFloat64Memory0 = null;
122
120
 
123
- function getStringFromWasm0(ptr, len) {
124
- ptr = ptr >>> 0;
125
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
+ function getFloat64Memory0() {
122
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
123
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
124
+ }
125
+ return cachedFloat64Memory0;
126
126
  }
127
127
 
128
128
  let cachedBigInt64Memory0 = null;
@@ -323,6 +323,14 @@ function __wbg_get_imports() {
323
323
  getInt32Memory0()[arg0 / 4 + 1] = len1;
324
324
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
325
325
  };
326
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
327
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
328
+ return addHeapObject(ret);
329
+ };
330
+ imports.wbg.__wbg_eval_8243d86342a64a9b = function(arg0, arg1) {
331
+ const ret = eval(getStringFromWasm0(arg0, arg1));
332
+ return addHeapObject(ret);
333
+ };
326
334
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
327
335
  const v = getObject(arg0);
328
336
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
@@ -359,14 +367,6 @@ function __wbg_get_imports() {
359
367
  const ret = BigInt.asUintN(64, arg0);
360
368
  return addHeapObject(ret);
361
369
  };
362
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
363
- const ret = new Error(getStringFromWasm0(arg0, arg1));
364
- return addHeapObject(ret);
365
- };
366
- imports.wbg.__wbg_eval_b7405fdd08ddef3d = function(arg0, arg1) {
367
- const ret = eval(getStringFromWasm0(arg0, arg1));
368
- return addHeapObject(ret);
369
- };
370
370
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
371
371
  const ret = getObject(arg0) == getObject(arg1);
372
372
  return ret;
Binary file