@json-eval-rs/node 0.0.47 → 0.0.48

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-eval-rs/node",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "JSON Eval RS for Node.js and Server-Side Rendering with ergonomic API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Get the library version
5
+ */
6
+ export function getVersion(): string;
3
7
  /**
4
8
  * Initialize the library (sets up panic hook)
5
9
  */
@@ -8,10 +12,6 @@ export function init(): void;
8
12
  * Get library version (alias)
9
13
  */
10
14
  export function version(): string;
11
- /**
12
- * Get the library version
13
- */
14
- export function getVersion(): string;
15
15
  /**
16
16
  * WebAssembly wrapper for JSONEval
17
17
  */
@@ -58,7 +58,7 @@ export class JSONEvalWasm {
58
58
  * @param reEvaluate - If true, performs full evaluation after processing dependents
59
59
  * @returns Array of dependent change objects as JavaScript object
60
60
  */
61
- evaluateDependentsJS(changed_paths: any, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
61
+ evaluateDependentsJS(changed_paths_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
62
62
  /**
63
63
  * Evaluate schema with provided data (does not return schema - use getEvaluatedSchema() for that)
64
64
  *
@@ -370,15 +370,15 @@ export class JSONEvalWasm {
370
370
  */
371
371
  getSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
372
372
  /**
373
- * Evaluate dependents in subform when a field changes
373
+ * Evaluate dependents in subform when fields change
374
374
  *
375
375
  * @param subformPath - Path to the subform
376
- * @param changedPath - Path of the field that changed
376
+ * @param changedPaths - JSON array of paths that changed
377
377
  * @param data - Optional updated JSON data string
378
378
  * @param context - Optional context data JSON string
379
379
  * @returns Array of dependent change objects as JSON string
380
380
  */
381
- evaluateDependentsSubform(subform_path: string, changed_path: string, data?: string | null, context?: string | null): string;
381
+ evaluateDependentsSubform(subform_path: string, changed_paths_json: string, data?: string | null, context?: string | null): string;
382
382
  /**
383
383
  * Get schema by multiple paths from subform
384
384
  * @param subformPath - Path to the subform
@@ -411,7 +411,7 @@ export class JSONEvalWasm {
411
411
  * @param context - Optional context data JSON string
412
412
  * @returns Array of dependent change objects as JavaScript object
413
413
  */
414
- evaluateDependentsSubformJS(subform_path: string, changed_paths: any, data?: string | null, context?: string | null): any;
414
+ evaluateDependentsSubformJS(subform_path: string, changed_paths_json: string, data?: string | null, context?: string | null): any;
415
415
  /**
416
416
  * Get schema by multiple paths from subform (JS object)
417
417
  * @param subformPath - Path to the subform
@@ -419,7 +419,7 @@ export class JSONEvalWasm {
419
419
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
420
420
  * @returns Data in specified format as JavaScript object
421
421
  */
422
- getSchemaByPathsSubformJS(subform_path: string, paths_val: any, format: number): any;
422
+ getSchemaByPathsSubformJS(subform_path: string, paths_json: string, format: number): any;
423
423
  /**
424
424
  * Get evaluated schema from subform as JavaScript object
425
425
  *
@@ -463,7 +463,7 @@ export class JSONEvalWasm {
463
463
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
464
464
  * @returns Data in specified format as JavaScript object
465
465
  */
466
- getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_val: any, skip_layout: boolean, format: number): any;
466
+ getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, skip_layout: boolean, format: number): any;
467
467
  /**
468
468
  * Get evaluated schema without $params from subform
469
469
  *
@@ -104,19 +104,19 @@ function getDataViewMemory0() {
104
104
  return cachedDataViewMemory0;
105
105
  }
106
106
 
107
+ function getArrayU8FromWasm0(ptr, len) {
108
+ ptr = ptr >>> 0;
109
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
110
+ }
111
+
107
112
  function handleError(f, args) {
108
113
  try {
109
114
  return f.apply(this, args);
110
115
  } catch (e) {
111
- wasm.__wbindgen_export_2(addHeapObject(e));
116
+ wasm.__wbindgen_export_3(addHeapObject(e));
112
117
  }
113
118
  }
114
119
 
115
- function getArrayU8FromWasm0(ptr, len) {
116
- ptr = ptr >>> 0;
117
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
118
- }
119
-
120
120
  function dropObject(idx) {
121
121
  if (idx < 132) return;
122
122
  heap[idx] = heap_next;
@@ -129,10 +129,6 @@ function takeObject(idx) {
129
129
  return ret;
130
130
  }
131
131
 
132
- function isLikeNone(x) {
133
- return x === undefined || x === null;
134
- }
135
-
136
132
  function debugString(val) {
137
133
  // primitive types
138
134
  const type = typeof val;
@@ -198,6 +194,10 @@ function debugString(val) {
198
194
  return className;
199
195
  }
200
196
 
197
+ function isLikeNone(x) {
198
+ return x === undefined || x === null;
199
+ }
200
+
201
201
  function passArrayJsValueToWasm0(array, malloc) {
202
202
  const ptr = malloc(array.length * 4, 4) >>> 0;
203
203
  const mem = getDataViewMemory0();
@@ -208,17 +208,10 @@ function passArrayJsValueToWasm0(array, malloc) {
208
208
  return ptr;
209
209
  }
210
210
  /**
211
- * Initialize the library (sets up panic hook)
212
- */
213
- exports.init = function() {
214
- wasm.init();
215
- };
216
-
217
- /**
218
- * Get library version (alias)
211
+ * Get the library version
219
212
  * @returns {string}
220
213
  */
221
- exports.version = function() {
214
+ exports.getVersion = function() {
222
215
  let deferred1_0;
223
216
  let deferred1_1;
224
217
  try {
@@ -231,15 +224,22 @@ exports.version = function() {
231
224
  return getStringFromWasm0(r0, r1);
232
225
  } finally {
233
226
  wasm.__wbindgen_add_to_stack_pointer(16);
234
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
227
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
235
228
  }
236
229
  };
237
230
 
238
231
  /**
239
- * Get the library version
232
+ * Initialize the library (sets up panic hook)
233
+ */
234
+ exports.init = function() {
235
+ wasm.init();
236
+ };
237
+
238
+ /**
239
+ * Get library version (alias)
240
240
  * @returns {string}
241
241
  */
242
- exports.getVersion = function() {
242
+ exports.version = function() {
243
243
  let deferred1_0;
244
244
  let deferred1_1;
245
245
  try {
@@ -252,7 +252,7 @@ exports.getVersion = function() {
252
252
  return getStringFromWasm0(r0, r1);
253
253
  } finally {
254
254
  wasm.__wbindgen_add_to_stack_pointer(16);
255
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
255
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
256
256
  }
257
257
  };
258
258
 
@@ -395,7 +395,7 @@ class JSONEvalWasm {
395
395
  return getStringFromWasm0(ptr4, len4);
396
396
  } finally {
397
397
  wasm.__wbindgen_add_to_stack_pointer(16);
398
- wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
398
+ wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
399
399
  }
400
400
  }
401
401
  /**
@@ -438,20 +438,22 @@ class JSONEvalWasm {
438
438
  * @param context - Optional context data JSON string
439
439
  * @param reEvaluate - If true, performs full evaluation after processing dependents
440
440
  * @returns Array of dependent change objects as JavaScript object
441
- * @param {any} changed_paths
441
+ * @param {string} changed_paths_json
442
442
  * @param {string | null | undefined} data
443
443
  * @param {string | null | undefined} context
444
444
  * @param {boolean} re_evaluate
445
445
  * @returns {any}
446
446
  */
447
- evaluateDependentsJS(changed_paths, data, context, re_evaluate) {
447
+ evaluateDependentsJS(changed_paths_json, data, context, re_evaluate) {
448
448
  try {
449
449
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
450
- var ptr0 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
451
- var len0 = WASM_VECTOR_LEN;
452
- var ptr1 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
450
+ const ptr0 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
453
453
  var len1 = WASM_VECTOR_LEN;
454
- wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, addHeapObject(changed_paths), ptr0, len0, ptr1, len1, re_evaluate);
454
+ var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
455
+ var len2 = WASM_VECTOR_LEN;
456
+ wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, re_evaluate);
455
457
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
456
458
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
457
459
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -905,7 +907,7 @@ class JSONEvalWasm {
905
907
  let v2;
906
908
  if (r0 !== 0) {
907
909
  v2 = getStringFromWasm0(r0, r1).slice();
908
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
910
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
909
911
  }
910
912
  return v2;
911
913
  } finally {
@@ -944,7 +946,7 @@ class JSONEvalWasm {
944
946
  return getStringFromWasm0(ptr2, len2);
945
947
  } finally {
946
948
  wasm.__wbindgen_add_to_stack_pointer(16);
947
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
949
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
948
950
  }
949
951
  }
950
952
  /**
@@ -968,7 +970,7 @@ class JSONEvalWasm {
968
970
  return getStringFromWasm0(r0, r1);
969
971
  } finally {
970
972
  wasm.__wbindgen_add_to_stack_pointer(16);
971
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
973
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
972
974
  }
973
975
  }
974
976
  /**
@@ -1124,7 +1126,7 @@ class JSONEvalWasm {
1124
1126
  let v2;
1125
1127
  if (r0 !== 0) {
1126
1128
  v2 = getStringFromWasm0(r0, r1).slice();
1127
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1129
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1128
1130
  }
1129
1131
  return v2;
1130
1132
  } finally {
@@ -1160,7 +1162,7 @@ class JSONEvalWasm {
1160
1162
  throw takeObject(r2);
1161
1163
  }
1162
1164
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1163
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1165
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1164
1166
  return v1;
1165
1167
  } finally {
1166
1168
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1200,7 +1202,7 @@ class JSONEvalWasm {
1200
1202
  return getStringFromWasm0(ptr2, len2);
1201
1203
  } finally {
1202
1204
  wasm.__wbindgen_add_to_stack_pointer(16);
1203
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
1205
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
1204
1206
  }
1205
1207
  }
1206
1208
  /**
@@ -1279,7 +1281,7 @@ class JSONEvalWasm {
1279
1281
  return getStringFromWasm0(r0, r1);
1280
1282
  } finally {
1281
1283
  wasm.__wbindgen_add_to_stack_pointer(16);
1282
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1284
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
1283
1285
  }
1284
1286
  }
1285
1287
  /**
@@ -1399,7 +1401,7 @@ class JSONEvalWasm {
1399
1401
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1400
1402
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1401
1403
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1402
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
1404
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
1403
1405
  return v1;
1404
1406
  } finally {
1405
1407
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1476,7 +1478,7 @@ class JSONEvalWasm {
1476
1478
  let v3;
1477
1479
  if (r0 !== 0) {
1478
1480
  v3 = getStringFromWasm0(r0, r1).slice();
1479
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1481
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1480
1482
  }
1481
1483
  return v3;
1482
1484
  } finally {
@@ -1484,27 +1486,27 @@ class JSONEvalWasm {
1484
1486
  }
1485
1487
  }
1486
1488
  /**
1487
- * Evaluate dependents in subform when a field changes
1489
+ * Evaluate dependents in subform when fields change
1488
1490
  *
1489
1491
  * @param subformPath - Path to the subform
1490
- * @param changedPath - Path of the field that changed
1492
+ * @param changedPaths - JSON array of paths that changed
1491
1493
  * @param data - Optional updated JSON data string
1492
1494
  * @param context - Optional context data JSON string
1493
1495
  * @returns Array of dependent change objects as JSON string
1494
1496
  * @param {string} subform_path
1495
- * @param {string} changed_path
1497
+ * @param {string} changed_paths_json
1496
1498
  * @param {string | null} [data]
1497
1499
  * @param {string | null} [context]
1498
1500
  * @returns {string}
1499
1501
  */
1500
- evaluateDependentsSubform(subform_path, changed_path, data, context) {
1502
+ evaluateDependentsSubform(subform_path, changed_paths_json, data, context) {
1501
1503
  let deferred6_0;
1502
1504
  let deferred6_1;
1503
1505
  try {
1504
1506
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1505
1507
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1506
1508
  const len0 = WASM_VECTOR_LEN;
1507
- const ptr1 = passStringToWasm0(changed_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1509
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1508
1510
  const len1 = WASM_VECTOR_LEN;
1509
1511
  var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1510
1512
  var len2 = WASM_VECTOR_LEN;
@@ -1526,7 +1528,7 @@ class JSONEvalWasm {
1526
1528
  return getStringFromWasm0(ptr5, len5);
1527
1529
  } finally {
1528
1530
  wasm.__wbindgen_add_to_stack_pointer(16);
1529
- wasm.__wbindgen_export_3(deferred6_0, deferred6_1, 1);
1531
+ wasm.__wbindgen_export_2(deferred6_0, deferred6_1, 1);
1530
1532
  }
1531
1533
  }
1532
1534
  /**
@@ -1565,7 +1567,7 @@ class JSONEvalWasm {
1565
1567
  return getStringFromWasm0(ptr3, len3);
1566
1568
  } finally {
1567
1569
  wasm.__wbindgen_add_to_stack_pointer(16);
1568
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1570
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1569
1571
  }
1570
1572
  }
1571
1573
  /**
@@ -1593,7 +1595,7 @@ class JSONEvalWasm {
1593
1595
  return getStringFromWasm0(r0, r1);
1594
1596
  } finally {
1595
1597
  wasm.__wbindgen_add_to_stack_pointer(16);
1596
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1598
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1597
1599
  }
1598
1600
  }
1599
1601
  /**
@@ -1633,21 +1635,23 @@ class JSONEvalWasm {
1633
1635
  * @param context - Optional context data JSON string
1634
1636
  * @returns Array of dependent change objects as JavaScript object
1635
1637
  * @param {string} subform_path
1636
- * @param {any} changed_paths
1638
+ * @param {string} changed_paths_json
1637
1639
  * @param {string | null} [data]
1638
1640
  * @param {string | null} [context]
1639
1641
  * @returns {any}
1640
1642
  */
1641
- evaluateDependentsSubformJS(subform_path, changed_paths, data, context) {
1643
+ evaluateDependentsSubformJS(subform_path, changed_paths_json, data, context) {
1642
1644
  try {
1643
1645
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1644
1646
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1645
1647
  const len0 = WASM_VECTOR_LEN;
1646
- var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1647
- var len1 = WASM_VECTOR_LEN;
1648
- var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1648
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1649
+ const len1 = WASM_VECTOR_LEN;
1650
+ var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1649
1651
  var len2 = WASM_VECTOR_LEN;
1650
- wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(changed_paths), ptr1, len1, ptr2, len2);
1652
+ var ptr3 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1653
+ var len3 = WASM_VECTOR_LEN;
1654
+ wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1651
1655
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1652
1656
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1653
1657
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1666,16 +1670,18 @@ class JSONEvalWasm {
1666
1670
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1667
1671
  * @returns Data in specified format as JavaScript object
1668
1672
  * @param {string} subform_path
1669
- * @param {any} paths_val
1673
+ * @param {string} paths_json
1670
1674
  * @param {number} format
1671
1675
  * @returns {any}
1672
1676
  */
1673
- getSchemaByPathsSubformJS(subform_path, paths_val, format) {
1677
+ getSchemaByPathsSubformJS(subform_path, paths_json, format) {
1674
1678
  try {
1675
1679
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1676
1680
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1677
1681
  const len0 = WASM_VECTOR_LEN;
1678
- wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), format);
1682
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1683
+ const len1 = WASM_VECTOR_LEN;
1684
+ wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
1679
1685
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1680
1686
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1681
1687
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1739,7 +1745,7 @@ class JSONEvalWasm {
1739
1745
  let v3;
1740
1746
  if (r0 !== 0) {
1741
1747
  v3 = getStringFromWasm0(r0, r1).slice();
1742
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1748
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1743
1749
  }
1744
1750
  return v3;
1745
1751
  } finally {
@@ -1784,7 +1790,7 @@ class JSONEvalWasm {
1784
1790
  return getStringFromWasm0(ptr3, len3);
1785
1791
  } finally {
1786
1792
  wasm.__wbindgen_add_to_stack_pointer(16);
1787
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1793
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1788
1794
  }
1789
1795
  }
1790
1796
  /**
@@ -1826,17 +1832,19 @@ class JSONEvalWasm {
1826
1832
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1827
1833
  * @returns Data in specified format as JavaScript object
1828
1834
  * @param {string} subform_path
1829
- * @param {any} paths_val
1835
+ * @param {string} paths_json
1830
1836
  * @param {boolean} skip_layout
1831
1837
  * @param {number} format
1832
1838
  * @returns {any}
1833
1839
  */
1834
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_val, skip_layout, format) {
1840
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
1835
1841
  try {
1836
1842
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1837
1843
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1838
1844
  const len0 = WASM_VECTOR_LEN;
1839
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), skip_layout, format);
1845
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1846
+ const len1 = WASM_VECTOR_LEN;
1847
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
1840
1848
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1841
1849
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1842
1850
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1873,7 +1881,7 @@ class JSONEvalWasm {
1873
1881
  return getStringFromWasm0(r0, r1);
1874
1882
  } finally {
1875
1883
  wasm.__wbindgen_add_to_stack_pointer(16);
1876
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1884
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1877
1885
  }
1878
1886
  }
1879
1887
  /**
@@ -1947,7 +1955,7 @@ class ValidationError {
1947
1955
  let v1;
1948
1956
  if (r0 !== 0) {
1949
1957
  v1 = getStringFromWasm0(r0, r1).slice();
1950
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1958
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1951
1959
  }
1952
1960
  return v1;
1953
1961
  } finally {
@@ -1966,7 +1974,7 @@ class ValidationError {
1966
1974
  let v1;
1967
1975
  if (r0 !== 0) {
1968
1976
  v1 = getStringFromWasm0(r0, r1).slice();
1969
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1977
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1970
1978
  }
1971
1979
  return v1;
1972
1980
  } finally {
@@ -1996,7 +2004,7 @@ class ValidationError {
1996
2004
  return getStringFromWasm0(r0, r1);
1997
2005
  } finally {
1998
2006
  wasm.__wbindgen_add_to_stack_pointer(16);
1999
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2007
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2000
2008
  }
2001
2009
  }
2002
2010
  /**
@@ -2015,7 +2023,7 @@ class ValidationError {
2015
2023
  return getStringFromWasm0(r0, r1);
2016
2024
  } finally {
2017
2025
  wasm.__wbindgen_add_to_stack_pointer(16);
2018
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2026
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2019
2027
  }
2020
2028
  }
2021
2029
  /**
@@ -2030,7 +2038,7 @@ class ValidationError {
2030
2038
  let v1;
2031
2039
  if (r0 !== 0) {
2032
2040
  v1 = getStringFromWasm0(r0, r1).slice();
2033
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
2041
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
2034
2042
  }
2035
2043
  return v1;
2036
2044
  } finally {
@@ -2053,7 +2061,7 @@ class ValidationError {
2053
2061
  return getStringFromWasm0(r0, r1);
2054
2062
  } finally {
2055
2063
  wasm.__wbindgen_add_to_stack_pointer(16);
2056
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2064
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2057
2065
  }
2058
2066
  }
2059
2067
  }
@@ -2098,7 +2106,7 @@ class ValidationResult {
2098
2106
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2099
2107
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2100
2108
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2101
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
2109
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2102
2110
  return v1;
2103
2111
  } finally {
2104
2112
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2147,16 +2155,6 @@ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
2147
2155
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2148
2156
  };
2149
2157
 
2150
- exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
2151
- const ret = getObject(arg0).call(getObject(arg1));
2152
- return addHeapObject(ret);
2153
- }, arguments) };
2154
-
2155
- exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
2156
- const ret = getObject(arg0).done;
2157
- return ret;
2158
- };
2159
-
2160
2158
  exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2161
2159
  let deferred0_0;
2162
2160
  let deferred0_1;
@@ -2165,7 +2163,7 @@ exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2165
2163
  deferred0_1 = arg1;
2166
2164
  console.error(getStringFromWasm0(arg0, arg1));
2167
2165
  } finally {
2168
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
2166
+ wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
2169
2167
  }
2170
2168
  };
2171
2169
 
@@ -2178,59 +2176,7 @@ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
2178
2176
  return ret;
2179
2177
  };
2180
2178
 
2181
- exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
2182
- const ret = getObject(arg0)[arg1 >>> 0];
2183
- return addHeapObject(ret);
2184
- };
2185
-
2186
- exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
2187
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
2188
- return addHeapObject(ret);
2189
- }, arguments) };
2190
-
2191
- exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
2192
- let result;
2193
- try {
2194
- result = getObject(arg0) instanceof ArrayBuffer;
2195
- } catch (_) {
2196
- result = false;
2197
- }
2198
- const ret = result;
2199
- return ret;
2200
- };
2201
-
2202
- exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
2203
- let result;
2204
- try {
2205
- result = getObject(arg0) instanceof Uint8Array;
2206
- } catch (_) {
2207
- result = false;
2208
- }
2209
- const ret = result;
2210
- return ret;
2211
- };
2212
-
2213
- exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
2214
- const ret = Array.isArray(getObject(arg0));
2215
- return ret;
2216
- };
2217
-
2218
- exports.__wbg_iterator_f370b34483c71a1c = function() {
2219
- const ret = Symbol.iterator;
2220
- return addHeapObject(ret);
2221
- };
2222
-
2223
- exports.__wbg_length_186546c51cd61acd = function(arg0) {
2224
- const ret = getObject(arg0).length;
2225
- return ret;
2226
- };
2227
-
2228
- exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
2229
- const ret = getObject(arg0).length;
2230
- return ret;
2231
- };
2232
-
2233
- exports.__wbg_log_4b6ed0b139485439 = function(arg0, arg1) {
2179
+ exports.__wbg_log_335f2dafcd729af1 = function(arg0, arg1) {
2234
2180
  console.log(getStringFromWasm0(arg0, arg1));
2235
2181
  };
2236
2182
 
@@ -2254,35 +2200,16 @@ exports.__wbg_new_2ff1f68f3676ea53 = function() {
2254
2200
  return addHeapObject(ret);
2255
2201
  };
2256
2202
 
2257
- exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
2258
- const ret = new Uint8Array(getObject(arg0));
2259
- return addHeapObject(ret);
2260
- };
2261
-
2262
2203
  exports.__wbg_new_8a6f238a6ece86ea = function() {
2263
2204
  const ret = new Error();
2264
2205
  return addHeapObject(ret);
2265
2206
  };
2266
2207
 
2267
- exports.__wbg_next_5b3530e612fde77d = function(arg0) {
2268
- const ret = getObject(arg0).next;
2269
- return addHeapObject(ret);
2270
- };
2271
-
2272
- exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
2273
- const ret = getObject(arg0).next();
2274
- return addHeapObject(ret);
2275
- }, arguments) };
2276
-
2277
2208
  exports.__wbg_parse_442f5ba02e5eaf8b = function() { return handleError(function (arg0, arg1) {
2278
2209
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2279
2210
  return addHeapObject(ret);
2280
2211
  }, arguments) };
2281
2212
 
2282
- exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
2283
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2284
- };
2285
-
2286
2213
  exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
2287
2214
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2288
2215
  };
@@ -2309,17 +2236,6 @@ exports.__wbg_validationerror_new = function(arg0) {
2309
2236
  return addHeapObject(ret);
2310
2237
  };
2311
2238
 
2312
- exports.__wbg_value_dd9372230531eade = function(arg0) {
2313
- const ret = getObject(arg0).value;
2314
- return addHeapObject(ret);
2315
- };
2316
-
2317
- exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
2318
- const v = getObject(arg0);
2319
- const ret = typeof(v) === 'boolean' ? v : undefined;
2320
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
2321
- };
2322
-
2323
2239
  exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
2324
2240
  const ret = debugString(getObject(arg1));
2325
2241
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -2328,34 +2244,11 @@ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
2328
2244
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2329
2245
  };
2330
2246
 
2331
- exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
2332
- const ret = typeof(getObject(arg0)) === 'function';
2333
- return ret;
2334
- };
2335
-
2336
- exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
2337
- const val = getObject(arg0);
2338
- const ret = typeof(val) === 'object' && val !== null;
2339
- return ret;
2340
- };
2341
-
2342
2247
  exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2343
2248
  const ret = typeof(getObject(arg0)) === 'string';
2344
2249
  return ret;
2345
2250
  };
2346
2251
 
2347
- exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
2348
- const ret = getObject(arg0) == getObject(arg1);
2349
- return ret;
2350
- };
2351
-
2352
- exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
2353
- const obj = getObject(arg1);
2354
- const ret = typeof(obj) === 'number' ? obj : undefined;
2355
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2356
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2357
- };
2358
-
2359
2252
  exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
2360
2253
  const obj = getObject(arg1);
2361
2254
  const ret = typeof(obj) === 'string' ? obj : undefined;
Binary file
@@ -14,9 +14,9 @@ export const jsonevalwasm_disableCache: (a: number) => void;
14
14
  export const jsonevalwasm_enableCache: (a: number) => void;
15
15
  export const jsonevalwasm_evaluate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
16
16
  export const jsonevalwasm_evaluateDependents: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
17
- export const jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
17
+ export const jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
18
18
  export const jsonevalwasm_evaluateDependentsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
19
- export const jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
19
+ export const jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
20
20
  export const jsonevalwasm_evaluateJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
21
21
  export const jsonevalwasm_evaluateSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
22
22
  export const jsonevalwasm_getEvaluatedSchema: (a: number, b: number, c: number) => void;
@@ -27,7 +27,7 @@ export const jsonevalwasm_getEvaluatedSchemaByPathSubformJS: (a: number, b: numb
27
27
  export const jsonevalwasm_getEvaluatedSchemaByPaths: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
28
28
  export const jsonevalwasm_getEvaluatedSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
29
29
  export const jsonevalwasm_getEvaluatedSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
30
- export const jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
30
+ export const jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
31
31
  export const jsonevalwasm_getEvaluatedSchemaJS: (a: number, b: number, c: number) => void;
32
32
  export const jsonevalwasm_getEvaluatedSchemaMsgpack: (a: number, b: number, c: number) => void;
33
33
  export const jsonevalwasm_getEvaluatedSchemaSubform: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -43,7 +43,7 @@ export const jsonevalwasm_getSchemaByPathSubformJS: (a: number, b: number, c: nu
43
43
  export const jsonevalwasm_getSchemaByPaths: (a: number, b: number, c: number, d: number, e: number) => void;
44
44
  export const jsonevalwasm_getSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number) => void;
45
45
  export const jsonevalwasm_getSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
46
- export const jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
46
+ export const jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
47
47
  export const jsonevalwasm_getSchemaValue: (a: number, b: number) => void;
48
48
  export const jsonevalwasm_getSchemaValueSubform: (a: number, b: number, c: number, d: number) => void;
49
49
  export const jsonevalwasm_getSubformPaths: (a: number, b: number) => void;
@@ -78,7 +78,7 @@ export const init: () => void;
78
78
  export const version: (a: number) => void;
79
79
  export const __wbindgen_export_0: (a: number, b: number) => number;
80
80
  export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
81
- export const __wbindgen_export_2: (a: number) => void;
82
- export const __wbindgen_export_3: (a: number, b: number, c: number) => void;
81
+ export const __wbindgen_export_2: (a: number, b: number, c: number) => void;
82
+ export const __wbindgen_export_3: (a: number) => void;
83
83
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
84
84
  export const __wbindgen_start: () => void;