@goplasmatic/datalogic 4.0.19 → 4.0.20

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.
@@ -1,7 +1,7 @@
1
1
  /* @ts-self-types="./datalogic_wasm.d.ts" */
2
-
3
2
  import * as wasm from "./datalogic_wasm_bg.wasm";
4
3
  import { __wbg_set_wasm } from "./datalogic_wasm_bg.js";
4
+
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
@@ -193,10 +193,10 @@ export function evaluate_with_trace(logic, data, preserve_structure) {
193
193
  export function init() {
194
194
  wasm.init();
195
195
  }
196
- export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
196
+ export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
197
197
  throw new Error(getStringFromWasm0(arg0, arg1));
198
198
  }
199
- export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
199
+ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
200
200
  let deferred0_0;
201
201
  let deferred0_1;
202
202
  try {
@@ -207,19 +207,19 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
207
207
  wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
208
208
  }
209
209
  }
210
- export function __wbg_getTime_1e3cd1391c5c3995(arg0) {
210
+ export function __wbg_getTime_da7c55f52b71e8c6(arg0) {
211
211
  const ret = getObject(arg0).getTime();
212
212
  return ret;
213
213
  }
214
- export function __wbg_new_0_73afc35eb544e539() {
214
+ export function __wbg_new_0_4d657201ced14de3() {
215
215
  const ret = new Date();
216
216
  return addHeapObject(ret);
217
217
  }
218
- export function __wbg_new_8a6f238a6ece86ea() {
218
+ export function __wbg_new_227d7c05414eb861() {
219
219
  const ret = new Error();
220
220
  return addHeapObject(ret);
221
221
  }
222
- export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
222
+ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
223
223
  const ret = getObject(arg1).stack;
224
224
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
225
225
  const len1 = WASM_VECTOR_LEN;
@@ -248,7 +248,7 @@ function addHeapObject(obj) {
248
248
  }
249
249
 
250
250
  function dropObject(idx) {
251
- if (idx < 132) return;
251
+ if (idx < 1028) return;
252
252
  heap[idx] = heap_next;
253
253
  heap_next = idx;
254
254
  }
@@ -276,7 +276,7 @@ function getUint8ArrayMemory0() {
276
276
 
277
277
  function getObject(idx) { return heap[idx]; }
278
278
 
279
- let heap = new Array(128).fill(undefined);
279
+ let heap = new Array(1024).fill(undefined);
280
280
  heap.push(undefined, null, true, false);
281
281
 
282
282
  let heap_next = heap.length;
Binary file
@@ -199,14 +199,13 @@ function init() {
199
199
  wasm.init();
200
200
  }
201
201
  exports.init = init;
202
-
203
202
  function __wbg_get_imports() {
204
203
  const import0 = {
205
204
  __proto__: null,
206
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
205
+ __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
207
206
  throw new Error(getStringFromWasm0(arg0, arg1));
208
207
  },
209
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
208
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
210
209
  let deferred0_0;
211
210
  let deferred0_1;
212
211
  try {
@@ -217,19 +216,19 @@ function __wbg_get_imports() {
217
216
  wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
218
217
  }
219
218
  },
220
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
219
+ __wbg_getTime_da7c55f52b71e8c6: function(arg0) {
221
220
  const ret = getObject(arg0).getTime();
222
221
  return ret;
223
222
  },
224
- __wbg_new_0_73afc35eb544e539: function() {
223
+ __wbg_new_0_4d657201ced14de3: function() {
225
224
  const ret = new Date();
226
225
  return addHeapObject(ret);
227
226
  },
228
- __wbg_new_8a6f238a6ece86ea: function() {
227
+ __wbg_new_227d7c05414eb861: function() {
229
228
  const ret = new Error();
230
229
  return addHeapObject(ret);
231
230
  },
232
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
231
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
233
232
  const ret = getObject(arg1).stack;
234
233
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
235
234
  const len1 = WASM_VECTOR_LEN;
@@ -265,7 +264,7 @@ function addHeapObject(obj) {
265
264
  }
266
265
 
267
266
  function dropObject(idx) {
268
- if (idx < 132) return;
267
+ if (idx < 1028) return;
269
268
  heap[idx] = heap_next;
270
269
  heap_next = idx;
271
270
  }
@@ -293,7 +292,7 @@ function getUint8ArrayMemory0() {
293
292
 
294
293
  function getObject(idx) { return heap[idx]; }
295
294
 
296
- let heap = new Array(128).fill(undefined);
295
+ let heap = new Array(1024).fill(undefined);
297
296
  heap.push(undefined, null, true, false);
298
297
 
299
298
  let heap_next = heap.length;
@@ -365,5 +364,5 @@ let WASM_VECTOR_LEN = 0;
365
364
  const wasmPath = `${__dirname}/datalogic_wasm_bg.wasm`;
366
365
  const wasmBytes = require('fs').readFileSync(wasmPath);
367
366
  const wasmModule = new WebAssembly.Module(wasmBytes);
368
- const wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
367
+ let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
369
368
  wasm.__wbindgen_start();
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goplasmatic/datalogic",
3
- "version": "4.0.19",
3
+ "version": "4.0.20",
4
4
  "description": "High-performance JSONLogic engine for JavaScript/TypeScript - WebAssembly powered",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -195,14 +195,13 @@ export function evaluate_with_trace(logic, data, preserve_structure) {
195
195
  export function init() {
196
196
  wasm.init();
197
197
  }
198
-
199
198
  function __wbg_get_imports() {
200
199
  const import0 = {
201
200
  __proto__: null,
202
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
201
+ __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
203
202
  throw new Error(getStringFromWasm0(arg0, arg1));
204
203
  },
205
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
204
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
206
205
  let deferred0_0;
207
206
  let deferred0_1;
208
207
  try {
@@ -213,19 +212,19 @@ function __wbg_get_imports() {
213
212
  wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
214
213
  }
215
214
  },
216
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
215
+ __wbg_getTime_da7c55f52b71e8c6: function(arg0) {
217
216
  const ret = getObject(arg0).getTime();
218
217
  return ret;
219
218
  },
220
- __wbg_new_0_73afc35eb544e539: function() {
219
+ __wbg_new_0_4d657201ced14de3: function() {
221
220
  const ret = new Date();
222
221
  return addHeapObject(ret);
223
222
  },
224
- __wbg_new_8a6f238a6ece86ea: function() {
223
+ __wbg_new_227d7c05414eb861: function() {
225
224
  const ret = new Error();
226
225
  return addHeapObject(ret);
227
226
  },
228
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
227
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
229
228
  const ret = getObject(arg1).stack;
230
229
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
231
230
  const len1 = WASM_VECTOR_LEN;
@@ -261,7 +260,7 @@ function addHeapObject(obj) {
261
260
  }
262
261
 
263
262
  function dropObject(idx) {
264
- if (idx < 132) return;
263
+ if (idx < 1028) return;
265
264
  heap[idx] = heap_next;
266
265
  heap_next = idx;
267
266
  }
@@ -289,7 +288,7 @@ function getUint8ArrayMemory0() {
289
288
 
290
289
  function getObject(idx) { return heap[idx]; }
291
290
 
292
- let heap = new Array(128).fill(undefined);
291
+ let heap = new Array(1024).fill(undefined);
293
292
  heap.push(undefined, null, true, false);
294
293
 
295
294
  let heap_next = heap.length;
Binary file