@bcts/envelope-pattern 1.0.0-alpha.21 → 1.0.0-alpha.23
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/dist/index.cjs +34 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +348 -420
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +18 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/error.ts +1 -1
- package/src/parse/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcts/envelope-pattern",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pattern matching for Gordian Envelope structures",
|
|
6
6
|
"license": "BSD-2-Clause-Patent",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@bcts/eslint": "^0.1.0",
|
|
50
50
|
"@bcts/tsconfig": "^0.1.0",
|
|
51
|
-
"eslint": "^10.
|
|
52
|
-
"tsdown": "^0.
|
|
53
|
-
"typedoc": "^0.28.
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"vitest": "^4.
|
|
51
|
+
"eslint": "^10.2.1",
|
|
52
|
+
"tsdown": "^0.21.0",
|
|
53
|
+
"typedoc": "^0.28.19",
|
|
54
|
+
"typescript": "^6.0.3",
|
|
55
|
+
"vitest": "^4.1.5"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@bcts/dcbor": "^1.0.0-alpha.
|
|
59
|
-
"@bcts/dcbor-parse": "^1.0.0-alpha.
|
|
60
|
-
"@bcts/dcbor-pattern": "^1.0.0-alpha.
|
|
61
|
-
"@bcts/envelope": "^1.0.0-alpha.
|
|
62
|
-
"@bcts/known-values": "^1.0.0-alpha.
|
|
58
|
+
"@bcts/dcbor": "^1.0.0-alpha.23",
|
|
59
|
+
"@bcts/dcbor-parse": "^1.0.0-alpha.23",
|
|
60
|
+
"@bcts/dcbor-pattern": "^1.0.0-alpha.23",
|
|
61
|
+
"@bcts/envelope": "^1.0.0-alpha.23",
|
|
62
|
+
"@bcts/known-values": "^1.0.0-alpha.23"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/error.ts
CHANGED
package/src/parse/index.ts
CHANGED
|
@@ -143,7 +143,7 @@ export function parsePartial(input: string): Result<[Pattern, number]> {
|
|
|
143
143
|
const lexer = new Lexer(input);
|
|
144
144
|
const result = parseOr(lexer);
|
|
145
145
|
if (!result.ok) {
|
|
146
|
-
return result
|
|
146
|
+
return result;
|
|
147
147
|
}
|
|
148
148
|
return ok([result.value, lexer.position]);
|
|
149
149
|
}
|