parsanol 1.5.12 → 1.5.14

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": "parsanol",
3
- "version": "1.5.12",
3
+ "version": "1.5.14",
4
4
  "description": "PARG artifact runtime for TypeScript \u2014 checksum-verified artifact load, wasm parse, bindings, schema-driven materialization",
5
5
  "type": "module",
6
6
  "main": "dist/runtime.js",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "repository": "https://github.com/parsanol/parsanol-rs",
3
3
  "upstream_base": "74d6aa27987db8d3ffa38eb38a7e89c0d1b28da2",
4
- "source_commit": "603d24b86f6ba7cc55ac04d872ee8bd878d123a9",
5
- "built_source_commit": "93ad1c78910388750ead42aa36c5c81dfa37191e",
4
+ "source_commit": "258b1530858fb24ec9e5215ea557864642f6624a",
5
+ "built_source_commit": "258b1530858fb24ec9e5215ea557864642f6624a",
6
6
  "source_tree": "d788f65b16879df853bc23b872d641a920b93328",
7
7
  "built_source_tree_equal": true,
8
- "crate_version": "1.5.12",
8
+ "crate_version": "1.5.14",
9
9
  "unreleased_candidate": false,
10
10
  "target": "nodejs",
11
11
  "profile": "release",
@@ -17,13 +17,13 @@
17
17
  "wasm_vm_atom_calls": 1024
18
18
  },
19
19
  "lockfile": "scripts/wasm-build/Cargo.lock",
20
- "lockfile_sha256": "9806fbfbad9e0b4711f436570b9688bc76bd1a1c4912ed1d8cf12d9acf6ef51f",
20
+ "lockfile_sha256": "a480bdc1d3c414d61fd0c8cda6b588c2e30c446188f39ad9f1ae0b6b5330c388",
21
21
  "files": {
22
- "parsanol_bg.wasm": "fccc5444872df1e56bc9fb5896bfce4a7f17bd15fb4fb62fa1ba98eec437598d",
23
- "parsanol.d.ts": "e8d33dced76fabbb1ea590a1cc499f1d145ba68b1b2c725c083990d4feff854e",
22
+ "parsanol_bg.wasm": "c184140111ad924b6f49720baed0d48fccd75e55e9f5078d90a9d46a7e89236a",
23
+ "parsanol.d.ts": "6ab38f3e1b965e02ed5f5c2c325a9c053e01a5ebab81d7edc47bae310d5af7c9",
24
24
  "LICENSE": "47f4778bc0bfbeb3614d173dd1ec09ddd8cab994039193e2d3de2edcd7886c7e",
25
- "parsanol.cjs": "2b316a13859f70d1a710ccba766d9d1a7adb7dec07a261c4beba8cc1891545d2",
26
- "parsanol_bg.wasm.d.ts": "043dbc4f52896ca16d02310710a9782c835d07f2997dc77bba51a20148f0edae"
25
+ "parsanol.cjs": "1bad1744a822d3ecfd94f98b54eb04d5af91a019ddc1c357527c4ed906b6f81f",
26
+ "parsanol_bg.wasm.d.ts": "628aeab600cac0fffb121c2d8d9133376e04cf13726e8d366ca4687c4a22aad7"
27
27
  },
28
28
  "shape_json_max_depth": 512
29
29
  }
@@ -198,6 +198,42 @@ class PargArtifactJs {
198
198
  }
199
199
  return takeFromExternrefTable0(ret[0]);
200
200
  }
201
+ /**
202
+ * Explicit finite VM atom-depth budget (1..=8192), local to this call.
203
+ * The default API keeps its 1024-call WASM guard. This does not change the
204
+ * rule-recursion or shape-JSON budgets, nor guarantee a host stack size.
205
+ * @param {string} entry
206
+ * @param {string} input
207
+ * @param {string} compatibility
208
+ * @param {string} reporter
209
+ * @param {number} max_call_depth
210
+ * @returns {string}
211
+ */
212
+ parseShapeWithCallDepth(entry, input, compatibility, reporter, max_call_depth) {
213
+ const val5 = +max_call_depth;
214
+ let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
215
+ try {
216
+ ptr0 = passStringToWasm0(entry, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
217
+ len0 = WASM_VECTOR_LEN;
218
+ ptr1 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
219
+ len1 = WASM_VECTOR_LEN;
220
+ ptr2 = passStringToWasm0(compatibility, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
221
+ len2 = WASM_VECTOR_LEN;
222
+ ptr3 = passStringToWasm0(reporter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
+ len3 = WASM_VECTOR_LEN;
224
+ } catch (e) {
225
+ if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
226
+ if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
227
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
228
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
229
+ throw e;
230
+ }
231
+ const ret = wasm.pargartifactjs_parseShapeWithCallDepth(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, val5);
232
+ if (ret[2]) {
233
+ throw takeFromExternrefTable0(ret[1]);
234
+ }
235
+ return takeFromExternrefTable0(ret[0]);
236
+ }
201
237
  /**
202
238
  * Explicit compatibility without changing parseShape defaults.
203
239
  * The JSON envelope contains either shape or causal error diagnostics;
@@ -58,6 +58,12 @@ export class PargArtifactJs {
58
58
  * `{"ok": false, "captures": ..., "error": ..., "consumed_upto"}`.
59
59
  */
60
60
  parseShapeRecovering(entry: string, input: string): string;
61
+ /**
62
+ * Explicit finite VM atom-depth budget (1..=8192), local to this call.
63
+ * The default API keeps its 1024-call WASM guard. This does not change the
64
+ * rule-recursion or shape-JSON budgets, nor guarantee a host stack size.
65
+ */
66
+ parseShapeWithCallDepth(entry: string, input: string, compatibility: string, reporter: string, max_call_depth: number): string;
61
67
  /**
62
68
  * Explicit compatibility without changing parseShape defaults.
63
69
  * The JSON envelope contains either shape or causal error diagnostics;
@@ -44,6 +44,7 @@ export const pargartifactjs_new: (a: number, b: number) => [number, number, numb
44
44
  export const pargartifactjs_parseAndBind: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
45
45
  export const pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
46
46
  export const pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
47
+ export const pargartifactjs_parseShapeWithCallDepth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
47
48
  export const pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
48
49
  export const pargartifactjs_parseShapeWithReporter: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
49
50
  export const pargartifactjs_runTests: (a: number) => [number, number, number];
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "package": "@parsanol/wasm",
3
3
  "version": "1.5.4",
4
- "crate_version": "1.5.12",
4
+ "crate_version": "1.5.14",
5
5
  "target": "web",
6
6
  "repository": "https://github.com/parsanol/parsanol-rs",
7
7
  "tarball": "https://registry.npmjs.org/@parsanol/wasm/-/wasm-1.5.4.tgz",
8
8
  "integrity": "sha512-oeYj52TYg6DomXRIP4iyY5Yj3NwdljcMUok/LQlozO4OlMqyYfvrReaihf2ox9oqqk5aLi0UcQrEYuEfOFRtmw==",
9
9
  "tarball_sha256": "6f9ea6f9277776f9ac96e7423df54693aa5dcce8cf1c7abef85b39fa724b3b3c",
10
10
  "files": {
11
- "parsanol_bg.wasm": "fccc5444872df1e56bc9fb5896bfce4a7f17bd15fb4fb62fa1ba98eec437598d",
12
- "parsanol.d.ts": "ee76dbae6b9245e7ffbc7ed4e43f4c81b5917e74c080625f574bfafd7d4809eb",
11
+ "parsanol_bg.wasm": "c184140111ad924b6f49720baed0d48fccd75e55e9f5078d90a9d46a7e89236a",
12
+ "parsanol.d.ts": "f4ffbf833368dffe1ecb9c611e7f172920ef383d26e6de23daee151de9b3eabb",
13
13
  "LICENSE": "47f4778bc0bfbeb3614d173dd1ec09ddd8cab994039193e2d3de2edcd7886c7e",
14
- "parsanol.js": "34d240782519e18c8ff04eb2478242ed311b41b8239a8dbf1901ae7e3fc7afae",
15
- "parsanol_bg.wasm.d.ts": "043dbc4f52896ca16d02310710a9782c835d07f2997dc77bba51a20148f0edae",
14
+ "parsanol.js": "7c500cc0b826a6d4d1658c244633de772cd74d6dea5a49ae3fc5f0b618a97a03",
15
+ "parsanol_bg.wasm.d.ts": "628aeab600cac0fffb121c2d8d9133376e04cf13726e8d366ca4687c4a22aad7",
16
16
  "README.md": "577c2d75ac98c331379a50698624b68c773eb4603648108f80f4399fde33d339"
17
17
  },
18
- "source_commit": "93ad1c78910388750ead42aa36c5c81dfa37191e",
19
- "lockfile_sha256": "887439989d25b4115ec660f59abb8d2b898e32015e23d66cbff7bce9994dda73",
20
- "built_source_commit": "93ad1c78910388750ead42aa36c5c81dfa37191e",
18
+ "source_commit": "258b1530858fb24ec9e5215ea557864642f6624a",
19
+ "lockfile_sha256": "a480bdc1d3c414d61fd0c8cda6b588c2e30c446188f39ad9f1ae0b6b5330c388",
20
+ "built_source_commit": "258b1530858fb24ec9e5215ea557864642f6624a",
21
21
  "built_source_tree_equal": true,
22
- "upstream_base": "8a40a23d227802177c8e8e1ed13d057308869cf2"
22
+ "upstream_base": "93ad1c78910388750ead42aa36c5c81dfa37191e"
23
23
  }
@@ -58,6 +58,12 @@ export class PargArtifactJs {
58
58
  * `{"ok": false, "captures": ..., "error": ..., "consumed_upto"}`.
59
59
  */
60
60
  parseShapeRecovering(entry: string, input: string): string;
61
+ /**
62
+ * Explicit finite VM atom-depth budget (1..=8192), local to this call.
63
+ * The default API keeps its 1024-call WASM guard. This does not change the
64
+ * rule-recursion or shape-JSON budgets, nor guarantee a host stack size.
65
+ */
66
+ parseShapeWithCallDepth(entry: string, input: string, compatibility: string, reporter: string, max_call_depth: number): string;
61
67
  /**
62
68
  * Explicit compatibility without changing parseShape defaults.
63
69
  * The JSON envelope contains either shape or causal error diagnostics;
@@ -236,6 +242,7 @@ export interface InitOutput {
236
242
  readonly pargartifactjs_parseAndBind: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
237
243
  readonly pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
238
244
  readonly pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
245
+ readonly pargartifactjs_parseShapeWithCallDepth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
239
246
  readonly pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
240
247
  readonly pargartifactjs_parseShapeWithReporter: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
241
248
  readonly pargartifactjs_runTests: (a: number) => [number, number, number];
@@ -198,6 +198,42 @@ export class PargArtifactJs {
198
198
  }
199
199
  return takeFromExternrefTable0(ret[0]);
200
200
  }
201
+ /**
202
+ * Explicit finite VM atom-depth budget (1..=8192), local to this call.
203
+ * The default API keeps its 1024-call WASM guard. This does not change the
204
+ * rule-recursion or shape-JSON budgets, nor guarantee a host stack size.
205
+ * @param {string} entry
206
+ * @param {string} input
207
+ * @param {string} compatibility
208
+ * @param {string} reporter
209
+ * @param {number} max_call_depth
210
+ * @returns {string}
211
+ */
212
+ parseShapeWithCallDepth(entry, input, compatibility, reporter, max_call_depth) {
213
+ const val5 = +max_call_depth;
214
+ let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
215
+ try {
216
+ ptr0 = passStringToWasm0(entry, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
217
+ len0 = WASM_VECTOR_LEN;
218
+ ptr1 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
219
+ len1 = WASM_VECTOR_LEN;
220
+ ptr2 = passStringToWasm0(compatibility, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
221
+ len2 = WASM_VECTOR_LEN;
222
+ ptr3 = passStringToWasm0(reporter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
+ len3 = WASM_VECTOR_LEN;
224
+ } catch (e) {
225
+ if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
226
+ if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
227
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
228
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
229
+ throw e;
230
+ }
231
+ const ret = wasm.pargartifactjs_parseShapeWithCallDepth(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, val5);
232
+ if (ret[2]) {
233
+ throw takeFromExternrefTable0(ret[1]);
234
+ }
235
+ return takeFromExternrefTable0(ret[0]);
236
+ }
201
237
  /**
202
238
  * Explicit compatibility without changing parseShape defaults.
203
239
  * The JSON envelope contains either shape or causal error diagnostics;
@@ -44,6 +44,7 @@ export const pargartifactjs_new: (a: number, b: number) => [number, number, numb
44
44
  export const pargartifactjs_parseAndBind: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
45
45
  export const pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
46
46
  export const pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
47
+ export const pargartifactjs_parseShapeWithCallDepth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
47
48
  export const pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
48
49
  export const pargartifactjs_parseShapeWithReporter: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
49
50
  export const pargartifactjs_runTests: (a: number) => [number, number, number];