@thi.ng/parse 2.6.27 → 2.6.28

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**: 2025-09-01T16:38:35Z
3
+ - **Last updated**: 2025-09-25T11:10:32Z
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/README.md CHANGED
@@ -103,7 +103,7 @@ For Node.js REPL:
103
103
  const parse = await import("@thi.ng/parse");
104
104
  ```
105
105
 
106
- Package sizes (brotli'd, pre-treeshake): ESM: 5.40 KB
106
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.42 KB
107
107
 
108
108
  ## Dependencies
109
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.6.27",
3
+ "version": "2.6.28",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -246,5 +246,5 @@
246
246
  ],
247
247
  "year": 2020
248
248
  },
249
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
249
+ "gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
250
250
  }
package/prims/satisfy.js CHANGED
@@ -1,13 +1,13 @@
1
- const satisfy = (pred, id = "satisfy") => (ctx) => {
1
+ const satisfy = (pred, id = "satisfy") => ((ctx) => {
2
2
  if (ctx.done) return false;
3
3
  const r = ctx.reader.read(ctx.state);
4
4
  return pred(r) ? ctx.addChild(id, r, true) : false;
5
- };
6
- const satisfyD = (pred) => (ctx) => {
5
+ });
6
+ const satisfyD = (pred) => ((ctx) => {
7
7
  if (ctx.done) return false;
8
8
  const { reader, state } = ctx;
9
9
  return pred(reader.read(state)) ? (reader.next(state), true) : false;
10
- };
10
+ });
11
11
  export {
12
12
  satisfy,
13
13
  satisfyD