@thi.ng/parse 2.4.15 → 2.4.16
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/parse",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.16",
|
|
4
4
|
"description": "Purely functional parser combinators & AST generation for generic inputs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/checks": "^3.4.
|
|
40
|
-
"@thi.ng/defmulti": "^3.0.
|
|
38
|
+
"@thi.ng/api": "^8.9.18",
|
|
39
|
+
"@thi.ng/checks": "^3.4.18",
|
|
40
|
+
"@thi.ng/defmulti": "^3.0.16",
|
|
41
41
|
"@thi.ng/errors": "^2.4.11",
|
|
42
|
-
"@thi.ng/strings": "^3.7.
|
|
42
|
+
"@thi.ng/strings": "^3.7.9"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -241,5 +241,5 @@
|
|
|
241
241
|
],
|
|
242
242
|
"year": 2020
|
|
243
243
|
},
|
|
244
|
-
"gitHead": "
|
|
244
|
+
"gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
245
245
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ParseState, IReader } from "../api.js";
|
|
2
|
-
declare class ArrayReader<T> implements IReader<T> {
|
|
2
|
+
export declare class ArrayReader<T> implements IReader<T> {
|
|
3
3
|
protected _src: ArrayLike<T>;
|
|
4
4
|
constructor(_src: ArrayLike<T>);
|
|
5
5
|
read(state: ParseState<T>): T;
|
|
@@ -8,5 +8,4 @@ declare class ArrayReader<T> implements IReader<T> {
|
|
|
8
8
|
format(state: ParseState<T>): string;
|
|
9
9
|
}
|
|
10
10
|
export declare const defArrayReader: <T>(input: ArrayLike<T>) => ArrayReader<T>;
|
|
11
|
-
export {};
|
|
12
11
|
//# sourceMappingURL=array-reader.d.ts.map
|
package/readers/array-reader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ParseState, IReader } from "../api.js";
|
|
2
|
-
declare class StringReader implements IReader<string> {
|
|
2
|
+
export declare class StringReader implements IReader<string> {
|
|
3
3
|
protected _src: string;
|
|
4
4
|
constructor(_src: string);
|
|
5
5
|
read(state: ParseState<string>): string;
|
|
@@ -8,5 +8,4 @@ declare class StringReader implements IReader<string> {
|
|
|
8
8
|
format(state: ParseState<string>): string;
|
|
9
9
|
}
|
|
10
10
|
export declare const defStringReader: (input: string) => StringReader;
|
|
11
|
-
export {};
|
|
12
11
|
//# sourceMappingURL=string-reader.d.ts.map
|
package/readers/string-reader.js
CHANGED
package/xform/hoist.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { Parser, ScopeTransform } from "../api.js";
|
|
|
7
7
|
export declare const xfHoist: ScopeTransform<any>;
|
|
8
8
|
/**
|
|
9
9
|
* Moves the result of first child node to this node, then discards all
|
|
10
|
-
* children. Also see {@link
|
|
10
|
+
* children. Also see {@link hoistResult}.
|
|
11
11
|
*
|
|
12
12
|
* @param scope -
|
|
13
13
|
*/
|