@bcts/dcbor-pattern 1.0.0-alpha.19 → 1.0.0-alpha.21

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.
Files changed (73) hide show
  1. package/LICENSE +2 -1
  2. package/README.md +1 -1
  3. package/dist/index.cjs +28 -0
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +8 -0
  6. package/dist/index.d.cts.map +1 -1
  7. package/dist/index.d.mts +8 -0
  8. package/dist/index.d.mts.map +1 -1
  9. package/dist/index.iife.js +28 -0
  10. package/dist/index.iife.js.map +1 -1
  11. package/dist/index.mjs +28 -0
  12. package/dist/index.mjs.map +1 -1
  13. package/package.json +11 -22
  14. package/src/error.ts +4 -0
  15. package/src/format.ts +4 -0
  16. package/src/index.ts +4 -0
  17. package/src/interval.ts +4 -0
  18. package/src/parse/index.ts +4 -0
  19. package/src/parse/meta/and-parser.ts +4 -0
  20. package/src/parse/meta/capture-parser.ts +4 -0
  21. package/src/parse/meta/index.ts +4 -0
  22. package/src/parse/meta/not-parser.ts +4 -0
  23. package/src/parse/meta/or-parser.ts +4 -0
  24. package/src/parse/meta/primary-parser.ts +4 -0
  25. package/src/parse/meta/repeat-parser.ts +4 -0
  26. package/src/parse/meta/search-parser.ts +4 -0
  27. package/src/parse/parse-registry.ts +4 -0
  28. package/src/parse/structure/array-parser.ts +4 -0
  29. package/src/parse/structure/index.ts +4 -0
  30. package/src/parse/structure/map-parser.ts +4 -0
  31. package/src/parse/structure/tagged-parser.ts +4 -0
  32. package/src/parse/token.ts +4 -0
  33. package/src/parse/value/bool-parser.ts +4 -0
  34. package/src/parse/value/bytestring-parser.ts +4 -0
  35. package/src/parse/value/date-parser.ts +4 -0
  36. package/src/parse/value/digest-parser.ts +4 -0
  37. package/src/parse/value/index.ts +4 -0
  38. package/src/parse/value/known-value-parser.ts +4 -0
  39. package/src/parse/value/null-parser.ts +4 -0
  40. package/src/parse/value/number-parser.ts +4 -0
  41. package/src/parse/value/text-parser.ts +4 -0
  42. package/src/pattern/index.ts +4 -0
  43. package/src/pattern/match-registry.ts +4 -0
  44. package/src/pattern/matcher.ts +4 -0
  45. package/src/pattern/meta/and-pattern.ts +4 -0
  46. package/src/pattern/meta/any-pattern.ts +4 -0
  47. package/src/pattern/meta/capture-pattern.ts +4 -0
  48. package/src/pattern/meta/index.ts +4 -0
  49. package/src/pattern/meta/not-pattern.ts +4 -0
  50. package/src/pattern/meta/or-pattern.ts +4 -0
  51. package/src/pattern/meta/repeat-pattern.ts +4 -0
  52. package/src/pattern/meta/search-pattern.ts +4 -0
  53. package/src/pattern/meta/sequence-pattern.ts +4 -0
  54. package/src/pattern/structure/array-pattern/assigner.ts +4 -0
  55. package/src/pattern/structure/array-pattern/backtrack.ts +4 -0
  56. package/src/pattern/structure/array-pattern/helpers.ts +4 -0
  57. package/src/pattern/structure/array-pattern/index.ts +4 -0
  58. package/src/pattern/structure/index.ts +4 -0
  59. package/src/pattern/structure/map-pattern.ts +4 -0
  60. package/src/pattern/structure/tagged-pattern.ts +4 -0
  61. package/src/pattern/value/bool-pattern.ts +4 -0
  62. package/src/pattern/value/bytes-utils.ts +4 -0
  63. package/src/pattern/value/bytestring-pattern.ts +4 -0
  64. package/src/pattern/value/date-pattern.ts +4 -0
  65. package/src/pattern/value/digest-pattern.ts +4 -0
  66. package/src/pattern/value/index.ts +4 -0
  67. package/src/pattern/value/known-value-pattern.ts +4 -0
  68. package/src/pattern/value/null-pattern.ts +4 -0
  69. package/src/pattern/value/number-pattern.ts +4 -0
  70. package/src/pattern/value/text-pattern.ts +4 -0
  71. package/src/pattern/vm.ts +4 -0
  72. package/src/quantifier.ts +4 -0
  73. package/src/reluctance.ts +4 -0
package/package.json CHANGED
@@ -1,29 +1,18 @@
1
1
  {
2
2
  "name": "@bcts/dcbor-pattern",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.21",
4
4
  "type": "module",
5
5
  "description": "Pattern matching for dCBOR (Deterministic CBOR) for TypeScript",
6
6
  "license": "BSD-2-Clause-Patent",
7
- "contributors": [
8
- {
9
- "name": "Leonardo Custodio",
10
- "email": "leonardo.custodio@parity.io",
11
- "url": "https://github.com/leonardocustodio"
12
- },
13
- {
14
- "name": "Karim Jedda",
15
- "email": "karim@parity.io",
16
- "url": "https://github.com/KarimJedda"
17
- }
18
- ],
7
+ "author": "Parity Technologies <admin@parity.io> (https://parity.io)",
19
8
  "homepage": "https://bcts.dev",
20
9
  "repository": {
21
10
  "type": "git",
22
- "url": "git+https://github.com/leonardocustodio/bcts.git",
11
+ "url": "git+https://github.com/paritytech/bcts.git",
23
12
  "directory": "packages/dcbor-pattern"
24
13
  },
25
14
  "bugs": {
26
- "url": "https://github.com/leonardocustodio/bcts/issues"
15
+ "url": "https://github.com/paritytech/bcts/issues"
27
16
  },
28
17
  "main": "dist/index.cjs",
29
18
  "module": "dist/index.mjs",
@@ -68,17 +57,17 @@
68
57
  "devDependencies": {
69
58
  "@bcts/eslint": "^0.1.0",
70
59
  "@bcts/tsconfig": "^0.1.0",
71
- "@types/node": "^25.2.1",
72
- "eslint": "^9.39.2",
60
+ "@types/node": "^25.3.2",
61
+ "eslint": "^10.0.2",
73
62
  "tsdown": "^0.20.3",
74
- "typedoc": "^0.28.16",
63
+ "typedoc": "^0.28.17",
75
64
  "typescript": "^5.9.3",
76
65
  "vitest": "^4.0.18"
77
66
  },
78
67
  "dependencies": {
79
- "@bcts/dcbor": "^1.0.0-alpha.19",
80
- "@bcts/dcbor-parse": "^1.0.0-alpha.19",
81
- "@bcts/components": "^1.0.0-alpha.19",
82
- "@bcts/known-values": "^1.0.0-alpha.19"
68
+ "@bcts/dcbor": "^1.0.0-alpha.21",
69
+ "@bcts/dcbor-parse": "^1.0.0-alpha.21",
70
+ "@bcts/components": "^1.0.0-alpha.21",
71
+ "@bcts/known-values": "^1.0.0-alpha.21"
83
72
  }
84
73
  }
package/src/error.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Error types for dCBOR pattern parsing.
3
7
  *
4
8
  * This module provides error handling utilities for the dCBOR pattern
package/src/format.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Format Module for dcbor-pattern
3
7
  *
4
8
  * This module provides formatting utilities for displaying paths returned by
package/src/index.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * @bcts/dcbor-pattern - Pattern matching for dCBOR (Deterministic CBOR)
3
7
  *
4
8
  * This is a 1:1 TypeScript port of bc-dcbor-pattern-rust.
package/src/interval.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Provides an `Interval` type representing a range of values with a
3
7
  * minimum and optional maximum.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Parsing module for dCBOR patterns.
3
7
  *
4
8
  * This module provides the parser for dCBOR pattern expressions,
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * AND pattern parser.
3
7
  *
4
8
  * @module parse/meta/and-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Capture pattern parser.
3
7
  *
4
8
  * @module parse/meta/capture-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Meta parsers for dCBOR patterns.
3
7
  *
4
8
  * @module parse/meta
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * NOT pattern parser.
3
7
  *
4
8
  * @module parse/meta/not-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * OR pattern parser - the top-level pattern parser.
3
7
  *
4
8
  * @module parse/meta/or-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Primary pattern parser - handles atomic patterns.
3
7
  *
4
8
  * @module parse/meta/primary-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Repeat pattern parser (quantifiers).
3
7
  *
4
8
  * @module parse/meta/repeat-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Search pattern parser.
3
7
  *
4
8
  * @module parse/meta/search-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Parse registry for resolving circular dependencies between parsers.
3
7
  *
4
8
  * @module parse/parse-registry
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Array pattern parser.
3
7
  *
4
8
  * @module parse/structure/array-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Structure parsers for dCBOR patterns.
3
7
  *
4
8
  * @module parse/structure
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Map pattern parser.
3
7
  *
4
8
  * @module parse/structure/map-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Tagged pattern parser.
3
7
  *
4
8
  * Supports the following syntax:
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Token types and Lexer for the dCBOR pattern language.
3
7
  *
4
8
  * This module provides tokenization for dCBOR pattern expressions,
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Bool pattern parser.
3
7
  *
4
8
  * @module parse/value/bool-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * ByteString pattern parser.
3
7
  *
4
8
  * @module parse/value/bytestring-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Date pattern parser.
3
7
  *
4
8
  * @module parse/value/date-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Digest pattern parser.
3
7
  *
4
8
  * @module parse/value/digest-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Value parsers for dCBOR patterns.
3
7
  *
4
8
  * @module parse/value
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * KnownValue pattern parser.
3
7
  *
4
8
  * @module parse/value/known-value-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Null pattern parser.
3
7
  *
4
8
  * @module parse/value/null-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Number pattern parser.
3
7
  *
4
8
  * @module parse/value/number-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Text pattern parser.
3
7
  *
4
8
  * @module parse/value/text-parser
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Pattern types for dCBOR pattern matching.
3
7
  *
4
8
  * This module provides the core Pattern type and its variants for
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Late-binding registry for pattern matching functions.
3
7
  * This avoids circular dependencies between pattern modules.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Matcher interface for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/matcher
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * And pattern for dCBOR pattern matching.
3
7
  * Matches if all contained patterns match.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Any pattern for dCBOR pattern matching.
3
7
  * Always matches any CBOR value.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Capture pattern for dCBOR pattern matching.
3
7
  * Captures matched values with a name.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Meta patterns for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/meta
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Not pattern for dCBOR pattern matching.
3
7
  * Matches if the inner pattern does NOT match.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Or pattern for dCBOR pattern matching.
3
7
  * Matches if any contained pattern matches.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Repeat pattern for dCBOR pattern matching.
3
7
  * Matches with repetition based on a quantifier.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Search pattern for dCBOR pattern matching.
3
7
  * Searches the entire CBOR tree for matches.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Sequence pattern for dCBOR pattern matching.
3
7
  * Matches a sequence of patterns in order.
4
8
  *
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Sequence assigner for array pattern matching.
3
7
  *
4
8
  * Handles element-to-pattern assignment logic, encapsulating the complex logic
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Generic backtracking framework for array pattern matching.
3
7
  *
4
8
  * This module provides a generic backtracking algorithm that can work with
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Helper functions for array pattern matching.
3
7
  *
4
8
  * @module pattern/structure/array-pattern/helpers
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Array pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/structure/array-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Structure patterns for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/structure
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Map pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/structure/map-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Tagged pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/structure/tagged-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Boolean pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/bool-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Byte array utility functions.
3
7
  *
4
8
  * @module pattern/value/bytes-utils
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * ByteString pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/bytestring-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Date pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/date-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Digest pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/digest-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Value patterns for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * KnownValue pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/known-value-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Null pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/null-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Number pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/number-pattern
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Text pattern for dCBOR pattern matching.
3
7
  *
4
8
  * @module pattern/value/text-pattern
package/src/pattern/vm.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Tiny Thompson-style VM for walking dCBOR trees.
3
7
  *
4
8
  * The VM runs byte-code produced by Pattern compile methods.
package/src/quantifier.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * Copyright © 2023-2026 Blockchain Commons, LLC
3
+ * Copyright © 2025-2026 Parity Technologies
4
+ *
5
+ *
2
6
  * Quantifier for pattern repetition.
3
7
  *
4
8
  * This module provides the Quantifier class which combines an interval