@json-eval-rs/node 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/node",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
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",
@@ -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;
@@ -133,71 +133,6 @@ function isLikeNone(x) {
133
133
  return x === undefined || x === null;
134
134
  }
135
135
 
136
- function debugString(val) {
137
- // primitive types
138
- const type = typeof val;
139
- if (type == 'number' || type == 'boolean' || val == null) {
140
- return `${val}`;
141
- }
142
- if (type == 'string') {
143
- return `"${val}"`;
144
- }
145
- if (type == 'symbol') {
146
- const description = val.description;
147
- if (description == null) {
148
- return 'Symbol';
149
- } else {
150
- return `Symbol(${description})`;
151
- }
152
- }
153
- if (type == 'function') {
154
- const name = val.name;
155
- if (typeof name == 'string' && name.length > 0) {
156
- return `Function(${name})`;
157
- } else {
158
- return 'Function';
159
- }
160
- }
161
- // objects
162
- if (Array.isArray(val)) {
163
- const length = val.length;
164
- let debug = '[';
165
- if (length > 0) {
166
- debug += debugString(val[0]);
167
- }
168
- for(let i = 1; i < length; i++) {
169
- debug += ', ' + debugString(val[i]);
170
- }
171
- debug += ']';
172
- return debug;
173
- }
174
- // Test for built-in
175
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
176
- let className;
177
- if (builtInMatches && builtInMatches.length > 1) {
178
- className = builtInMatches[1];
179
- } else {
180
- // Failed to match the standard '[object ClassName]'
181
- return toString.call(val);
182
- }
183
- if (className == 'Object') {
184
- // we're a user defined class or Object
185
- // JSON.stringify avoids problems with cycles, and is generally much
186
- // easier than looping through ownProperties of `val`.
187
- try {
188
- return 'Object(' + JSON.stringify(val) + ')';
189
- } catch (_) {
190
- return 'Object';
191
- }
192
- }
193
- // errors
194
- if (val instanceof Error) {
195
- return `${val.name}: ${val.message}\n${val.stack}`;
196
- }
197
- // TODO we could test for more things here, like `Set`s and `Map`s.
198
- return className;
199
- }
200
-
201
136
  function passArrayJsValueToWasm0(array, malloc) {
202
137
  const ptr = malloc(array.length * 4, 4) >>> 0;
203
138
  const mem = getDataViewMemory0();
@@ -231,7 +166,7 @@ exports.version = function() {
231
166
  return getStringFromWasm0(r0, r1);
232
167
  } finally {
233
168
  wasm.__wbindgen_add_to_stack_pointer(16);
234
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
169
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
235
170
  }
236
171
  };
237
172
 
@@ -252,7 +187,7 @@ exports.getVersion = function() {
252
187
  return getStringFromWasm0(r0, r1);
253
188
  } finally {
254
189
  wasm.__wbindgen_add_to_stack_pointer(16);
255
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
190
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
256
191
  }
257
192
  };
258
193
 
@@ -395,7 +330,7 @@ class JSONEvalWasm {
395
330
  return getStringFromWasm0(ptr4, len4);
396
331
  } finally {
397
332
  wasm.__wbindgen_add_to_stack_pointer(16);
398
- wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
333
+ wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
399
334
  }
400
335
  }
401
336
  /**
@@ -438,20 +373,22 @@ class JSONEvalWasm {
438
373
  * @param context - Optional context data JSON string
439
374
  * @param reEvaluate - If true, performs full evaluation after processing dependents
440
375
  * @returns Array of dependent change objects as JavaScript object
441
- * @param {any} changed_paths
376
+ * @param {string} changed_paths_json
442
377
  * @param {string | null | undefined} data
443
378
  * @param {string | null | undefined} context
444
379
  * @param {boolean} re_evaluate
445
380
  * @returns {any}
446
381
  */
447
- evaluateDependentsJS(changed_paths, data, context, re_evaluate) {
382
+ evaluateDependentsJS(changed_paths_json, data, context, re_evaluate) {
448
383
  try {
449
384
  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);
385
+ const ptr0 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
386
+ const len0 = WASM_VECTOR_LEN;
387
+ var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
453
388
  var len1 = WASM_VECTOR_LEN;
454
- wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, addHeapObject(changed_paths), ptr0, len0, ptr1, len1, re_evaluate);
389
+ var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
390
+ var len2 = WASM_VECTOR_LEN;
391
+ wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, re_evaluate);
455
392
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
456
393
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
457
394
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -905,7 +842,7 @@ class JSONEvalWasm {
905
842
  let v2;
906
843
  if (r0 !== 0) {
907
844
  v2 = getStringFromWasm0(r0, r1).slice();
908
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
845
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
909
846
  }
910
847
  return v2;
911
848
  } finally {
@@ -944,7 +881,7 @@ class JSONEvalWasm {
944
881
  return getStringFromWasm0(ptr2, len2);
945
882
  } finally {
946
883
  wasm.__wbindgen_add_to_stack_pointer(16);
947
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
884
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
948
885
  }
949
886
  }
950
887
  /**
@@ -968,7 +905,7 @@ class JSONEvalWasm {
968
905
  return getStringFromWasm0(r0, r1);
969
906
  } finally {
970
907
  wasm.__wbindgen_add_to_stack_pointer(16);
971
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
908
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
972
909
  }
973
910
  }
974
911
  /**
@@ -1124,7 +1061,7 @@ class JSONEvalWasm {
1124
1061
  let v2;
1125
1062
  if (r0 !== 0) {
1126
1063
  v2 = getStringFromWasm0(r0, r1).slice();
1127
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1064
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1128
1065
  }
1129
1066
  return v2;
1130
1067
  } finally {
@@ -1160,7 +1097,7 @@ class JSONEvalWasm {
1160
1097
  throw takeObject(r2);
1161
1098
  }
1162
1099
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1163
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1100
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1164
1101
  return v1;
1165
1102
  } finally {
1166
1103
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1200,7 +1137,7 @@ class JSONEvalWasm {
1200
1137
  return getStringFromWasm0(ptr2, len2);
1201
1138
  } finally {
1202
1139
  wasm.__wbindgen_add_to_stack_pointer(16);
1203
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
1140
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
1204
1141
  }
1205
1142
  }
1206
1143
  /**
@@ -1279,7 +1216,7 @@ class JSONEvalWasm {
1279
1216
  return getStringFromWasm0(r0, r1);
1280
1217
  } finally {
1281
1218
  wasm.__wbindgen_add_to_stack_pointer(16);
1282
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1219
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
1283
1220
  }
1284
1221
  }
1285
1222
  /**
@@ -1399,7 +1336,7 @@ class JSONEvalWasm {
1399
1336
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1400
1337
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1401
1338
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1402
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
1339
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
1403
1340
  return v1;
1404
1341
  } finally {
1405
1342
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1476,7 +1413,7 @@ class JSONEvalWasm {
1476
1413
  let v3;
1477
1414
  if (r0 !== 0) {
1478
1415
  v3 = getStringFromWasm0(r0, r1).slice();
1479
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1416
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1480
1417
  }
1481
1418
  return v3;
1482
1419
  } finally {
@@ -1484,27 +1421,27 @@ class JSONEvalWasm {
1484
1421
  }
1485
1422
  }
1486
1423
  /**
1487
- * Evaluate dependents in subform when a field changes
1424
+ * Evaluate dependents in subform when fields change
1488
1425
  *
1489
1426
  * @param subformPath - Path to the subform
1490
- * @param changedPath - Path of the field that changed
1427
+ * @param changedPaths - JSON array of paths that changed
1491
1428
  * @param data - Optional updated JSON data string
1492
1429
  * @param context - Optional context data JSON string
1493
1430
  * @returns Array of dependent change objects as JSON string
1494
1431
  * @param {string} subform_path
1495
- * @param {string} changed_path
1432
+ * @param {string} changed_paths_json
1496
1433
  * @param {string | null} [data]
1497
1434
  * @param {string | null} [context]
1498
1435
  * @returns {string}
1499
1436
  */
1500
- evaluateDependentsSubform(subform_path, changed_path, data, context) {
1437
+ evaluateDependentsSubform(subform_path, changed_paths_json, data, context) {
1501
1438
  let deferred6_0;
1502
1439
  let deferred6_1;
1503
1440
  try {
1504
1441
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1505
1442
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1506
1443
  const len0 = WASM_VECTOR_LEN;
1507
- const ptr1 = passStringToWasm0(changed_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1444
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1508
1445
  const len1 = WASM_VECTOR_LEN;
1509
1446
  var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1510
1447
  var len2 = WASM_VECTOR_LEN;
@@ -1526,7 +1463,7 @@ class JSONEvalWasm {
1526
1463
  return getStringFromWasm0(ptr5, len5);
1527
1464
  } finally {
1528
1465
  wasm.__wbindgen_add_to_stack_pointer(16);
1529
- wasm.__wbindgen_export_3(deferred6_0, deferred6_1, 1);
1466
+ wasm.__wbindgen_export_2(deferred6_0, deferred6_1, 1);
1530
1467
  }
1531
1468
  }
1532
1469
  /**
@@ -1565,7 +1502,7 @@ class JSONEvalWasm {
1565
1502
  return getStringFromWasm0(ptr3, len3);
1566
1503
  } finally {
1567
1504
  wasm.__wbindgen_add_to_stack_pointer(16);
1568
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1505
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1569
1506
  }
1570
1507
  }
1571
1508
  /**
@@ -1593,7 +1530,7 @@ class JSONEvalWasm {
1593
1530
  return getStringFromWasm0(r0, r1);
1594
1531
  } finally {
1595
1532
  wasm.__wbindgen_add_to_stack_pointer(16);
1596
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1533
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1597
1534
  }
1598
1535
  }
1599
1536
  /**
@@ -1633,21 +1570,23 @@ class JSONEvalWasm {
1633
1570
  * @param context - Optional context data JSON string
1634
1571
  * @returns Array of dependent change objects as JavaScript object
1635
1572
  * @param {string} subform_path
1636
- * @param {any} changed_paths
1573
+ * @param {string} changed_paths_json
1637
1574
  * @param {string | null} [data]
1638
1575
  * @param {string | null} [context]
1639
1576
  * @returns {any}
1640
1577
  */
1641
- evaluateDependentsSubformJS(subform_path, changed_paths, data, context) {
1578
+ evaluateDependentsSubformJS(subform_path, changed_paths_json, data, context) {
1642
1579
  try {
1643
1580
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1644
1581
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1645
1582
  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);
1583
+ const ptr1 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1584
+ const len1 = WASM_VECTOR_LEN;
1585
+ var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1649
1586
  var len2 = WASM_VECTOR_LEN;
1650
- wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(changed_paths), ptr1, len1, ptr2, len2);
1587
+ var ptr3 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1588
+ var len3 = WASM_VECTOR_LEN;
1589
+ wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1651
1590
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1652
1591
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1653
1592
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1666,16 +1605,18 @@ class JSONEvalWasm {
1666
1605
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1667
1606
  * @returns Data in specified format as JavaScript object
1668
1607
  * @param {string} subform_path
1669
- * @param {any} paths_val
1608
+ * @param {string} paths_json
1670
1609
  * @param {number} format
1671
1610
  * @returns {any}
1672
1611
  */
1673
- getSchemaByPathsSubformJS(subform_path, paths_val, format) {
1612
+ getSchemaByPathsSubformJS(subform_path, paths_json, format) {
1674
1613
  try {
1675
1614
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1676
1615
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1677
1616
  const len0 = WASM_VECTOR_LEN;
1678
- wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), format);
1617
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1618
+ const len1 = WASM_VECTOR_LEN;
1619
+ wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
1679
1620
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1680
1621
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1681
1622
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1739,7 +1680,7 @@ class JSONEvalWasm {
1739
1680
  let v3;
1740
1681
  if (r0 !== 0) {
1741
1682
  v3 = getStringFromWasm0(r0, r1).slice();
1742
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1683
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1743
1684
  }
1744
1685
  return v3;
1745
1686
  } finally {
@@ -1784,7 +1725,7 @@ class JSONEvalWasm {
1784
1725
  return getStringFromWasm0(ptr3, len3);
1785
1726
  } finally {
1786
1727
  wasm.__wbindgen_add_to_stack_pointer(16);
1787
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1728
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1788
1729
  }
1789
1730
  }
1790
1731
  /**
@@ -1826,17 +1767,19 @@ class JSONEvalWasm {
1826
1767
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1827
1768
  * @returns Data in specified format as JavaScript object
1828
1769
  * @param {string} subform_path
1829
- * @param {any} paths_val
1770
+ * @param {string} paths_json
1830
1771
  * @param {boolean} skip_layout
1831
1772
  * @param {number} format
1832
1773
  * @returns {any}
1833
1774
  */
1834
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_val, skip_layout, format) {
1775
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
1835
1776
  try {
1836
1777
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1837
1778
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1838
1779
  const len0 = WASM_VECTOR_LEN;
1839
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), skip_layout, format);
1780
+ const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1781
+ const len1 = WASM_VECTOR_LEN;
1782
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
1840
1783
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1841
1784
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1842
1785
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1873,7 +1816,7 @@ class JSONEvalWasm {
1873
1816
  return getStringFromWasm0(r0, r1);
1874
1817
  } finally {
1875
1818
  wasm.__wbindgen_add_to_stack_pointer(16);
1876
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1819
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1877
1820
  }
1878
1821
  }
1879
1822
  /**
@@ -1947,7 +1890,7 @@ class ValidationError {
1947
1890
  let v1;
1948
1891
  if (r0 !== 0) {
1949
1892
  v1 = getStringFromWasm0(r0, r1).slice();
1950
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1893
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1951
1894
  }
1952
1895
  return v1;
1953
1896
  } finally {
@@ -1966,7 +1909,7 @@ class ValidationError {
1966
1909
  let v1;
1967
1910
  if (r0 !== 0) {
1968
1911
  v1 = getStringFromWasm0(r0, r1).slice();
1969
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1912
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1970
1913
  }
1971
1914
  return v1;
1972
1915
  } finally {
@@ -1996,7 +1939,7 @@ class ValidationError {
1996
1939
  return getStringFromWasm0(r0, r1);
1997
1940
  } finally {
1998
1941
  wasm.__wbindgen_add_to_stack_pointer(16);
1999
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1942
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2000
1943
  }
2001
1944
  }
2002
1945
  /**
@@ -2015,7 +1958,7 @@ class ValidationError {
2015
1958
  return getStringFromWasm0(r0, r1);
2016
1959
  } finally {
2017
1960
  wasm.__wbindgen_add_to_stack_pointer(16);
2018
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1961
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2019
1962
  }
2020
1963
  }
2021
1964
  /**
@@ -2030,7 +1973,7 @@ class ValidationError {
2030
1973
  let v1;
2031
1974
  if (r0 !== 0) {
2032
1975
  v1 = getStringFromWasm0(r0, r1).slice();
2033
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1976
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
2034
1977
  }
2035
1978
  return v1;
2036
1979
  } finally {
@@ -2053,7 +1996,7 @@ class ValidationError {
2053
1996
  return getStringFromWasm0(r0, r1);
2054
1997
  } finally {
2055
1998
  wasm.__wbindgen_add_to_stack_pointer(16);
2056
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1999
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2057
2000
  }
2058
2001
  }
2059
2002
  }
@@ -2098,7 +2041,7 @@ class ValidationResult {
2098
2041
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2099
2042
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2100
2043
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2101
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
2044
+ wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2102
2045
  return v1;
2103
2046
  } finally {
2104
2047
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2147,16 +2090,6 @@ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
2147
2090
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2148
2091
  };
2149
2092
 
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
2093
  exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2161
2094
  let deferred0_0;
2162
2095
  let deferred0_1;
@@ -2165,7 +2098,7 @@ exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2165
2098
  deferred0_1 = arg1;
2166
2099
  console.error(getStringFromWasm0(arg0, arg1));
2167
2100
  } finally {
2168
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
2101
+ wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
2169
2102
  }
2170
2103
  };
2171
2104
 
@@ -2178,59 +2111,7 @@ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
2178
2111
  return ret;
2179
2112
  };
2180
2113
 
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) {
2114
+ exports.__wbg_log_bb412d517df4ef42 = function(arg0, arg1) {
2234
2115
  console.log(getStringFromWasm0(arg0, arg1));
2235
2116
  };
2236
2117
 
@@ -2254,35 +2135,11 @@ exports.__wbg_new_2ff1f68f3676ea53 = function() {
2254
2135
  return addHeapObject(ret);
2255
2136
  };
2256
2137
 
2257
- exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
2258
- const ret = new Uint8Array(getObject(arg0));
2259
- return addHeapObject(ret);
2260
- };
2261
-
2262
2138
  exports.__wbg_new_8a6f238a6ece86ea = function() {
2263
2139
  const ret = new Error();
2264
2140
  return addHeapObject(ret);
2265
2141
  };
2266
2142
 
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
- exports.__wbg_parse_442f5ba02e5eaf8b = function() { return handleError(function (arg0, arg1) {
2278
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2279
- return addHeapObject(ret);
2280
- }, arguments) };
2281
-
2282
- exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
2283
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2284
- };
2285
-
2286
2143
  exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
2287
2144
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2288
2145
  };
@@ -2309,53 +2166,11 @@ exports.__wbg_validationerror_new = function(arg0) {
2309
2166
  return addHeapObject(ret);
2310
2167
  };
2311
2168
 
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
- exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
2324
- const ret = debugString(getObject(arg1));
2325
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
2326
- const len1 = WASM_VECTOR_LEN;
2327
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2328
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2329
- };
2330
-
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
2169
  exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2343
2170
  const ret = typeof(getObject(arg0)) === 'string';
2344
2171
  return ret;
2345
2172
  };
2346
2173
 
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
2174
  exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
2360
2175
  const obj = getObject(arg1);
2361
2176
  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;