parsanol 1.5.1 → 1.5.6
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 +1 -1
- package/vendor/parsanol-wasm/BUILT_FROM +2 -2
- package/vendor/parsanol-wasm/BUILT_FROM.json +8 -8
- package/vendor/parsanol-wasm/parsanol.cjs +34 -0
- package/vendor/parsanol-wasm/parsanol.d.ts +6 -0
- package/vendor/parsanol-wasm/parsanol_bg.wasm +0 -0
- package/vendor/parsanol-wasm/parsanol_bg.wasm.d.ts +2 -0
- package/vendor/parsanol-web/BUILT_FROM.json +12 -12
- package/vendor/parsanol-web/parsanol.d.ts +8 -0
- package/vendor/parsanol-web/parsanol.js +34 -0
- package/vendor/parsanol-web/parsanol_bg.wasm +0 -0
- package/vendor/parsanol-web/parsanol_bg.wasm.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
built with:
|
|
1
|
+
944badc693ac7912fb04a2185df4418169934b00
|
|
2
|
+
built with: wasm-pack build --target=nodejs --features wasm (from parsanol-rs/parsanol)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "https://github.com/parsanol/parsanol-rs",
|
|
3
3
|
"upstream_base": "74d6aa27987db8d3ffa38eb38a7e89c0d1b28da2",
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"built_source_commit": "
|
|
4
|
+
"source_commit": "8018d8ee80965567f73b33446ad34480637bb2e5",
|
|
5
|
+
"built_source_commit": "8018d8ee80965567f73b33446ad34480637bb2e5",
|
|
6
6
|
"source_tree": "d788f65b16879df853bc23b872d641a920b93328",
|
|
7
7
|
"built_source_tree_equal": true,
|
|
8
|
-
"crate_version": "1.5.
|
|
8
|
+
"crate_version": "1.5.6",
|
|
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": "
|
|
20
|
+
"lockfile_sha256": "12fc65dde2934342c26b04b1834b92e994f9cde03227fde958710cf4cb0a01de",
|
|
21
21
|
"files": {
|
|
22
|
-
"parsanol_bg.wasm": "
|
|
23
|
-
"parsanol.d.ts": "
|
|
22
|
+
"parsanol_bg.wasm": "1c04236e986ec352bc73fa9a8a69bdc76b530ed60aa2e4f69a29151786a0462d",
|
|
23
|
+
"parsanol.d.ts": "e8d33dced76fabbb1ea590a1cc499f1d145ba68b1b2c725c083990d4feff854e",
|
|
24
24
|
"LICENSE": "47f4778bc0bfbeb3614d173dd1ec09ddd8cab994039193e2d3de2edcd7886c7e",
|
|
25
|
-
"parsanol.cjs": "
|
|
26
|
-
"parsanol_bg.wasm.d.ts": "
|
|
25
|
+
"parsanol.cjs": "2b316a13859f70d1a710ccba766d9d1a7adb7dec07a261c4beba8cc1891545d2",
|
|
26
|
+
"parsanol_bg.wasm.d.ts": "3d8cce04814fe18fcd9cd3780e5f0431e6ebe61d58de9a3cb8baab12afb7fcf5"
|
|
27
27
|
},
|
|
28
28
|
"shape_json_max_depth": 512
|
|
29
29
|
}
|
|
@@ -228,6 +228,40 @@ class PargArtifactJs {
|
|
|
228
228
|
}
|
|
229
229
|
return takeFromExternrefTable0(ret[0]);
|
|
230
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* Explicit reporter without changing existing parseShape defaults.
|
|
233
|
+
* Compatibility is "strict" or "parslet"; reporter is "default" or
|
|
234
|
+
* "deepest". The owned JSON result uses the existing shape/error envelope.
|
|
235
|
+
* @param {string} entry
|
|
236
|
+
* @param {string} input
|
|
237
|
+
* @param {string} compatibility
|
|
238
|
+
* @param {string} reporter
|
|
239
|
+
* @returns {string}
|
|
240
|
+
*/
|
|
241
|
+
parseShapeWithReporter(entry, input, compatibility, reporter) {
|
|
242
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
243
|
+
try {
|
|
244
|
+
ptr0 = passStringToWasm0(entry, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
len0 = WASM_VECTOR_LEN;
|
|
246
|
+
ptr1 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
+
len1 = WASM_VECTOR_LEN;
|
|
248
|
+
ptr2 = passStringToWasm0(compatibility, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
+
len2 = WASM_VECTOR_LEN;
|
|
250
|
+
ptr3 = passStringToWasm0(reporter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
+
len3 = WASM_VECTOR_LEN;
|
|
252
|
+
} catch (e) {
|
|
253
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
254
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
255
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
256
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
257
|
+
throw e;
|
|
258
|
+
}
|
|
259
|
+
const ret = wasm.pargartifactjs_parseShapeWithReporter(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
260
|
+
if (ret[2]) {
|
|
261
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
262
|
+
}
|
|
263
|
+
return takeFromExternrefTable0(ret[0]);
|
|
264
|
+
}
|
|
231
265
|
/**
|
|
232
266
|
* Parse an entry with the native engine; returns the parsanol-shape
|
|
233
267
|
* tree as JSON text.
|
|
@@ -64,6 +64,12 @@ export class PargArtifactJs {
|
|
|
64
64
|
* it does not claim best-effort recovery captures.
|
|
65
65
|
*/
|
|
66
66
|
parseShapeWithCompatibility(entry: string, input: string, compatibility: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* Explicit reporter without changing existing parseShape defaults.
|
|
69
|
+
* Compatibility is "strict" or "parslet"; reporter is "default" or
|
|
70
|
+
* "deepest". The owned JSON result uses the existing shape/error envelope.
|
|
71
|
+
*/
|
|
72
|
+
parseShapeWithReporter(entry: string, input: string, compatibility: string, reporter: string): string;
|
|
67
73
|
/**
|
|
68
74
|
* Parse an entry with the native engine; returns the parsanol-shape
|
|
69
75
|
* tree as JSON text.
|
|
Binary file
|
|
@@ -14,6 +14,7 @@ export const pargartifactjs_parseAndBind: (a: number, b: number, c: number, d: n
|
|
|
14
14
|
export const pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
15
15
|
export const pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
16
16
|
export const pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
17
|
+
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];
|
|
17
18
|
export const pargartifactjs_runTests: (a: number) => [number, number, number];
|
|
18
19
|
export const pargartifactjs_schema: (a: number) => [number, number, number];
|
|
19
20
|
export const pargartifactjs_schemaTypescript: (a: number) => [number, number, number];
|
|
@@ -41,6 +42,7 @@ export const parsanol_parg_generate: (a: number, b: number, c: number) => number
|
|
|
41
42
|
export const parsanol_parg_parse: (a: number, b: number) => number;
|
|
42
43
|
export const parsanol_parg_parse_recovering: (a: number, b: number, c: number) => number;
|
|
43
44
|
export const parsanol_parg_parse_with_compatibility: (a: number, b: number, c: number, d: number) => number;
|
|
45
|
+
export const parsanol_parg_parse_with_reporter: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
44
46
|
export const parsanol_parse: (a: number, b: number, c: number) => number;
|
|
45
47
|
export const parsanol_parse_end_pos: (a: number, b: number) => number;
|
|
46
48
|
export const parsanol_parse_simple: (a: number, b: number) => number;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@parsanol/wasm",
|
|
3
|
-
"version": "
|
|
4
|
-
"crate_version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
|
+
"crate_version": "1.5.6",
|
|
5
5
|
"target": "web",
|
|
6
6
|
"repository": "https://github.com/parsanol/parsanol-rs",
|
|
7
|
-
"tarball": "https://registry.npmjs.org/@parsanol/wasm/-/wasm-
|
|
8
|
-
"integrity": "sha512-
|
|
9
|
-
"tarball_sha256": "
|
|
7
|
+
"tarball": "https://registry.npmjs.org/@parsanol/wasm/-/wasm-1.5.4.tgz",
|
|
8
|
+
"integrity": "sha512-oeYj52TYg6DomXRIP4iyY5Yj3NwdljcMUok/LQlozO4OlMqyYfvrReaihf2ox9oqqk5aLi0UcQrEYuEfOFRtmw==",
|
|
9
|
+
"tarball_sha256": "6f9ea6f9277776f9ac96e7423df54693aa5dcce8cf1c7abef85b39fa724b3b3c",
|
|
10
10
|
"files": {
|
|
11
|
-
"parsanol_bg.wasm": "
|
|
12
|
-
"parsanol.d.ts": "
|
|
11
|
+
"parsanol_bg.wasm": "1c04236e986ec352bc73fa9a8a69bdc76b530ed60aa2e4f69a29151786a0462d",
|
|
12
|
+
"parsanol.d.ts": "96c764221523a7bc96fafa39d150aaff59fd09805adb164092bdf6887c0f6236",
|
|
13
13
|
"LICENSE": "47f4778bc0bfbeb3614d173dd1ec09ddd8cab994039193e2d3de2edcd7886c7e",
|
|
14
|
-
"parsanol.js": "
|
|
15
|
-
"parsanol_bg.wasm.d.ts": "
|
|
14
|
+
"parsanol.js": "34d240782519e18c8ff04eb2478242ed311b41b8239a8dbf1901ae7e3fc7afae",
|
|
15
|
+
"parsanol_bg.wasm.d.ts": "3d8cce04814fe18fcd9cd3780e5f0431e6ebe61d58de9a3cb8baab12afb7fcf5",
|
|
16
16
|
"README.md": "577c2d75ac98c331379a50698624b68c773eb4603648108f80f4399fde33d339"
|
|
17
17
|
},
|
|
18
|
-
"source_commit": "
|
|
19
|
-
"lockfile_sha256": "
|
|
20
|
-
"built_source_commit": "
|
|
18
|
+
"source_commit": "8018d8ee80965567f73b33446ad34480637bb2e5",
|
|
19
|
+
"lockfile_sha256": "12fc65dde2934342c26b04b1834b92e994f9cde03227fde958710cf4cb0a01de",
|
|
20
|
+
"built_source_commit": "8018d8ee80965567f73b33446ad34480637bb2e5",
|
|
21
21
|
"built_source_tree_equal": true
|
|
22
22
|
}
|
|
@@ -64,6 +64,12 @@ export class PargArtifactJs {
|
|
|
64
64
|
* it does not claim best-effort recovery captures.
|
|
65
65
|
*/
|
|
66
66
|
parseShapeWithCompatibility(entry: string, input: string, compatibility: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* Explicit reporter without changing existing parseShape defaults.
|
|
69
|
+
* Compatibility is "strict" or "parslet"; reporter is "default" or
|
|
70
|
+
* "deepest". The owned JSON result uses the existing shape/error envelope.
|
|
71
|
+
*/
|
|
72
|
+
parseShapeWithReporter(entry: string, input: string, compatibility: string, reporter: string): string;
|
|
67
73
|
/**
|
|
68
74
|
* Parse an entry with the native engine; returns the parsanol-shape
|
|
69
75
|
* tree as JSON text.
|
|
@@ -200,6 +206,7 @@ export interface InitOutput {
|
|
|
200
206
|
readonly pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
201
207
|
readonly pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
202
208
|
readonly pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
209
|
+
readonly pargartifactjs_parseShapeWithReporter: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
203
210
|
readonly pargartifactjs_runTests: (a: number) => [number, number, number];
|
|
204
211
|
readonly pargartifactjs_schema: (a: number) => [number, number, number];
|
|
205
212
|
readonly pargartifactjs_schemaTypescript: (a: number) => [number, number, number];
|
|
@@ -227,6 +234,7 @@ export interface InitOutput {
|
|
|
227
234
|
readonly parsanol_parg_parse: (a: number, b: number) => number;
|
|
228
235
|
readonly parsanol_parg_parse_recovering: (a: number, b: number, c: number) => number;
|
|
229
236
|
readonly parsanol_parg_parse_with_compatibility: (a: number, b: number, c: number, d: number) => number;
|
|
237
|
+
readonly parsanol_parg_parse_with_reporter: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
230
238
|
readonly parsanol_parse: (a: number, b: number, c: number) => number;
|
|
231
239
|
readonly parsanol_parse_end_pos: (a: number, b: number) => number;
|
|
232
240
|
readonly parsanol_parse_simple: (a: number, b: number) => number;
|
|
@@ -228,6 +228,40 @@ export class PargArtifactJs {
|
|
|
228
228
|
}
|
|
229
229
|
return takeFromExternrefTable0(ret[0]);
|
|
230
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* Explicit reporter without changing existing parseShape defaults.
|
|
233
|
+
* Compatibility is "strict" or "parslet"; reporter is "default" or
|
|
234
|
+
* "deepest". The owned JSON result uses the existing shape/error envelope.
|
|
235
|
+
* @param {string} entry
|
|
236
|
+
* @param {string} input
|
|
237
|
+
* @param {string} compatibility
|
|
238
|
+
* @param {string} reporter
|
|
239
|
+
* @returns {string}
|
|
240
|
+
*/
|
|
241
|
+
parseShapeWithReporter(entry, input, compatibility, reporter) {
|
|
242
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
243
|
+
try {
|
|
244
|
+
ptr0 = passStringToWasm0(entry, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
len0 = WASM_VECTOR_LEN;
|
|
246
|
+
ptr1 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
+
len1 = WASM_VECTOR_LEN;
|
|
248
|
+
ptr2 = passStringToWasm0(compatibility, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
+
len2 = WASM_VECTOR_LEN;
|
|
250
|
+
ptr3 = passStringToWasm0(reporter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
+
len3 = WASM_VECTOR_LEN;
|
|
252
|
+
} catch (e) {
|
|
253
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
254
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
255
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
256
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
257
|
+
throw e;
|
|
258
|
+
}
|
|
259
|
+
const ret = wasm.pargartifactjs_parseShapeWithReporter(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
260
|
+
if (ret[2]) {
|
|
261
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
262
|
+
}
|
|
263
|
+
return takeFromExternrefTable0(ret[0]);
|
|
264
|
+
}
|
|
231
265
|
/**
|
|
232
266
|
* Parse an entry with the native engine; returns the parsanol-shape
|
|
233
267
|
* tree as JSON text.
|
|
Binary file
|
|
@@ -14,6 +14,7 @@ export const pargartifactjs_parseAndBind: (a: number, b: number, c: number, d: n
|
|
|
14
14
|
export const pargartifactjs_parseShape: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
15
15
|
export const pargartifactjs_parseShapeRecovering: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
16
16
|
export const pargartifactjs_parseShapeWithCompatibility: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
17
|
+
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];
|
|
17
18
|
export const pargartifactjs_runTests: (a: number) => [number, number, number];
|
|
18
19
|
export const pargartifactjs_schema: (a: number) => [number, number, number];
|
|
19
20
|
export const pargartifactjs_schemaTypescript: (a: number) => [number, number, number];
|
|
@@ -41,6 +42,7 @@ export const parsanol_parg_generate: (a: number, b: number, c: number) => number
|
|
|
41
42
|
export const parsanol_parg_parse: (a: number, b: number) => number;
|
|
42
43
|
export const parsanol_parg_parse_recovering: (a: number, b: number, c: number) => number;
|
|
43
44
|
export const parsanol_parg_parse_with_compatibility: (a: number, b: number, c: number, d: number) => number;
|
|
45
|
+
export const parsanol_parg_parse_with_reporter: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
44
46
|
export const parsanol_parse: (a: number, b: number, c: number) => number;
|
|
45
47
|
export const parsanol_parse_end_pos: (a: number, b: number) => number;
|
|
46
48
|
export const parsanol_parse_simple: (a: number, b: number) => number;
|