@json-eval-rs/bundler 0.0.47 → 0.0.49

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.49",
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",
@@ -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;
@@ -143,71 +143,6 @@ function isLikeNone(x) {
143
143
  return x === undefined || x === null;
144
144
  }
145
145
 
146
- function debugString(val) {
147
- // primitive types
148
- const type = typeof val;
149
- if (type == 'number' || type == 'boolean' || val == null) {
150
- return `${val}`;
151
- }
152
- if (type == 'string') {
153
- return `"${val}"`;
154
- }
155
- if (type == 'symbol') {
156
- const description = val.description;
157
- if (description == null) {
158
- return 'Symbol';
159
- } else {
160
- return `Symbol(${description})`;
161
- }
162
- }
163
- if (type == 'function') {
164
- const name = val.name;
165
- if (typeof name == 'string' && name.length > 0) {
166
- return `Function(${name})`;
167
- } else {
168
- return 'Function';
169
- }
170
- }
171
- // objects
172
- if (Array.isArray(val)) {
173
- const length = val.length;
174
- let debug = '[';
175
- if (length > 0) {
176
- debug += debugString(val[0]);
177
- }
178
- for(let i = 1; i < length; i++) {
179
- debug += ', ' + debugString(val[i]);
180
- }
181
- debug += ']';
182
- return debug;
183
- }
184
- // Test for built-in
185
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
186
- let className;
187
- if (builtInMatches && builtInMatches.length > 1) {
188
- className = builtInMatches[1];
189
- } else {
190
- // Failed to match the standard '[object ClassName]'
191
- return toString.call(val);
192
- }
193
- if (className == 'Object') {
194
- // we're a user defined class or Object
195
- // JSON.stringify avoids problems with cycles, and is generally much
196
- // easier than looping through ownProperties of `val`.
197
- try {
198
- return 'Object(' + JSON.stringify(val) + ')';
199
- } catch (_) {
200
- return 'Object';
201
- }
202
- }
203
- // errors
204
- if (val instanceof Error) {
205
- return `${val.name}: ${val.message}\n${val.stack}`;
206
- }
207
- // TODO we could test for more things here, like `Set`s and `Map`s.
208
- return className;
209
- }
210
-
211
146
  function passArrayJsValueToWasm0(array, malloc) {
212
147
  const ptr = malloc(array.length * 4, 4) >>> 0;
213
148
  const mem = getDataViewMemory0();
@@ -241,7 +176,7 @@ export function version() {
241
176
  return getStringFromWasm0(r0, r1);
242
177
  } finally {
243
178
  wasm.__wbindgen_add_to_stack_pointer(16);
244
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
179
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
245
180
  }
246
181
  }
247
182
 
@@ -262,7 +197,7 @@ export function getVersion() {
262
197
  return getStringFromWasm0(r0, r1);
263
198
  } finally {
264
199
  wasm.__wbindgen_add_to_stack_pointer(16);
265
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
200
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
266
201
  }
267
202
  }
268
203
 
@@ -405,7 +340,7 @@ export class JSONEvalWasm {
405
340
  return getStringFromWasm0(ptr4, len4);
406
341
  } finally {
407
342
  wasm.__wbindgen_add_to_stack_pointer(16);
408
- wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
343
+ wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
409
344
  }
410
345
  }
411
346
  /**
@@ -448,20 +383,22 @@ export class JSONEvalWasm {
448
383
  * @param context - Optional context data JSON string
449
384
  * @param reEvaluate - If true, performs full evaluation after processing dependents
450
385
  * @returns Array of dependent change objects as JavaScript object
451
- * @param {any} changed_paths
386
+ * @param {string} changed_paths_json
452
387
  * @param {string | null | undefined} data
453
388
  * @param {string | null | undefined} context
454
389
  * @param {boolean} re_evaluate
455
390
  * @returns {any}
456
391
  */
457
- evaluateDependentsJS(changed_paths, data, context, re_evaluate) {
392
+ evaluateDependentsJS(changed_paths_json, data, context, re_evaluate) {
458
393
  try {
459
394
  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);
395
+ const ptr0 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
396
+ const len0 = WASM_VECTOR_LEN;
397
+ var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
463
398
  var len1 = WASM_VECTOR_LEN;
464
- wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, addHeapObject(changed_paths), ptr0, len0, ptr1, len1, re_evaluate);
399
+ var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
400
+ var len2 = WASM_VECTOR_LEN;
401
+ wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, re_evaluate);
465
402
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
466
403
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
467
404
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -915,7 +852,7 @@ export class JSONEvalWasm {
915
852
  let v2;
916
853
  if (r0 !== 0) {
917
854
  v2 = getStringFromWasm0(r0, r1).slice();
918
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
855
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
919
856
  }
920
857
  return v2;
921
858
  } finally {
@@ -954,7 +891,7 @@ export class JSONEvalWasm {
954
891
  return getStringFromWasm0(ptr2, len2);
955
892
  } finally {
956
893
  wasm.__wbindgen_add_to_stack_pointer(16);
957
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
894
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
958
895
  }
959
896
  }
960
897
  /**
@@ -978,7 +915,7 @@ export class JSONEvalWasm {
978
915
  return getStringFromWasm0(r0, r1);
979
916
  } finally {
980
917
  wasm.__wbindgen_add_to_stack_pointer(16);
981
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
918
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
982
919
  }
983
920
  }
984
921
  /**
@@ -1134,7 +1071,7 @@ export class JSONEvalWasm {
1134
1071
  let v2;
1135
1072
  if (r0 !== 0) {
1136
1073
  v2 = getStringFromWasm0(r0, r1).slice();
1137
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1074
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1138
1075
  }
1139
1076
  return v2;
1140
1077
  } finally {
@@ -1170,7 +1107,7 @@ export class JSONEvalWasm {
1170
1107
  throw takeObject(r2);
1171
1108
  }
1172
1109
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1173
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1110
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1174
1111
  return v1;
1175
1112
  } finally {
1176
1113
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1210,7 +1147,7 @@ export class JSONEvalWasm {
1210
1147
  return getStringFromWasm0(ptr2, len2);
1211
1148
  } finally {
1212
1149
  wasm.__wbindgen_add_to_stack_pointer(16);
1213
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
1150
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
1214
1151
  }
1215
1152
  }
1216
1153
  /**
@@ -1289,7 +1226,7 @@ export class JSONEvalWasm {
1289
1226
  return getStringFromWasm0(r0, r1);
1290
1227
  } finally {
1291
1228
  wasm.__wbindgen_add_to_stack_pointer(16);
1292
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1229
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
1293
1230
  }
1294
1231
  }
1295
1232
  /**
@@ -1409,7 +1346,7 @@ export class JSONEvalWasm {
1409
1346
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1410
1347
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1411
1348
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1412
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
1349
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
1413
1350
  return v1;
1414
1351
  } finally {
1415
1352
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1486,7 +1423,7 @@ export class JSONEvalWasm {
1486
1423
  let v3;
1487
1424
  if (r0 !== 0) {
1488
1425
  v3 = getStringFromWasm0(r0, r1).slice();
1489
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1426
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1490
1427
  }
1491
1428
  return v3;
1492
1429
  } finally {
@@ -1494,27 +1431,27 @@ export class JSONEvalWasm {
1494
1431
  }
1495
1432
  }
1496
1433
  /**
1497
- * Evaluate dependents in subform when a field changes
1434
+ * Evaluate dependents in subform when fields change
1498
1435
  *
1499
1436
  * @param subformPath - Path to the subform
1500
- * @param changedPath - Path of the field that changed
1437
+ * @param changedPaths - JSON array of paths that changed
1501
1438
  * @param data - Optional updated JSON data string
1502
1439
  * @param context - Optional context data JSON string
1503
1440
  * @returns Array of dependent change objects as JSON string
1504
1441
  * @param {string} subform_path
1505
- * @param {string} changed_path
1442
+ * @param {string} changed_paths_json
1506
1443
  * @param {string | null} [data]
1507
1444
  * @param {string | null} [context]
1508
1445
  * @returns {string}
1509
1446
  */
1510
- evaluateDependentsSubform(subform_path, changed_path, data, context) {
1447
+ evaluateDependentsSubform(subform_path, changed_paths_json, data, context) {
1511
1448
  let deferred6_0;
1512
1449
  let deferred6_1;
1513
1450
  try {
1514
1451
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1515
1452
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1516
1453
  const len0 = WASM_VECTOR_LEN;
1517
- const ptr1 = passStringToWasm0(changed_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1454
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1518
1455
  const len1 = WASM_VECTOR_LEN;
1519
1456
  var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1520
1457
  var len2 = WASM_VECTOR_LEN;
@@ -1536,7 +1473,7 @@ export class JSONEvalWasm {
1536
1473
  return getStringFromWasm0(ptr5, len5);
1537
1474
  } finally {
1538
1475
  wasm.__wbindgen_add_to_stack_pointer(16);
1539
- wasm.__wbindgen_export_3(deferred6_0, deferred6_1, 1);
1476
+ wasm.__wbindgen_export_2(deferred6_0, deferred6_1, 1);
1540
1477
  }
1541
1478
  }
1542
1479
  /**
@@ -1575,7 +1512,7 @@ export class JSONEvalWasm {
1575
1512
  return getStringFromWasm0(ptr3, len3);
1576
1513
  } finally {
1577
1514
  wasm.__wbindgen_add_to_stack_pointer(16);
1578
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1515
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1579
1516
  }
1580
1517
  }
1581
1518
  /**
@@ -1603,7 +1540,7 @@ export class JSONEvalWasm {
1603
1540
  return getStringFromWasm0(r0, r1);
1604
1541
  } finally {
1605
1542
  wasm.__wbindgen_add_to_stack_pointer(16);
1606
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1543
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1607
1544
  }
1608
1545
  }
1609
1546
  /**
@@ -1643,21 +1580,23 @@ export class JSONEvalWasm {
1643
1580
  * @param context - Optional context data JSON string
1644
1581
  * @returns Array of dependent change objects as JavaScript object
1645
1582
  * @param {string} subform_path
1646
- * @param {any} changed_paths
1583
+ * @param {string} changed_paths_json
1647
1584
  * @param {string | null} [data]
1648
1585
  * @param {string | null} [context]
1649
1586
  * @returns {any}
1650
1587
  */
1651
- evaluateDependentsSubformJS(subform_path, changed_paths, data, context) {
1588
+ evaluateDependentsSubformJS(subform_path, changed_paths_json, data, context) {
1652
1589
  try {
1653
1590
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1654
1591
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1655
1592
  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);
1593
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1594
+ const len1 = WASM_VECTOR_LEN;
1595
+ var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1659
1596
  var len2 = WASM_VECTOR_LEN;
1660
- wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(changed_paths), ptr1, len1, ptr2, len2);
1597
+ var ptr3 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1598
+ var len3 = WASM_VECTOR_LEN;
1599
+ wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1661
1600
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1662
1601
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1663
1602
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1676,16 +1615,18 @@ export class JSONEvalWasm {
1676
1615
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1677
1616
  * @returns Data in specified format as JavaScript object
1678
1617
  * @param {string} subform_path
1679
- * @param {any} paths_val
1618
+ * @param {string} paths_json
1680
1619
  * @param {number} format
1681
1620
  * @returns {any}
1682
1621
  */
1683
- getSchemaByPathsSubformJS(subform_path, paths_val, format) {
1622
+ getSchemaByPathsSubformJS(subform_path, paths_json, format) {
1684
1623
  try {
1685
1624
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1686
1625
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1687
1626
  const len0 = WASM_VECTOR_LEN;
1688
- wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), format);
1627
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1628
+ const len1 = WASM_VECTOR_LEN;
1629
+ wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
1689
1630
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1690
1631
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1691
1632
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1749,7 +1690,7 @@ export class JSONEvalWasm {
1749
1690
  let v3;
1750
1691
  if (r0 !== 0) {
1751
1692
  v3 = getStringFromWasm0(r0, r1).slice();
1752
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1693
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1753
1694
  }
1754
1695
  return v3;
1755
1696
  } finally {
@@ -1794,7 +1735,7 @@ export class JSONEvalWasm {
1794
1735
  return getStringFromWasm0(ptr3, len3);
1795
1736
  } finally {
1796
1737
  wasm.__wbindgen_add_to_stack_pointer(16);
1797
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1738
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1798
1739
  }
1799
1740
  }
1800
1741
  /**
@@ -1836,17 +1777,19 @@ export class JSONEvalWasm {
1836
1777
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1837
1778
  * @returns Data in specified format as JavaScript object
1838
1779
  * @param {string} subform_path
1839
- * @param {any} paths_val
1780
+ * @param {string} paths_json
1840
1781
  * @param {boolean} skip_layout
1841
1782
  * @param {number} format
1842
1783
  * @returns {any}
1843
1784
  */
1844
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_val, skip_layout, format) {
1785
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
1845
1786
  try {
1846
1787
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1847
1788
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1848
1789
  const len0 = WASM_VECTOR_LEN;
1849
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), skip_layout, format);
1790
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1791
+ const len1 = WASM_VECTOR_LEN;
1792
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
1850
1793
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1851
1794
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1852
1795
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1883,7 +1826,7 @@ export class JSONEvalWasm {
1883
1826
  return getStringFromWasm0(r0, r1);
1884
1827
  } finally {
1885
1828
  wasm.__wbindgen_add_to_stack_pointer(16);
1886
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1829
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1887
1830
  }
1888
1831
  }
1889
1832
  /**
@@ -1955,7 +1898,7 @@ export class ValidationError {
1955
1898
  let v1;
1956
1899
  if (r0 !== 0) {
1957
1900
  v1 = getStringFromWasm0(r0, r1).slice();
1958
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1901
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1959
1902
  }
1960
1903
  return v1;
1961
1904
  } finally {
@@ -1974,7 +1917,7 @@ export class ValidationError {
1974
1917
  let v1;
1975
1918
  if (r0 !== 0) {
1976
1919
  v1 = getStringFromWasm0(r0, r1).slice();
1977
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1920
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1978
1921
  }
1979
1922
  return v1;
1980
1923
  } finally {
@@ -2004,7 +1947,7 @@ export class ValidationError {
2004
1947
  return getStringFromWasm0(r0, r1);
2005
1948
  } finally {
2006
1949
  wasm.__wbindgen_add_to_stack_pointer(16);
2007
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1950
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2008
1951
  }
2009
1952
  }
2010
1953
  /**
@@ -2023,7 +1966,7 @@ export class ValidationError {
2023
1966
  return getStringFromWasm0(r0, r1);
2024
1967
  } finally {
2025
1968
  wasm.__wbindgen_add_to_stack_pointer(16);
2026
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1969
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2027
1970
  }
2028
1971
  }
2029
1972
  /**
@@ -2038,7 +1981,7 @@ export class ValidationError {
2038
1981
  let v1;
2039
1982
  if (r0 !== 0) {
2040
1983
  v1 = getStringFromWasm0(r0, r1).slice();
2041
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1984
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
2042
1985
  }
2043
1986
  return v1;
2044
1987
  } finally {
@@ -2061,7 +2004,7 @@ export class ValidationError {
2061
2004
  return getStringFromWasm0(r0, r1);
2062
2005
  } finally {
2063
2006
  wasm.__wbindgen_add_to_stack_pointer(16);
2064
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2007
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2065
2008
  }
2066
2009
  }
2067
2010
  }
@@ -2104,7 +2047,7 @@ export class ValidationResult {
2104
2047
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2105
2048
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2106
2049
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2107
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
2050
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2108
2051
  return v1;
2109
2052
  } finally {
2110
2053
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2151,16 +2094,6 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
2151
2094
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2152
2095
  };
2153
2096
 
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
2097
  export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
2165
2098
  let deferred0_0;
2166
2099
  let deferred0_1;
@@ -2169,7 +2102,7 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
2169
2102
  deferred0_1 = arg1;
2170
2103
  console.error(getStringFromWasm0(arg0, arg1));
2171
2104
  } finally {
2172
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
2105
+ wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
2173
2106
  }
2174
2107
  };
2175
2108
 
@@ -2182,59 +2115,7 @@ export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
2182
2115
  return ret;
2183
2116
  };
2184
2117
 
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) {
2118
+ export function __wbg_log_bb412d517df4ef42(arg0, arg1) {
2238
2119
  console.log(getStringFromWasm0(arg0, arg1));
2239
2120
  };
2240
2121
 
@@ -2258,35 +2139,11 @@ export function __wbg_new_2ff1f68f3676ea53() {
2258
2139
  return addHeapObject(ret);
2259
2140
  };
2260
2141
 
2261
- export function __wbg_new_638ebfaedbf32a5e(arg0) {
2262
- const ret = new Uint8Array(getObject(arg0));
2263
- return addHeapObject(ret);
2264
- };
2265
-
2266
2142
  export function __wbg_new_8a6f238a6ece86ea() {
2267
2143
  const ret = new Error();
2268
2144
  return addHeapObject(ret);
2269
2145
  };
2270
2146
 
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
- export function __wbg_parse_442f5ba02e5eaf8b() { return handleError(function (arg0, arg1) {
2282
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2283
- return addHeapObject(ret);
2284
- }, arguments) };
2285
-
2286
- export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
2287
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2288
- };
2289
-
2290
2147
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
2291
2148
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2292
2149
  };
@@ -2313,53 +2170,11 @@ export function __wbg_validationerror_new(arg0) {
2313
2170
  return addHeapObject(ret);
2314
2171
  };
2315
2172
 
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
- export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
2328
- const ret = debugString(getObject(arg1));
2329
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
2330
- const len1 = WASM_VECTOR_LEN;
2331
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2332
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2333
- };
2334
-
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
2173
  export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
2347
2174
  const ret = typeof(getObject(arg0)) === 'string';
2348
2175
  return ret;
2349
2176
  };
2350
2177
 
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
2178
  export function __wbg_wbindgenstringget_0f16a6ddddef376f(arg0, arg1) {
2364
2179
  const obj = getObject(arg1);
2365
2180
  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;