@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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-26T18:03:04Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.4.15",
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.17",
39
- "@thi.ng/checks": "^3.4.17",
40
- "@thi.ng/defmulti": "^3.0.15",
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.8"
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": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
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
@@ -20,5 +20,6 @@ class ArrayReader {
20
20
  }
21
21
  const defArrayReader = (input) => new ArrayReader(input);
22
22
  export {
23
+ ArrayReader,
23
24
  defArrayReader
24
25
  };
@@ -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
@@ -26,5 +26,6 @@ class StringReader {
26
26
  }
27
27
  const defStringReader = (input) => new StringReader(input);
28
28
  export {
29
+ StringReader,
29
30
  defStringReader
30
31
  };
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 hoistR}.
10
+ * children. Also see {@link hoistResult}.
11
11
  *
12
12
  * @param scope -
13
13
  */