@bcts/dcbor-pattern 1.0.0-alpha.20 → 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.
- package/LICENSE +2 -1
- package/README.md +1 -1
- package/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +28 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +28 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -22
- package/src/error.ts +4 -0
- package/src/format.ts +4 -0
- package/src/index.ts +4 -0
- package/src/interval.ts +4 -0
- package/src/parse/index.ts +4 -0
- package/src/parse/meta/and-parser.ts +4 -0
- package/src/parse/meta/capture-parser.ts +4 -0
- package/src/parse/meta/index.ts +4 -0
- package/src/parse/meta/not-parser.ts +4 -0
- package/src/parse/meta/or-parser.ts +4 -0
- package/src/parse/meta/primary-parser.ts +4 -0
- package/src/parse/meta/repeat-parser.ts +4 -0
- package/src/parse/meta/search-parser.ts +4 -0
- package/src/parse/parse-registry.ts +4 -0
- package/src/parse/structure/array-parser.ts +4 -0
- package/src/parse/structure/index.ts +4 -0
- package/src/parse/structure/map-parser.ts +4 -0
- package/src/parse/structure/tagged-parser.ts +4 -0
- package/src/parse/token.ts +4 -0
- package/src/parse/value/bool-parser.ts +4 -0
- package/src/parse/value/bytestring-parser.ts +4 -0
- package/src/parse/value/date-parser.ts +4 -0
- package/src/parse/value/digest-parser.ts +4 -0
- package/src/parse/value/index.ts +4 -0
- package/src/parse/value/known-value-parser.ts +4 -0
- package/src/parse/value/null-parser.ts +4 -0
- package/src/parse/value/number-parser.ts +4 -0
- package/src/parse/value/text-parser.ts +4 -0
- package/src/pattern/index.ts +4 -0
- package/src/pattern/match-registry.ts +4 -0
- package/src/pattern/matcher.ts +4 -0
- package/src/pattern/meta/and-pattern.ts +4 -0
- package/src/pattern/meta/any-pattern.ts +4 -0
- package/src/pattern/meta/capture-pattern.ts +4 -0
- package/src/pattern/meta/index.ts +4 -0
- package/src/pattern/meta/not-pattern.ts +4 -0
- package/src/pattern/meta/or-pattern.ts +4 -0
- package/src/pattern/meta/repeat-pattern.ts +4 -0
- package/src/pattern/meta/search-pattern.ts +4 -0
- package/src/pattern/meta/sequence-pattern.ts +4 -0
- package/src/pattern/structure/array-pattern/assigner.ts +4 -0
- package/src/pattern/structure/array-pattern/backtrack.ts +4 -0
- package/src/pattern/structure/array-pattern/helpers.ts +4 -0
- package/src/pattern/structure/array-pattern/index.ts +4 -0
- package/src/pattern/structure/index.ts +4 -0
- package/src/pattern/structure/map-pattern.ts +4 -0
- package/src/pattern/structure/tagged-pattern.ts +4 -0
- package/src/pattern/value/bool-pattern.ts +4 -0
- package/src/pattern/value/bytes-utils.ts +4 -0
- package/src/pattern/value/bytestring-pattern.ts +4 -0
- package/src/pattern/value/date-pattern.ts +4 -0
- package/src/pattern/value/digest-pattern.ts +4 -0
- package/src/pattern/value/index.ts +4 -0
- package/src/pattern/value/known-value-pattern.ts +4 -0
- package/src/pattern/value/null-pattern.ts +4 -0
- package/src/pattern/value/number-pattern.ts +4 -0
- package/src/pattern/value/text-pattern.ts +4 -0
- package/src/pattern/vm.ts +4 -0
- package/src/quantifier.ts +4 -0
- package/src/reluctance.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -207,6 +207,10 @@ var PatternError = class extends globalThis.Error {
|
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region src/reluctance.ts
|
|
209
209
|
/**
|
|
210
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
211
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
212
|
+
*
|
|
213
|
+
*
|
|
210
214
|
* Reluctance for quantifiers.
|
|
211
215
|
*
|
|
212
216
|
* This module defines the matching behavior for quantified patterns,
|
|
@@ -268,6 +272,10 @@ const reluctanceSuffix = (reluctance) => {
|
|
|
268
272
|
//#endregion
|
|
269
273
|
//#region src/interval.ts
|
|
270
274
|
/**
|
|
275
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
276
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
277
|
+
*
|
|
278
|
+
*
|
|
271
279
|
* Provides an `Interval` type representing a range of values with a
|
|
272
280
|
* minimum and optional maximum.
|
|
273
281
|
*
|
|
@@ -462,6 +470,10 @@ const DEFAULT_INTERVAL = Interval.exactly(1);
|
|
|
462
470
|
//#endregion
|
|
463
471
|
//#region src/quantifier.ts
|
|
464
472
|
/**
|
|
473
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
474
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
475
|
+
*
|
|
476
|
+
*
|
|
465
477
|
* Quantifier for pattern repetition.
|
|
466
478
|
*
|
|
467
479
|
* This module provides the Quantifier class which combines an interval
|
|
@@ -623,6 +635,10 @@ const DEFAULT_QUANTIFIER = Quantifier.exactly(1);
|
|
|
623
635
|
//#endregion
|
|
624
636
|
//#region src/format.ts
|
|
625
637
|
/**
|
|
638
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
639
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
640
|
+
*
|
|
641
|
+
*
|
|
626
642
|
* Format Module for dcbor-pattern
|
|
627
643
|
*
|
|
628
644
|
* This module provides formatting utilities for displaying paths returned by
|
|
@@ -1174,6 +1190,10 @@ const textPatternDisplay = (pattern) => {
|
|
|
1174
1190
|
//#endregion
|
|
1175
1191
|
//#region src/pattern/value/bytes-utils.ts
|
|
1176
1192
|
/**
|
|
1193
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1194
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1195
|
+
*
|
|
1196
|
+
*
|
|
1177
1197
|
* Byte array utility functions.
|
|
1178
1198
|
*
|
|
1179
1199
|
* @module pattern/value/bytes-utils
|
|
@@ -4246,6 +4266,10 @@ setPathsWithCapturesDirectFn(pathsWithCapturesDirect);
|
|
|
4246
4266
|
//#endregion
|
|
4247
4267
|
//#region src/parse/token.ts
|
|
4248
4268
|
/**
|
|
4269
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4270
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4271
|
+
*
|
|
4272
|
+
*
|
|
4249
4273
|
* Token types and Lexer for the dCBOR pattern language.
|
|
4250
4274
|
*
|
|
4251
4275
|
* This module provides tokenization for dCBOR pattern expressions,
|
|
@@ -5845,6 +5869,10 @@ const wrapInRepeat = (pattern, quantifier) => ({
|
|
|
5845
5869
|
//#endregion
|
|
5846
5870
|
//#region src/parse/meta/primary-parser.ts
|
|
5847
5871
|
/**
|
|
5872
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5873
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5874
|
+
*
|
|
5875
|
+
*
|
|
5848
5876
|
* Primary pattern parser - handles atomic patterns.
|
|
5849
5877
|
*
|
|
5850
5878
|
* @module parse/meta/primary-parser
|