@json-eval-rs/vanilla 0.0.46 → 0.0.47

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/vanilla",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "JSON Eval RS for direct browser usage (vanilla JS) or manual WASM loading (Next.js Turbopack compat)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Get the library version
5
- */
6
- export function getVersion(): string;
7
3
  /**
8
4
  * Initialize the library (sets up panic hook)
9
5
  */
@@ -12,6 +8,10 @@ export function init(): void;
12
8
  * Get library version (alias)
13
9
  */
14
10
  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
  */
@@ -20,7 +20,7 @@ export class JSONEvalWasm {
20
20
  [Symbol.dispose](): void;
21
21
  /**
22
22
  * Evaluate and return as JsValue for direct JavaScript object access
23
- *
23
+ *
24
24
  * @param data - JSON data string
25
25
  * @param context - Optional context data JSON string
26
26
  * @returns Evaluated schema as JavaScript object
@@ -34,7 +34,7 @@ export class JSONEvalWasm {
34
34
  compileLogic(logic_str: string): number;
35
35
  /**
36
36
  * Evaluate dependents when a field changes (returns array of changes as JSON string)
37
- *
37
+ *
38
38
  * @param changedPath - Path of the field that changed
39
39
  * @param data - Optional updated JSON data string
40
40
  * @param context - Optional context data JSON string
@@ -51,17 +51,17 @@ export class JSONEvalWasm {
51
51
  compileAndRunLogic(logic_str: string, data?: string | null, context?: string | null): any;
52
52
  /**
53
53
  * Evaluate dependents and return as JavaScript object
54
- *
54
+ *
55
55
  * @param changedPathsJson - JSON array of field paths that changed
56
56
  * @param data - Optional updated JSON data string
57
57
  * @param context - Optional context data JSON string
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_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
61
+ evaluateDependentsJS(changed_paths: any, 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
+ *
65
65
  * @param data - JSON data string
66
66
  * @param context - Optional context data JSON string
67
67
  * @throws Error if evaluation fails
@@ -77,7 +77,7 @@ export class JSONEvalWasm {
77
77
  runLogic(logic_id: number, data?: string | null, context?: string | null): any;
78
78
  /**
79
79
  * Validate data and return as plain JavaScript object (Worker-safe)
80
- *
80
+ *
81
81
  * @param data - JSON data string
82
82
  * @param context - Optional context data JSON string
83
83
  * @returns Plain JavaScript object with validation result
@@ -85,7 +85,7 @@ export class JSONEvalWasm {
85
85
  validateJS(data: string, context?: string | null): any;
86
86
  /**
87
87
  * Validate data against schema rules with optional path filtering
88
- *
88
+ *
89
89
  * @param data - JSON data string
90
90
  * @param context - Optional context data JSON string
91
91
  * @param paths - Optional array of paths to validate (null for all)
@@ -94,7 +94,7 @@ export class JSONEvalWasm {
94
94
  validatePaths(data: string, context?: string | null, paths?: string[] | null): ValidationResult;
95
95
  /**
96
96
  * Validate with path filtering and return as plain JavaScript object (Worker-safe)
97
- *
97
+ *
98
98
  * @param data - JSON data string
99
99
  * @param context - Optional context data JSON string
100
100
  * @param paths - Optional array of paths to validate (null for all)
@@ -103,7 +103,7 @@ export class JSONEvalWasm {
103
103
  validatePathsJS(data: string, context?: string | null, paths?: string[] | null): any;
104
104
  /**
105
105
  * Validate data against schema rules
106
- *
106
+ *
107
107
  * @param data - JSON data string
108
108
  * @param context - Optional context data JSON string
109
109
  * @returns ValidationResult
@@ -111,7 +111,7 @@ export class JSONEvalWasm {
111
111
  validate(data: string, context?: string | null): ValidationResult;
112
112
  /**
113
113
  * Create a new JSONEval instance from a cached ParsedSchema
114
- *
114
+ *
115
115
  * @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
116
116
  * @param context - Optional context data JSON string
117
117
  * @param data - Optional initial data JSON string
@@ -119,7 +119,7 @@ export class JSONEvalWasm {
119
119
  static newFromCache(cache_key: string, context?: string | null, data?: string | null): JSONEvalWasm;
120
120
  /**
121
121
  * Create a new JSONEval instance from MessagePack-encoded schema
122
- *
122
+ *
123
123
  * @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
124
124
  * @param context - Optional context data JSON string
125
125
  * @param data - Optional initial data JSON string
@@ -127,14 +127,14 @@ export class JSONEvalWasm {
127
127
  static newFromMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): JSONEvalWasm;
128
128
  /**
129
129
  * Set timezone offset for datetime operations (TODAY, NOW)
130
- *
130
+ *
131
131
  * @param offsetMinutes - Timezone offset in minutes from UTC (e.g., 420 for UTC+7, -300 for UTC-5)
132
132
  * Pass null or undefined to reset to UTC
133
133
  */
134
134
  setTimezoneOffset(offset_minutes?: number | null): void;
135
135
  /**
136
136
  * Create a new JSONEval instance
137
- *
137
+ *
138
138
  * @param schema - JSON schema string
139
139
  * @param context - Optional context data JSON string
140
140
  * @param data - Optional initial data JSON string
@@ -142,7 +142,7 @@ export class JSONEvalWasm {
142
142
  constructor(schema: string, context?: string | null, data?: string | null);
143
143
  /**
144
144
  * Get cache statistics
145
- *
145
+ *
146
146
  * @returns Cache statistics as JavaScript object with hits, misses, and entries
147
147
  */
148
148
  cacheStats(): any;
@@ -163,26 +163,26 @@ export class JSONEvalWasm {
163
163
  disableCache(): void;
164
164
  /**
165
165
  * Check if evaluation caching is enabled
166
- *
166
+ *
167
167
  * @returns true if caching is enabled, false otherwise
168
168
  */
169
169
  isCacheEnabled(): boolean;
170
170
  /**
171
171
  * Get the number of cached entries
172
- *
172
+ *
173
173
  * @returns Number of cached entries
174
174
  */
175
175
  cacheLen(): number;
176
176
  /**
177
177
  * Resolve layout with optional evaluation
178
- *
178
+ *
179
179
  * @param evaluate - If true, runs evaluation before resolving layout
180
180
  * @throws Error if resolve fails
181
181
  */
182
182
  resolveLayout(evaluate: boolean): void;
183
183
  /**
184
184
  * Reload schema with new data
185
- *
185
+ *
186
186
  * @param schema - New JSON schema string
187
187
  * @param context - Optional context data JSON string
188
188
  * @param data - Optional initial data JSON string
@@ -191,13 +191,13 @@ export class JSONEvalWasm {
191
191
  /**
192
192
  * Get all schema values (evaluations ending with .value)
193
193
  * Mutates internal data by overriding with values from value evaluations
194
- *
194
+ *
195
195
  * @returns Modified data as JavaScript object
196
196
  */
197
197
  getSchemaValue(): any;
198
198
  /**
199
199
  * Get a value from the schema using dotted path notation
200
- *
200
+ *
201
201
  * @param path - Dotted path to the value (e.g., "properties.field.value")
202
202
  * @returns Value as JSON string or null if not found
203
203
  */
@@ -211,21 +211,21 @@ export class JSONEvalWasm {
211
211
  getSchemaByPaths(paths_json: string, format: number): string;
212
212
  /**
213
213
  * Get the evaluated schema with optional layout resolution
214
- *
214
+ *
215
215
  * @param skipLayout - Whether to skip layout resolution
216
216
  * @returns Evaluated schema as JSON string
217
217
  */
218
218
  getEvaluatedSchema(skip_layout: boolean): string;
219
219
  /**
220
220
  * Get a value from the schema using dotted path notation as JavaScript object
221
- *
221
+ *
222
222
  * @param path - Dotted path to the value (e.g., "properties.field.value")
223
223
  * @returns Value as JavaScript object or null if not found
224
224
  */
225
225
  getSchemaByPathJS(path: string): any;
226
226
  /**
227
227
  * Reload schema from MessagePack-encoded bytes
228
- *
228
+ *
229
229
  * @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
230
230
  * @param context - Optional context data JSON string
231
231
  * @param data - Optional initial data JSON string
@@ -240,14 +240,14 @@ export class JSONEvalWasm {
240
240
  getSchemaByPathsJS(paths_json: string, format: number): any;
241
241
  /**
242
242
  * Get the evaluated schema as JavaScript object
243
- *
243
+ *
244
244
  * @param skipLayout - Whether to skip layout resolution
245
245
  * @returns Evaluated schema as JavaScript object
246
246
  */
247
247
  getEvaluatedSchemaJS(skip_layout: boolean): any;
248
248
  /**
249
249
  * Reload schema from ParsedSchemaCache using a cache key
250
- *
250
+ *
251
251
  * @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
252
252
  * @param context - Optional context data JSON string
253
253
  * @param data - Optional initial data JSON string
@@ -255,7 +255,7 @@ export class JSONEvalWasm {
255
255
  reloadSchemaFromCache(cache_key: string, context?: string | null, data?: string | null): void;
256
256
  /**
257
257
  * Get a value from the evaluated schema using dotted path notation
258
- *
258
+ *
259
259
  * @param path - Dotted path to the value (e.g., "properties.field.value")
260
260
  * @param skipLayout - Whether to skip layout resolution
261
261
  * @returns Value as JSON string or null if not found
@@ -263,17 +263,17 @@ export class JSONEvalWasm {
263
263
  getEvaluatedSchemaByPath(path: string, skip_layout: boolean): string | undefined;
264
264
  /**
265
265
  * Get the evaluated schema in MessagePack format
266
- *
266
+ *
267
267
  * @param skipLayout - Whether to skip layout resolution
268
268
  * @returns Evaluated schema as MessagePack bytes (Uint8Array)
269
- *
269
+ *
270
270
  * # Zero-Copy Optimization
271
- *
271
+ *
272
272
  * This method returns MessagePack binary data with minimal copying:
273
273
  * 1. Serializes schema to Vec<u8> in Rust (unavoidable)
274
274
  * 2. wasm-bindgen transfers Vec<u8> to JS as Uint8Array (optimized)
275
275
  * 3. Result is a Uint8Array view (minimal overhead)
276
- *
276
+ *
277
277
  * MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
278
278
  */
279
279
  getEvaluatedSchemaMsgpack(skip_layout: boolean): Uint8Array;
@@ -287,7 +287,7 @@ export class JSONEvalWasm {
287
287
  getEvaluatedSchemaByPaths(paths_json: string, skip_layout: boolean, format: number): string;
288
288
  /**
289
289
  * Get a value from the evaluated schema using dotted path notation as JavaScript object
290
- *
290
+ *
291
291
  * @param path - Dotted path to the value (e.g., "properties.field.value")
292
292
  * @param skipLayout - Whether to skip layout resolution
293
293
  * @returns Value as JavaScript object or null if not found
@@ -303,28 +303,28 @@ export class JSONEvalWasm {
303
303
  getEvaluatedSchemaByPathsJS(paths_json: string, skip_layout: boolean, format: number): any;
304
304
  /**
305
305
  * Get the evaluated schema without $params field
306
- *
306
+ *
307
307
  * @param skipLayout - Whether to skip layout resolution
308
308
  * @returns Evaluated schema as JSON string
309
309
  */
310
310
  getEvaluatedSchemaWithoutParams(skip_layout: boolean): string;
311
311
  /**
312
312
  * Get the evaluated schema without $params as JavaScript object
313
- *
313
+ *
314
314
  * @param skipLayout - Whether to skip layout resolution
315
315
  * @returns Evaluated schema as JavaScript object
316
316
  */
317
317
  getEvaluatedSchemaWithoutParamsJS(skip_layout: boolean): any;
318
318
  /**
319
319
  * Check if a subform exists at the given path
320
- *
320
+ *
321
321
  * @param subformPath - Path to check
322
322
  * @returns True if subform exists, false otherwise
323
323
  */
324
324
  hasSubform(subform_path: string): boolean;
325
325
  /**
326
326
  * Evaluate a subform with data
327
- *
327
+ *
328
328
  * @param subformPath - Path to the subform (e.g., "#/riders")
329
329
  * @param data - JSON data string for the subform
330
330
  * @param context - Optional context data JSON string
@@ -334,7 +334,7 @@ export class JSONEvalWasm {
334
334
  evaluateSubform(subform_path: string, data: string, context?: string | null, paths?: string[] | null): void;
335
335
  /**
336
336
  * Validate subform data against its schema rules
337
- *
337
+ *
338
338
  * @param subformPath - Path to the subform
339
339
  * @param data - JSON data string for the subform
340
340
  * @param context - Optional context data JSON string
@@ -343,13 +343,13 @@ export class JSONEvalWasm {
343
343
  validateSubform(subform_path: string, data: string, context?: string | null): ValidationResult;
344
344
  /**
345
345
  * Get list of available subform paths
346
- *
346
+ *
347
347
  * @returns Array of subform paths
348
348
  */
349
349
  getSubformPaths(): string[];
350
350
  /**
351
351
  * Resolve layout for subform
352
- *
352
+ *
353
353
  * @param subformPath - Path to the subform
354
354
  * @param evaluate - If true, runs evaluation before resolving layout
355
355
  * @throws Error if resolve fails
@@ -357,7 +357,7 @@ export class JSONEvalWasm {
357
357
  resolveLayoutSubform(subform_path: string, evaluate: boolean): void;
358
358
  /**
359
359
  * Get schema value from subform (all .value fields)
360
- *
360
+ *
361
361
  * @param subformPath - Path to the subform
362
362
  * @returns Modified data as JavaScript object
363
363
  */
@@ -371,7 +371,7 @@ export class JSONEvalWasm {
371
371
  getSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
372
372
  /**
373
373
  * Evaluate dependents in subform when a field changes
374
- *
374
+ *
375
375
  * @param subformPath - Path to the subform
376
376
  * @param changedPath - Path of the field that changed
377
377
  * @param data - Optional updated JSON data string
@@ -389,7 +389,7 @@ export class JSONEvalWasm {
389
389
  getSchemaByPathsSubform(subform_path: string, paths_json: string, format: number): string;
390
390
  /**
391
391
  * Get evaluated schema from subform
392
- *
392
+ *
393
393
  * @param subformPath - Path to the subform
394
394
  * @param resolveLayout - Whether to resolve layout
395
395
  * @returns Evaluated schema as JSON string
@@ -404,25 +404,25 @@ export class JSONEvalWasm {
404
404
  getSchemaByPathSubformJS(subform_path: string, schema_path: string): any;
405
405
  /**
406
406
  * Evaluate dependents in subform and return as JavaScript object
407
- *
407
+ *
408
408
  * @param subformPath - Path to the subform
409
409
  * @param changedPath - Path of the field that changed
410
410
  * @param data - Optional updated JSON data string
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_path: string, data?: string | null, context?: string | null): any;
414
+ evaluateDependentsSubformJS(subform_path: string, changed_paths: any, 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
418
- * @param pathsJson - JSON array of dotted paths
418
+ * @param paths - Array of dotted paths
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_json: string, format: number): any;
422
+ getSchemaByPathsSubformJS(subform_path: string, paths_val: any, format: number): any;
423
423
  /**
424
424
  * Get evaluated schema from subform as JavaScript object
425
- *
425
+ *
426
426
  * @param subformPath - Path to the subform
427
427
  * @param resolveLayout - Whether to resolve layout
428
428
  * @returns Evaluated schema as JavaScript object
@@ -430,7 +430,7 @@ export class JSONEvalWasm {
430
430
  getEvaluatedSchemaSubformJS(subform_path: string, resolve_layout: boolean): any;
431
431
  /**
432
432
  * Get evaluated schema by specific path from subform
433
- *
433
+ *
434
434
  * @param subformPath - Path to the subform
435
435
  * @param schemaPath - Dotted path to the value within the subform
436
436
  * @param skipLayout - Whether to skip layout resolution
@@ -448,7 +448,7 @@ export class JSONEvalWasm {
448
448
  getEvaluatedSchemaByPathsSubform(subform_path: string, paths_json: string, skip_layout: boolean, format: number): string;
449
449
  /**
450
450
  * Get evaluated schema by specific path from subform as JavaScript object
451
- *
451
+ *
452
452
  * @param subformPath - Path to the subform
453
453
  * @param schemaPath - Dotted path to the value within the subform
454
454
  * @param skipLayout - Whether to skip layout resolution
@@ -458,15 +458,15 @@ export class JSONEvalWasm {
458
458
  /**
459
459
  * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
460
460
  * @param subformPath - Path to the subform
461
- * @param pathsJson - JSON array of dotted paths
461
+ * @param paths - Array of dotted paths
462
462
  * @param skipLayout - Whether to skip layout resolution
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_json: string, skip_layout: boolean, format: number): any;
466
+ getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_val: any, skip_layout: boolean, format: number): any;
467
467
  /**
468
468
  * Get evaluated schema without $params from subform
469
- *
469
+ *
470
470
  * @param subformPath - Path to the subform
471
471
  * @param resolveLayout - Whether to resolve layout
472
472
  * @returns Evaluated schema as JSON string
@@ -474,7 +474,7 @@ export class JSONEvalWasm {
474
474
  getEvaluatedSchemaWithoutParamsSubform(subform_path: string, resolve_layout: boolean): string;
475
475
  /**
476
476
  * Get evaluated schema without $params from subform as JavaScript object
477
- *
477
+ *
478
478
  * @param subformPath - Path to the subform
479
479
  * @param resolveLayout - Whether to resolve layout
480
480
  * @returns Evaluated schema as JavaScript object
@@ -525,9 +525,9 @@ export interface InitOutput {
525
525
  readonly jsonevalwasm_enableCache: (a: number) => void;
526
526
  readonly jsonevalwasm_evaluate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
527
527
  readonly jsonevalwasm_evaluateDependents: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
528
- readonly jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
528
+ readonly jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
529
529
  readonly jsonevalwasm_evaluateDependentsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
530
- readonly jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
530
+ readonly jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
531
531
  readonly jsonevalwasm_evaluateJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
532
532
  readonly jsonevalwasm_evaluateSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
533
533
  readonly jsonevalwasm_getEvaluatedSchema: (a: number, b: number, c: number) => void;
@@ -538,7 +538,7 @@ export interface InitOutput {
538
538
  readonly jsonevalwasm_getEvaluatedSchemaByPaths: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
539
539
  readonly jsonevalwasm_getEvaluatedSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
540
540
  readonly jsonevalwasm_getEvaluatedSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
541
- readonly jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
541
+ readonly jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
542
542
  readonly jsonevalwasm_getEvaluatedSchemaJS: (a: number, b: number, c: number) => void;
543
543
  readonly jsonevalwasm_getEvaluatedSchemaMsgpack: (a: number, b: number, c: number) => void;
544
544
  readonly jsonevalwasm_getEvaluatedSchemaSubform: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -554,7 +554,7 @@ export interface InitOutput {
554
554
  readonly jsonevalwasm_getSchemaByPaths: (a: number, b: number, c: number, d: number, e: number) => void;
555
555
  readonly jsonevalwasm_getSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number) => void;
556
556
  readonly jsonevalwasm_getSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
557
- readonly jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
557
+ readonly jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
558
558
  readonly jsonevalwasm_getSchemaValue: (a: number, b: number) => void;
559
559
  readonly jsonevalwasm_getSchemaValueSubform: (a: number, b: number, c: number, d: number) => void;
560
560
  readonly jsonevalwasm_getSubformPaths: (a: number, b: number) => void;
@@ -589,8 +589,8 @@ export interface InitOutput {
589
589
  readonly version: (a: number) => void;
590
590
  readonly __wbindgen_export_0: (a: number, b: number) => number;
591
591
  readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
592
- readonly __wbindgen_export_2: (a: number, b: number, c: number) => void;
593
- readonly __wbindgen_export_3: (a: number) => void;
592
+ readonly __wbindgen_export_2: (a: number) => void;
593
+ readonly __wbindgen_export_3: (a: number, b: number, c: number) => void;
594
594
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
595
595
  readonly __wbindgen_start: () => void;
596
596
  }
@@ -110,19 +110,19 @@ function getDataViewMemory0() {
110
110
  return cachedDataViewMemory0;
111
111
  }
112
112
 
113
- function getArrayU8FromWasm0(ptr, len) {
114
- ptr = ptr >>> 0;
115
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
116
- }
117
-
118
113
  function handleError(f, args) {
119
114
  try {
120
115
  return f.apply(this, args);
121
116
  } catch (e) {
122
- wasm.__wbindgen_export_3(addHeapObject(e));
117
+ wasm.__wbindgen_export_2(addHeapObject(e));
123
118
  }
124
119
  }
125
120
 
121
+ function getArrayU8FromWasm0(ptr, len) {
122
+ ptr = ptr >>> 0;
123
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
124
+ }
125
+
126
126
  function dropObject(idx) {
127
127
  if (idx < 132) return;
128
128
  heap[idx] = heap_next;
@@ -135,6 +135,10 @@ function takeObject(idx) {
135
135
  return ret;
136
136
  }
137
137
 
138
+ function isLikeNone(x) {
139
+ return x === undefined || x === null;
140
+ }
141
+
138
142
  function debugString(val) {
139
143
  // primitive types
140
144
  const type = typeof val;
@@ -200,10 +204,6 @@ function debugString(val) {
200
204
  return className;
201
205
  }
202
206
 
203
- function isLikeNone(x) {
204
- return x === undefined || x === null;
205
- }
206
-
207
207
  function passArrayJsValueToWasm0(array, malloc) {
208
208
  const ptr = malloc(array.length * 4, 4) >>> 0;
209
209
  const mem = getDataViewMemory0();
@@ -214,10 +214,17 @@ function passArrayJsValueToWasm0(array, malloc) {
214
214
  return ptr;
215
215
  }
216
216
  /**
217
- * Get the library version
217
+ * Initialize the library (sets up panic hook)
218
+ */
219
+ export function init() {
220
+ wasm.init();
221
+ }
222
+
223
+ /**
224
+ * Get library version (alias)
218
225
  * @returns {string}
219
226
  */
220
- export function getVersion() {
227
+ export function version() {
221
228
  let deferred1_0;
222
229
  let deferred1_1;
223
230
  try {
@@ -230,22 +237,15 @@ export function getVersion() {
230
237
  return getStringFromWasm0(r0, r1);
231
238
  } finally {
232
239
  wasm.__wbindgen_add_to_stack_pointer(16);
233
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
240
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
234
241
  }
235
242
  }
236
243
 
237
244
  /**
238
- * Initialize the library (sets up panic hook)
239
- */
240
- export function init() {
241
- wasm.init();
242
- }
243
-
244
- /**
245
- * Get library version (alias)
245
+ * Get the library version
246
246
  * @returns {string}
247
247
  */
248
- export function version() {
248
+ export function getVersion() {
249
249
  let deferred1_0;
250
250
  let deferred1_1;
251
251
  try {
@@ -258,7 +258,7 @@ export function version() {
258
258
  return getStringFromWasm0(r0, r1);
259
259
  } finally {
260
260
  wasm.__wbindgen_add_to_stack_pointer(16);
261
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
261
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
262
262
  }
263
263
  }
264
264
 
@@ -401,7 +401,7 @@ export class JSONEvalWasm {
401
401
  return getStringFromWasm0(ptr4, len4);
402
402
  } finally {
403
403
  wasm.__wbindgen_add_to_stack_pointer(16);
404
- wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
404
+ wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
405
405
  }
406
406
  }
407
407
  /**
@@ -444,22 +444,20 @@ export class JSONEvalWasm {
444
444
  * @param context - Optional context data JSON string
445
445
  * @param reEvaluate - If true, performs full evaluation after processing dependents
446
446
  * @returns Array of dependent change objects as JavaScript object
447
- * @param {string} changed_paths_json
447
+ * @param {any} changed_paths
448
448
  * @param {string | null | undefined} data
449
449
  * @param {string | null | undefined} context
450
450
  * @param {boolean} re_evaluate
451
451
  * @returns {any}
452
452
  */
453
- evaluateDependentsJS(changed_paths_json, data, context, re_evaluate) {
453
+ evaluateDependentsJS(changed_paths, data, context, re_evaluate) {
454
454
  try {
455
455
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
- const ptr0 = passStringToWasm0(changed_paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
457
- const len0 = WASM_VECTOR_LEN;
458
- var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
456
+ var ptr0 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
457
+ var len0 = WASM_VECTOR_LEN;
458
+ var ptr1 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
459
459
  var len1 = WASM_VECTOR_LEN;
460
- var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
461
- var len2 = WASM_VECTOR_LEN;
462
- wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, re_evaluate);
460
+ wasm.jsonevalwasm_evaluateDependentsJS(retptr, this.__wbg_ptr, addHeapObject(changed_paths), ptr0, len0, ptr1, len1, re_evaluate);
463
461
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
464
462
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
465
463
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -913,7 +911,7 @@ export class JSONEvalWasm {
913
911
  let v2;
914
912
  if (r0 !== 0) {
915
913
  v2 = getStringFromWasm0(r0, r1).slice();
916
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
914
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
917
915
  }
918
916
  return v2;
919
917
  } finally {
@@ -952,7 +950,7 @@ export class JSONEvalWasm {
952
950
  return getStringFromWasm0(ptr2, len2);
953
951
  } finally {
954
952
  wasm.__wbindgen_add_to_stack_pointer(16);
955
- wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
953
+ wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
956
954
  }
957
955
  }
958
956
  /**
@@ -976,7 +974,7 @@ export class JSONEvalWasm {
976
974
  return getStringFromWasm0(r0, r1);
977
975
  } finally {
978
976
  wasm.__wbindgen_add_to_stack_pointer(16);
979
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
977
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
980
978
  }
981
979
  }
982
980
  /**
@@ -1132,7 +1130,7 @@ export class JSONEvalWasm {
1132
1130
  let v2;
1133
1131
  if (r0 !== 0) {
1134
1132
  v2 = getStringFromWasm0(r0, r1).slice();
1135
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1133
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1136
1134
  }
1137
1135
  return v2;
1138
1136
  } finally {
@@ -1168,7 +1166,7 @@ export class JSONEvalWasm {
1168
1166
  throw takeObject(r2);
1169
1167
  }
1170
1168
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1171
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1169
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1172
1170
  return v1;
1173
1171
  } finally {
1174
1172
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1208,7 +1206,7 @@ export class JSONEvalWasm {
1208
1206
  return getStringFromWasm0(ptr2, len2);
1209
1207
  } finally {
1210
1208
  wasm.__wbindgen_add_to_stack_pointer(16);
1211
- wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
1209
+ wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
1212
1210
  }
1213
1211
  }
1214
1212
  /**
@@ -1287,7 +1285,7 @@ export class JSONEvalWasm {
1287
1285
  return getStringFromWasm0(r0, r1);
1288
1286
  } finally {
1289
1287
  wasm.__wbindgen_add_to_stack_pointer(16);
1290
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
1288
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1291
1289
  }
1292
1290
  }
1293
1291
  /**
@@ -1407,7 +1405,7 @@ export class JSONEvalWasm {
1407
1405
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1408
1406
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1409
1407
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1410
- wasm.__wbindgen_export_2(r0, r1 * 4, 4);
1408
+ wasm.__wbindgen_export_3(r0, r1 * 4, 4);
1411
1409
  return v1;
1412
1410
  } finally {
1413
1411
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1484,7 +1482,7 @@ export class JSONEvalWasm {
1484
1482
  let v3;
1485
1483
  if (r0 !== 0) {
1486
1484
  v3 = getStringFromWasm0(r0, r1).slice();
1487
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1485
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1488
1486
  }
1489
1487
  return v3;
1490
1488
  } finally {
@@ -1534,7 +1532,7 @@ export class JSONEvalWasm {
1534
1532
  return getStringFromWasm0(ptr5, len5);
1535
1533
  } finally {
1536
1534
  wasm.__wbindgen_add_to_stack_pointer(16);
1537
- wasm.__wbindgen_export_2(deferred6_0, deferred6_1, 1);
1535
+ wasm.__wbindgen_export_3(deferred6_0, deferred6_1, 1);
1538
1536
  }
1539
1537
  }
1540
1538
  /**
@@ -1573,7 +1571,7 @@ export class JSONEvalWasm {
1573
1571
  return getStringFromWasm0(ptr3, len3);
1574
1572
  } finally {
1575
1573
  wasm.__wbindgen_add_to_stack_pointer(16);
1576
- wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1574
+ wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1577
1575
  }
1578
1576
  }
1579
1577
  /**
@@ -1601,7 +1599,7 @@ export class JSONEvalWasm {
1601
1599
  return getStringFromWasm0(r0, r1);
1602
1600
  } finally {
1603
1601
  wasm.__wbindgen_add_to_stack_pointer(16);
1604
- wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1602
+ wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1605
1603
  }
1606
1604
  }
1607
1605
  /**
@@ -1641,23 +1639,21 @@ export class JSONEvalWasm {
1641
1639
  * @param context - Optional context data JSON string
1642
1640
  * @returns Array of dependent change objects as JavaScript object
1643
1641
  * @param {string} subform_path
1644
- * @param {string} changed_path
1642
+ * @param {any} changed_paths
1645
1643
  * @param {string | null} [data]
1646
1644
  * @param {string | null} [context]
1647
1645
  * @returns {any}
1648
1646
  */
1649
- evaluateDependentsSubformJS(subform_path, changed_path, data, context) {
1647
+ evaluateDependentsSubformJS(subform_path, changed_paths, data, context) {
1650
1648
  try {
1651
1649
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1652
1650
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1653
1651
  const len0 = WASM_VECTOR_LEN;
1654
- const ptr1 = passStringToWasm0(changed_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1655
- const len1 = WASM_VECTOR_LEN;
1656
- var ptr2 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1652
+ var ptr1 = isLikeNone(data) ? 0 : passStringToWasm0(data, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1653
+ var len1 = WASM_VECTOR_LEN;
1654
+ var ptr2 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1657
1655
  var len2 = WASM_VECTOR_LEN;
1658
- var ptr3 = isLikeNone(context) ? 0 : passStringToWasm0(context, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1659
- var len3 = WASM_VECTOR_LEN;
1660
- wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1656
+ wasm.jsonevalwasm_evaluateDependentsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(changed_paths), ptr1, len1, ptr2, len2);
1661
1657
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1662
1658
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1663
1659
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1672,22 +1668,20 @@ export class JSONEvalWasm {
1672
1668
  /**
1673
1669
  * Get schema by multiple paths from subform (JS object)
1674
1670
  * @param subformPath - Path to the subform
1675
- * @param pathsJson - JSON array of dotted paths
1671
+ * @param paths - Array of dotted paths
1676
1672
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1677
1673
  * @returns Data in specified format as JavaScript object
1678
1674
  * @param {string} subform_path
1679
- * @param {string} paths_json
1675
+ * @param {any} paths_val
1680
1676
  * @param {number} format
1681
1677
  * @returns {any}
1682
1678
  */
1683
- getSchemaByPathsSubformJS(subform_path, paths_json, format) {
1679
+ getSchemaByPathsSubformJS(subform_path, paths_val, format) {
1684
1680
  try {
1685
1681
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1686
1682
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1687
1683
  const len0 = WASM_VECTOR_LEN;
1688
- const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1689
- const len1 = WASM_VECTOR_LEN;
1690
- wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
1684
+ wasm.jsonevalwasm_getSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), format);
1691
1685
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1692
1686
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1693
1687
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1751,7 +1745,7 @@ export class JSONEvalWasm {
1751
1745
  let v3;
1752
1746
  if (r0 !== 0) {
1753
1747
  v3 = getStringFromWasm0(r0, r1).slice();
1754
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1748
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1755
1749
  }
1756
1750
  return v3;
1757
1751
  } finally {
@@ -1796,7 +1790,7 @@ export class JSONEvalWasm {
1796
1790
  return getStringFromWasm0(ptr3, len3);
1797
1791
  } finally {
1798
1792
  wasm.__wbindgen_add_to_stack_pointer(16);
1799
- wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
1793
+ wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
1800
1794
  }
1801
1795
  }
1802
1796
  /**
@@ -1833,24 +1827,22 @@ export class JSONEvalWasm {
1833
1827
  /**
1834
1828
  * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
1835
1829
  * @param subformPath - Path to the subform
1836
- * @param pathsJson - JSON array of dotted paths
1830
+ * @param paths - Array of dotted paths
1837
1831
  * @param skipLayout - Whether to skip layout resolution
1838
1832
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
1839
1833
  * @returns Data in specified format as JavaScript object
1840
1834
  * @param {string} subform_path
1841
- * @param {string} paths_json
1835
+ * @param {any} paths_val
1842
1836
  * @param {boolean} skip_layout
1843
1837
  * @param {number} format
1844
1838
  * @returns {any}
1845
1839
  */
1846
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
1840
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_val, skip_layout, format) {
1847
1841
  try {
1848
1842
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1849
1843
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1850
1844
  const len0 = WASM_VECTOR_LEN;
1851
- const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1852
- const len1 = WASM_VECTOR_LEN;
1853
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
1845
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(paths_val), skip_layout, format);
1854
1846
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1855
1847
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1856
1848
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1887,7 +1879,7 @@ export class JSONEvalWasm {
1887
1879
  return getStringFromWasm0(r0, r1);
1888
1880
  } finally {
1889
1881
  wasm.__wbindgen_add_to_stack_pointer(16);
1890
- wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
1882
+ wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1891
1883
  }
1892
1884
  }
1893
1885
  /**
@@ -1959,7 +1951,7 @@ export class ValidationError {
1959
1951
  let v1;
1960
1952
  if (r0 !== 0) {
1961
1953
  v1 = getStringFromWasm0(r0, r1).slice();
1962
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1954
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1963
1955
  }
1964
1956
  return v1;
1965
1957
  } finally {
@@ -1978,7 +1970,7 @@ export class ValidationError {
1978
1970
  let v1;
1979
1971
  if (r0 !== 0) {
1980
1972
  v1 = getStringFromWasm0(r0, r1).slice();
1981
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
1973
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1982
1974
  }
1983
1975
  return v1;
1984
1976
  } finally {
@@ -2008,7 +2000,7 @@ export class ValidationError {
2008
2000
  return getStringFromWasm0(r0, r1);
2009
2001
  } finally {
2010
2002
  wasm.__wbindgen_add_to_stack_pointer(16);
2011
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2003
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2012
2004
  }
2013
2005
  }
2014
2006
  /**
@@ -2027,7 +2019,7 @@ export class ValidationError {
2027
2019
  return getStringFromWasm0(r0, r1);
2028
2020
  } finally {
2029
2021
  wasm.__wbindgen_add_to_stack_pointer(16);
2030
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2022
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2031
2023
  }
2032
2024
  }
2033
2025
  /**
@@ -2042,7 +2034,7 @@ export class ValidationError {
2042
2034
  let v1;
2043
2035
  if (r0 !== 0) {
2044
2036
  v1 = getStringFromWasm0(r0, r1).slice();
2045
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
2037
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
2046
2038
  }
2047
2039
  return v1;
2048
2040
  } finally {
@@ -2065,7 +2057,7 @@ export class ValidationError {
2065
2057
  return getStringFromWasm0(r0, r1);
2066
2058
  } finally {
2067
2059
  wasm.__wbindgen_add_to_stack_pointer(16);
2068
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
2060
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2069
2061
  }
2070
2062
  }
2071
2063
  }
@@ -2108,7 +2100,7 @@ export class ValidationResult {
2108
2100
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2109
2101
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2110
2102
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2111
- wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2103
+ wasm.__wbindgen_export_3(r0, r1 * 4, 4);
2112
2104
  return v1;
2113
2105
  } finally {
2114
2106
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2191,6 +2183,14 @@ function __wbg_get_imports() {
2191
2183
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2192
2184
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2193
2185
  };
2186
+ imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
2187
+ const ret = getObject(arg0).call(getObject(arg1));
2188
+ return addHeapObject(ret);
2189
+ }, arguments) };
2190
+ imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
2191
+ const ret = getObject(arg0).done;
2192
+ return ret;
2193
+ };
2194
2194
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2195
2195
  let deferred0_0;
2196
2196
  let deferred0_1;
@@ -2199,7 +2199,7 @@ function __wbg_get_imports() {
2199
2199
  deferred0_1 = arg1;
2200
2200
  console.error(getStringFromWasm0(arg0, arg1));
2201
2201
  } finally {
2202
- wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
2202
+ wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
2203
2203
  }
2204
2204
  };
2205
2205
  imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
@@ -2209,7 +2209,51 @@ function __wbg_get_imports() {
2209
2209
  const ret = getObject(arg0).getTime();
2210
2210
  return ret;
2211
2211
  };
2212
- imports.wbg.__wbg_log_416dbeafc33eeb04 = function(arg0, arg1) {
2212
+ imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
2213
+ const ret = getObject(arg0)[arg1 >>> 0];
2214
+ return addHeapObject(ret);
2215
+ };
2216
+ imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
2217
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
2218
+ return addHeapObject(ret);
2219
+ }, arguments) };
2220
+ imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
2221
+ let result;
2222
+ try {
2223
+ result = getObject(arg0) instanceof ArrayBuffer;
2224
+ } catch (_) {
2225
+ result = false;
2226
+ }
2227
+ const ret = result;
2228
+ return ret;
2229
+ };
2230
+ imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
2231
+ let result;
2232
+ try {
2233
+ result = getObject(arg0) instanceof Uint8Array;
2234
+ } catch (_) {
2235
+ result = false;
2236
+ }
2237
+ const ret = result;
2238
+ return ret;
2239
+ };
2240
+ imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
2241
+ const ret = Array.isArray(getObject(arg0));
2242
+ return ret;
2243
+ };
2244
+ imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
2245
+ const ret = Symbol.iterator;
2246
+ return addHeapObject(ret);
2247
+ };
2248
+ imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
2249
+ const ret = getObject(arg0).length;
2250
+ return ret;
2251
+ };
2252
+ imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
2253
+ const ret = getObject(arg0).length;
2254
+ return ret;
2255
+ };
2256
+ imports.wbg.__wbg_log_4b6ed0b139485439 = function(arg0, arg1) {
2213
2257
  console.log(getStringFromWasm0(arg0, arg1));
2214
2258
  };
2215
2259
  imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
@@ -2228,14 +2272,29 @@ function __wbg_get_imports() {
2228
2272
  const ret = new Map();
2229
2273
  return addHeapObject(ret);
2230
2274
  };
2275
+ imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
2276
+ const ret = new Uint8Array(getObject(arg0));
2277
+ return addHeapObject(ret);
2278
+ };
2231
2279
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
2232
2280
  const ret = new Error();
2233
2281
  return addHeapObject(ret);
2234
2282
  };
2283
+ imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
2284
+ const ret = getObject(arg0).next;
2285
+ return addHeapObject(ret);
2286
+ };
2287
+ imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
2288
+ const ret = getObject(arg0).next();
2289
+ return addHeapObject(ret);
2290
+ }, arguments) };
2235
2291
  imports.wbg.__wbg_parse_442f5ba02e5eaf8b = function() { return handleError(function (arg0, arg1) {
2236
2292
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2237
2293
  return addHeapObject(ret);
2238
2294
  }, arguments) };
2295
+ imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
2296
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2297
+ };
2239
2298
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
2240
2299
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2241
2300
  };
@@ -2257,6 +2316,15 @@ function __wbg_get_imports() {
2257
2316
  const ret = ValidationError.__wrap(arg0);
2258
2317
  return addHeapObject(ret);
2259
2318
  };
2319
+ imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
2320
+ const ret = getObject(arg0).value;
2321
+ return addHeapObject(ret);
2322
+ };
2323
+ imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
2324
+ const v = getObject(arg0);
2325
+ const ret = typeof(v) === 'boolean' ? v : undefined;
2326
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
2327
+ };
2260
2328
  imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
2261
2329
  const ret = debugString(getObject(arg1));
2262
2330
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -2264,10 +2332,29 @@ function __wbg_get_imports() {
2264
2332
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2265
2333
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2266
2334
  };
2335
+ imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
2336
+ const ret = typeof(getObject(arg0)) === 'function';
2337
+ return ret;
2338
+ };
2339
+ imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
2340
+ const val = getObject(arg0);
2341
+ const ret = typeof(val) === 'object' && val !== null;
2342
+ return ret;
2343
+ };
2267
2344
  imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2268
2345
  const ret = typeof(getObject(arg0)) === 'string';
2269
2346
  return ret;
2270
2347
  };
2348
+ imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
2349
+ const ret = getObject(arg0) == getObject(arg1);
2350
+ return ret;
2351
+ };
2352
+ imports.wbg.__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
+ };
2271
2358
  imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
2272
2359
  const obj = getObject(arg1);
2273
2360
  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, i: number) => void;
17
+ export const jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: 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, 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;
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, h: number) => void;
30
+ export const jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: 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, g: number) => void;
46
+ export const jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: 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, b: number, c: number) => void;
82
- export const __wbindgen_export_3: (a: number) => void;
81
+ export const __wbindgen_export_2: (a: number) => void;
82
+ export const __wbindgen_export_3: (a: number, b: number, c: number) => void;
83
83
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
84
84
  export const __wbindgen_start: () => void;