@bcts/envelope-pattern 1.0.0-alpha.22 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcts/envelope-pattern",
3
- "version": "1.0.0-alpha.22",
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.0.2",
52
- "tsdown": "^0.20.3",
53
- "typedoc": "^0.28.17",
54
- "typescript": "^5.9.3",
55
- "vitest": "^4.0.18"
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.22",
59
- "@bcts/dcbor-parse": "^1.0.0-alpha.22",
60
- "@bcts/dcbor-pattern": "^1.0.0-alpha.22",
61
- "@bcts/envelope": "^1.0.0-alpha.22",
62
- "@bcts/known-values": "^1.0.0-alpha.22"
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
@@ -114,7 +114,7 @@ export function map<T, U>(result: Result<T>, fn: (value: T) => U): Result<U> {
114
114
  if (result.ok) {
115
115
  return ok(fn(result.value));
116
116
  }
117
- return result as Result<U>;
117
+ return result;
118
118
  }
119
119
 
120
120
  /**
@@ -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 as Result<[Pattern, number]>;
146
+ return result;
147
147
  }
148
148
  return ok([result.value, lexer.position]);
149
149
  }