@json-eval-rs/bundler 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/bundler",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "JSON Eval RS for bundlers (Webpack, Vite, Next.js, etc.) 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
  *
@@ -114,19 +114,19 @@ function getDataViewMemory0() {
114
114
  return cachedDataViewMemory0;
115
115
  }
116
116
 
117
+ function getArrayU8FromWasm0(ptr, len) {
118
+ ptr = ptr >>> 0;
119
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
120
+ }
121
+
117
122
  function handleError(f, args) {
118
123
  try {
119
124
  return f.apply(this, args);
120
125
  } catch (e) {
121
- wasm.__wbindgen_export_2(addHeapObject(e));
126
+ wasm.__wbindgen_export_3(addHeapObject(e));
122
127
  }
123
128
  }
124
129
 
125
- function getArrayU8FromWasm0(ptr, len) {
126
- ptr = ptr >>> 0;
127
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
128
- }
129
-
130
130
  function dropObject(idx) {
131
131
  if (idx < 132) return;
132
132
  heap[idx] = heap_next;
@@ -139,10 +139,6 @@ function takeObject(idx) {
139
139
  return ret;
140
140
  }
141
141
 
142
- function isLikeNone(x) {
143
- return x === undefined || x === null;
144
- }
145
-
146
142
  function debugString(val) {
147
143
  // primitive types
148
144
  const type = typeof val;
@@ -208,6 +204,10 @@ function debugString(val) {
208
204
  return className;
209
205
  }
210
206
 
207
+ function isLikeNone(x) {
208
+ return x === undefined || x === null;
209
+ }
210
+
211
211
  function passArrayJsValueToWasm0(array, malloc) {
212
212
  const ptr = malloc(array.length * 4, 4) >>> 0;
213
213
  const mem = getDataViewMemory0();
@@ -218,17 +218,10 @@ function passArrayJsValueToWasm0(array, malloc) {
218
218
  return ptr;
219
219
  }
220
220
  /**
221
- * Initialize the library (sets up panic hook)
222
- */
223
- export function init() {
224
- wasm.init();
225
- }
226
-
227
- /**
228
- * Get library version (alias)
221
+ * Get the library version
229
222
  * @returns {string}
230
223
  */
231
- export function version() {
224
+ export function getVersion() {
232
225
  let deferred1_0;
233
226
  let deferred1_1;
234
227
  try {
@@ -241,15 +234,22 @@ export function version() {
241
234
  return getStringFromWasm0(r0, r1);
242
235
  } finally {
243
236
  wasm.__wbindgen_add_to_stack_pointer(16);
244
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
237
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
245
238
  }
246
239
  }
247
240
 
248
241
  /**
249
- * Get the library version
242
+ * Initialize the library (sets up panic hook)
243
+ */
244
+ export function init() {
245
+ wasm.init();
246
+ }
247
+
248
+ /**
249
+ * Get library version (alias)
250
250
  * @returns {string}
251
251
  */
252
- export function getVersion() {
252
+ export function version() {
253
253
  let deferred1_0;
254
254
  let deferred1_1;
255
255
  try {
@@ -262,7 +262,7 @@ export function getVersion() {
262
262
  return getStringFromWasm0(r0, r1);
263
263
  } finally {
264
264
  wasm.__wbindgen_add_to_stack_pointer(16);
265
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
265
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
266
266
  }
267
267
  }
268
268
 
@@ -405,7 +405,7 @@ export class JSONEvalWasm {
405
405
  return getStringFromWasm0(ptr4, len4);
406
406
  } finally {
407
407
  wasm.__wbindgen_add_to_stack_pointer(16);
408
- wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
408
+ wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
409
409
  }
410
410
  }
411
411
  /**
@@ -448,20 +448,22 @@ export class JSONEvalWasm {
448
448
  * @param context - Optional context data JSON string
449
449
  * @param reEvaluate - If true, performs full evaluation after processing dependents
450
450
  * @returns Array of dependent change objects as JavaScript object
451
- * @param {any} changed_paths
451
+ * @param {string} changed_paths_json
452
452
  * @param {string | null | undefined} data
453
453
  * @param {string | null | undefined} context
454
454
  * @param {boolean} re_evaluate
455
455
  * @returns {any}
456
456
  */
457
- evaluateDependentsJS(changed_paths, data, context, re_evaluate) {
457
+ evaluateDependentsJS(changed_paths_json, data, context, re_evaluate) {
458
458
  try {
459
459
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
460
- var ptr0 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
461
- var len0 = WASM_VECTOR_LEN;
462
- var ptr1 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
460
+ const ptr0 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
461
+ const len0 = WASM_VECTOR_LEN;
462
+ var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
463
463
  var len1 = WASM_VECTOR_LEN;
464
- wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, addHeapObject(changed_paths), ptr0, len0, ptr1, len1, re_evaluate);
464
+ var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
465
+ var len2 = WASM_VECTOR_LEN;
466
+ wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, re_evaluate);
465
467
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
466
468
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
467
469
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -915,7 +917,7 @@ export class JSONEvalWasm {
915
917
  let v2;
916
918
  if (r0 !== 0) {
917
919
  v2 = getStringFromWasm0(r0, r1).slice();
918
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
920
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
919
921
  }
920
922
  return v2;
921
923
  } finally {
@@ -954,7 +956,7 @@ export class JSONEvalWasm {
954
956
  return getStringFromWasm0(ptr2, len2);
955
957
  } finally {
956
958
  wasm.__wbindgen_add_to_stack_pointer(16);
957
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
959
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
958
960
  }
959
961
  }
960
962
  /**
@@ -978,7 +980,7 @@ export class JSONEvalWasm {
978
980
  return getStringFromWasm0(r0, r1);
979
981
  } finally {
980
982
  wasm.__wbindgen_add_to_stack_pointer(16);
981
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
983
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
982
984
  }
983
985
  }
984
986
  /**
@@ -1134,7 +1136,7 @@ export class JSONEvalWasm {
1134
1136
  let v2;
1135
1137
  if (r0 !== 0) {
1136
1138
  v2 = getStringFromWasm0(r0, r1).slice();
1137
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1139
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1138
1140
  }
1139
1141
  return v2;
1140
1142
  } finally {
@@ -1170,7 +1172,7 @@ export class JSONEvalWasm {
1170
1172
  throw takeObject(r2);
1171
1173
  }
1172
1174
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1173
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1175
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1174
1176
  return v1;
1175
1177
  } finally {
1176
1178
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1210,7 +1212,7 @@ export class JSONEvalWasm {
1210
1212
  return getStringFromWasm0(ptr2, len2);
1211
1213
  } finally {
1212
1214
  wasm.__wbindgen_add_to_stack_pointer(16);
1213
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
1215
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
1214
1216
  }
1215
1217
  }
1216
1218
  /**
@@ -1289,7 +1291,7 @@ export class JSONEvalWasm {
1289
1291
  return getStringFromWasm0(r0, r1);
1290
1292
  } finally {
1291
1293
  wasm.__wbindgen_add_to_stack_pointer(16);
1292
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1294
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
1293
1295
  }
1294
1296
  }
1295
1297
  /**
@@ -1409,7 +1411,7 @@ export class JSONEvalWasm {
1409
1411
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1410
1412
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1411
1413
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1412
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
1414
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
1413
1415
  return v1;
1414
1416
  } finally {
1415
1417
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1486,7 +1488,7 @@ export class JSONEvalWasm {
1486
1488
  let v3;
1487
1489
  if (r0 !== 0) {
1488
1490
  v3 = getStringFromWasm0(r0, r1).slice();
1489
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1491
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1490
1492
  }
1491
1493
  return v3;
1492
1494
  } finally {
@@ -1494,27 +1496,27 @@ export class JSONEvalWasm {
1494
1496
  }
1495
1497
  }
1496
1498
  /**
1497
- * Evaluate dependents in subform when a field changes
1499
+ * Evaluate dependents in subform when fields change
1498
1500
  *
1499
1501
  * @param subformPath - Path to the subform
1500
- * @param changedPath - Path of the field that changed
1502
+ * @param changedPaths - JSON array of paths that changed
1501
1503
  * @param data - Optional updated JSON data string
1502
1504
  * @param context - Optional context data JSON string
1503
1505
  * @returns Array of dependent change objects as JSON string
1504
1506
  * @param {string} subform_path
1505
- * @param {string} changed_path
1507
+ * @param {string} changed_paths_json
1506
1508
  * @param {string | null} [data]
1507
1509
  * @param {string | null} [context]
1508
1510
  * @returns {string}
1509
1511
  */
1510
- evaluateDependentsSubform(subform_path, changed_path, data, context) {
1512
+ evaluateDependentsSubform(subform_path, changed_paths_json, data, context) {
1511
1513
  let deferred6_0;
1512
1514
  let deferred6_1;
1513
1515
  try {
1514
1516
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1515
1517
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1516
1518
  const len0 = WASM_VECTOR_LEN;
1517
- const ptr1 = passStringToWasm0(changed_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1519
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1518
1520
  const len1 = WASM_VECTOR_LEN;
1519
1521
  var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1520
1522
  var len2 = WASM_VECTOR_LEN;
@@ -1536,7 +1538,7 @@ export class JSONEvalWasm {
1536
1538
  return getStringFromWasm0(ptr5, len5);
1537
1539
  } finally {
1538
1540
  wasm.__wbindgen_add_to_stack_pointer(16);
1539
- wasm.__wbindgen_export_3(deferred6_0, deferred6_1, 1);
1541
+ wasm.__wbindgen_export_2(deferred6_0, deferred6_1, 1);
1540
1542
  }
1541
1543
  }
1542
1544
  /**
@@ -1575,7 +1577,7 @@ export class JSONEvalWasm {
1575
1577
  return getStringFromWasm0(ptr3, len3);
1576
1578
  } finally {
1577
1579
  wasm.__wbindgen_add_to_stack_pointer(16);
1578
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1580
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1579
1581
  }
1580
1582
  }
1581
1583
  /**
@@ -1603,7 +1605,7 @@ export class JSONEvalWasm {
1603
1605
  return getStringFromWasm0(r0, r1);
1604
1606
  } finally {
1605
1607
  wasm.__wbindgen_add_to_stack_pointer(16);
1606
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1608
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1607
1609
  }
1608
1610
  }
1609
1611
  /**
@@ -1643,21 +1645,23 @@ export class JSONEvalWasm {
1643
1645
  * @param context - Optional context data JSON string
1644
1646
  * @returns Array of dependent change objects as JavaScript object
1645
1647
  * @param {string} subform_path
1646
- * @param {any} changed_paths
1648
+ * @param {string} changed_paths_json
1647
1649
  * @param {string | null} [data]
1648
1650
  * @param {string | null} [context]
1649
1651
  * @returns {any}
1650
1652
  */
1651
- evaluateDependentsSubformJS(subform_path, changed_paths, data, context) {
1653
+ evaluateDependentsSubformJS(subform_path, changed_paths_json, data, context) {
1652
1654
  try {
1653
1655
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1654
1656
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1655
1657
  const len0 = WASM_VECTOR_LEN;
1656
- var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1657
- var len1 = WASM_VECTOR_LEN;
1658
- var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1658
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1659
+ const len1 = WASM_VECTOR_LEN;
1660
+ var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1659
1661
  var len2 = WASM_VECTOR_LEN;
1660
- wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(changed_paths), ptr1, len1, ptr2, len2);
1662
+ var ptr3 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1663
+ var len3 = WASM_VECTOR_LEN;
1664
+ wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1661
1665
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1662
1666
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1663
1667
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1676,16 +1680,18 @@ export class JSONEvalWasm {
1676
1680
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1677
1681
  * @returns Data in specified format as JavaScript object
1678
1682
  * @param {string} subform_path
1679
- * @param {any} paths_val
1683
+ * @param {string} paths_json
1680
1684
  * @param {number} format
1681
1685
  * @returns {any}
1682
1686
  */
1683
- getSchemaByPathsSubformJS(subform_path, paths_val, format) {
1687
+ getSchemaByPathsSubformJS(subform_path, paths_json, format) {
1684
1688
  try {
1685
1689
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1686
1690
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1687
1691
  const len0 = WASM_VECTOR_LEN;
1688
- wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), format);
1692
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1693
+ const len1 = WASM_VECTOR_LEN;
1694
+ wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
1689
1695
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1690
1696
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1691
1697
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1749,7 +1755,7 @@ export class JSONEvalWasm {
1749
1755
  let v3;
1750
1756
  if (r0 !== 0) {
1751
1757
  v3 = getStringFromWasm0(r0, r1).slice();
1752
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1758
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1753
1759
  }
1754
1760
  return v3;
1755
1761
  } finally {
@@ -1794,7 +1800,7 @@ export class JSONEvalWasm {
1794
1800
  return getStringFromWasm0(ptr3, len3);
1795
1801
  } finally {
1796
1802
  wasm.__wbindgen_add_to_stack_pointer(16);
1797
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1803
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1798
1804
  }
1799
1805
  }
1800
1806
  /**
@@ -1836,17 +1842,19 @@ export class JSONEvalWasm {
1836
1842
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1837
1843
  * @returns Data in specified format as JavaScript object
1838
1844
  * @param {string} subform_path
1839
- * @param {any} paths_val
1845
+ * @param {string} paths_json
1840
1846
  * @param {boolean} skip_layout
1841
1847
  * @param {number} format
1842
1848
  * @returns {any}
1843
1849
  */
1844
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_val, skip_layout, format) {
1850
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
1845
1851
  try {
1846
1852
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1847
1853
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1848
1854
  const len0 = WASM_VECTOR_LEN;
1849
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), skip_layout, format);
1855
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1856
+ const len1 = WASM_VECTOR_LEN;
1857
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
1850
1858
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1851
1859
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1852
1860
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1883,7 +1891,7 @@ export class JSONEvalWasm {
1883
1891
  return getStringFromWasm0(r0, r1);
1884
1892
  } finally {
1885
1893
  wasm.__wbindgen_add_to_stack_pointer(16);
1886
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1894
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1887
1895
  }
1888
1896
  }
1889
1897
  /**
@@ -1955,7 +1963,7 @@ export class ValidationError {
1955
1963
  let v1;
1956
1964
  if (r0 !== 0) {
1957
1965
  v1 = getStringFromWasm0(r0, r1).slice();
1958
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1966
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1959
1967
  }
1960
1968
  return v1;
1961
1969
  } finally {
@@ -1974,7 +1982,7 @@ export class ValidationError {
1974
1982
  let v1;
1975
1983
  if (r0 !== 0) {
1976
1984
  v1 = getStringFromWasm0(r0, r1).slice();
1977
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1985
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1978
1986
  }
1979
1987
  return v1;
1980
1988
  } finally {
@@ -2004,7 +2012,7 @@ export class ValidationError {
2004
2012
  return getStringFromWasm0(r0, r1);
2005
2013
  } finally {
2006
2014
  wasm.__wbindgen_add_to_stack_pointer(16);
2007
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2015
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2008
2016
  }
2009
2017
  }
2010
2018
  /**
@@ -2023,7 +2031,7 @@ export class ValidationError {
2023
2031
  return getStringFromWasm0(r0, r1);
2024
2032
  } finally {
2025
2033
  wasm.__wbindgen_add_to_stack_pointer(16);
2026
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2034
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2027
2035
  }
2028
2036
  }
2029
2037
  /**
@@ -2038,7 +2046,7 @@ export class ValidationError {
2038
2046
  let v1;
2039
2047
  if (r0 !== 0) {
2040
2048
  v1 = getStringFromWasm0(r0, r1).slice();
2041
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
2049
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
2042
2050
  }
2043
2051
  return v1;
2044
2052
  } finally {
@@ -2061,7 +2069,7 @@ export class ValidationError {
2061
2069
  return getStringFromWasm0(r0, r1);
2062
2070
  } finally {
2063
2071
  wasm.__wbindgen_add_to_stack_pointer(16);
2064
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2072
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2065
2073
  }
2066
2074
  }
2067
2075
  }
@@ -2104,7 +2112,7 @@ export class ValidationResult {
2104
2112
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2105
2113
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2106
2114
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2107
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
2115
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2108
2116
  return v1;
2109
2117
  } finally {
2110
2118
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2151,16 +2159,6 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
2151
2159
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2152
2160
  };
2153
2161
 
2154
- export function __wbg_call_13410aac570ffff7() { return handleError(function (arg0, arg1) {
2155
- const ret = getObject(arg0).call(getObject(arg1));
2156
- return addHeapObject(ret);
2157
- }, arguments) };
2158
-
2159
- export function __wbg_done_75ed0ee6dd243d9d(arg0) {
2160
- const ret = getObject(arg0).done;
2161
- return ret;
2162
- };
2163
-
2164
2162
  export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
2165
2163
  let deferred0_0;
2166
2164
  let deferred0_1;
@@ -2169,7 +2167,7 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
2169
2167
  deferred0_1 = arg1;
2170
2168
  console.error(getStringFromWasm0(arg0, arg1));
2171
2169
  } finally {
2172
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
2170
+ wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
2173
2171
  }
2174
2172
  };
2175
2173
 
@@ -2182,59 +2180,7 @@ export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
2182
2180
  return ret;
2183
2181
  };
2184
2182
 
2185
- export function __wbg_get_0da715ceaecea5c8(arg0, arg1) {
2186
- const ret = getObject(arg0)[arg1 >>> 0];
2187
- return addHeapObject(ret);
2188
- };
2189
-
2190
- export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
2191
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
2192
- return addHeapObject(ret);
2193
- }, arguments) };
2194
-
2195
- export function __wbg_instanceof_ArrayBuffer_67f3012529f6a2dd(arg0) {
2196
- let result;
2197
- try {
2198
- result = getObject(arg0) instanceof ArrayBuffer;
2199
- } catch (_) {
2200
- result = false;
2201
- }
2202
- const ret = result;
2203
- return ret;
2204
- };
2205
-
2206
- export function __wbg_instanceof_Uint8Array_9a8378d955933db7(arg0) {
2207
- let result;
2208
- try {
2209
- result = getObject(arg0) instanceof Uint8Array;
2210
- } catch (_) {
2211
- result = false;
2212
- }
2213
- const ret = result;
2214
- return ret;
2215
- };
2216
-
2217
- export function __wbg_isArray_030cce220591fb41(arg0) {
2218
- const ret = Array.isArray(getObject(arg0));
2219
- return ret;
2220
- };
2221
-
2222
- export function __wbg_iterator_f370b34483c71a1c() {
2223
- const ret = Symbol.iterator;
2224
- return addHeapObject(ret);
2225
- };
2226
-
2227
- export function __wbg_length_186546c51cd61acd(arg0) {
2228
- const ret = getObject(arg0).length;
2229
- return ret;
2230
- };
2231
-
2232
- export function __wbg_length_6bb7e81f9d7713e4(arg0) {
2233
- const ret = getObject(arg0).length;
2234
- return ret;
2235
- };
2236
-
2237
- export function __wbg_log_4b6ed0b139485439(arg0, arg1) {
2183
+ export function __wbg_log_335f2dafcd729af1(arg0, arg1) {
2238
2184
  console.log(getStringFromWasm0(arg0, arg1));
2239
2185
  };
2240
2186
 
@@ -2258,35 +2204,16 @@ export function __wbg_new_2ff1f68f3676ea53() {
2258
2204
  return addHeapObject(ret);
2259
2205
  };
2260
2206
 
2261
- export function __wbg_new_638ebfaedbf32a5e(arg0) {
2262
- const ret = new Uint8Array(getObject(arg0));
2263
- return addHeapObject(ret);
2264
- };
2265
-
2266
2207
  export function __wbg_new_8a6f238a6ece86ea() {
2267
2208
  const ret = new Error();
2268
2209
  return addHeapObject(ret);
2269
2210
  };
2270
2211
 
2271
- export function __wbg_next_5b3530e612fde77d(arg0) {
2272
- const ret = getObject(arg0).next;
2273
- return addHeapObject(ret);
2274
- };
2275
-
2276
- export function __wbg_next_692e82279131b03c() { return handleError(function (arg0) {
2277
- const ret = getObject(arg0).next();
2278
- return addHeapObject(ret);
2279
- }, arguments) };
2280
-
2281
2212
  export function __wbg_parse_442f5ba02e5eaf8b() { return handleError(function (arg0, arg1) {
2282
2213
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2283
2214
  return addHeapObject(ret);
2284
2215
  }, arguments) };
2285
2216
 
2286
- export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
2287
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2288
- };
2289
-
2290
2217
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
2291
2218
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2292
2219
  };
@@ -2313,17 +2240,6 @@ export function __wbg_validationerror_new(arg0) {
2313
2240
  return addHeapObject(ret);
2314
2241
  };
2315
2242
 
2316
- export function __wbg_value_dd9372230531eade(arg0) {
2317
- const ret = getObject(arg0).value;
2318
- return addHeapObject(ret);
2319
- };
2320
-
2321
- export function __wbg_wbindgenbooleanget_3fe6f642c7d97746(arg0) {
2322
- const v = getObject(arg0);
2323
- const ret = typeof(v) === 'boolean' ? v : undefined;
2324
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
2325
- };
2326
-
2327
2243
  export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
2328
2244
  const ret = debugString(getObject(arg1));
2329
2245
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -2332,34 +2248,11 @@ export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
2332
2248
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2333
2249
  };
2334
2250
 
2335
- export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
2336
- const ret = typeof(getObject(arg0)) === 'function';
2337
- return ret;
2338
- };
2339
-
2340
- export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
2341
- const val = getObject(arg0);
2342
- const ret = typeof(val) === 'object' && val !== null;
2343
- return ret;
2344
- };
2345
-
2346
2251
  export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
2347
2252
  const ret = typeof(getObject(arg0)) === 'string';
2348
2253
  return ret;
2349
2254
  };
2350
2255
 
2351
- export function __wbg_wbindgenjsvallooseeq_9bec8c9be826bed1(arg0, arg1) {
2352
- const ret = getObject(arg0) == getObject(arg1);
2353
- return ret;
2354
- };
2355
-
2356
- export function __wbg_wbindgennumberget_f74b4c7525ac05cb(arg0, arg1) {
2357
- const obj = getObject(arg1);
2358
- const ret = typeof(obj) === 'number' ? obj : undefined;
2359
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2360
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2361
- };
2362
-
2363
2256
  export function __wbg_wbindgenstringget_0f16a6ddddef376f(arg0, arg1) {
2364
2257
  const obj = getObject(arg1);
2365
2258
  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;