@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/dist/index.iife.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
var bctsEnvelopePattern = (function(exports, _bcts_dcbor_pattern, _bcts_known_values, _bcts_envelope, _bcts_dcbor, _bcts_dcbor_parse) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/error.ts
|
|
6
|
-
/**
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
//#region src/error.ts
|
|
4
|
+
/**
|
|
7
5
|
* Creates a successful result.
|
|
8
6
|
*/
|
|
9
7
|
function ok(value) {
|
|
@@ -216,10 +214,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
216
214
|
error
|
|
217
215
|
};
|
|
218
216
|
}
|
|
219
|
-
|
|
220
|
-
//#
|
|
221
|
-
|
|
222
|
-
/**
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/format.ts
|
|
219
|
+
/**
|
|
223
220
|
* Creates a Summary format.
|
|
224
221
|
*/
|
|
225
222
|
function summaryFormat(maxLength) {
|
|
@@ -475,19 +472,27 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
475
472
|
function formatPaths(paths) {
|
|
476
473
|
return formatPathsOpt(paths, defaultFormatPathsOpts());
|
|
477
474
|
}
|
|
478
|
-
|
|
479
|
-
//#
|
|
480
|
-
|
|
481
|
-
/**
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region src/pattern/matcher.ts
|
|
477
|
+
/**
|
|
482
478
|
* Default implementations for Matcher methods.
|
|
483
479
|
*/
|
|
484
480
|
const MatcherDefaults = {
|
|
481
|
+
/**
|
|
482
|
+
* Default implementation of paths() - calls pathsWithCaptures and discards captures.
|
|
483
|
+
*/
|
|
485
484
|
paths(matcher, haystack) {
|
|
486
485
|
return matcher.pathsWithCaptures(haystack)[0];
|
|
487
486
|
},
|
|
487
|
+
/**
|
|
488
|
+
* Default implementation of matches() - checks if paths() returns any results.
|
|
489
|
+
*/
|
|
488
490
|
matches(matcher, haystack) {
|
|
489
491
|
return matcher.paths(haystack).length > 0;
|
|
490
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
* Default implementation of isComplex() - returns false.
|
|
495
|
+
*/
|
|
491
496
|
isComplex() {
|
|
492
497
|
return false;
|
|
493
498
|
}
|
|
@@ -575,9 +580,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
575
580
|
if (patternToStringFn === void 0) throw new Error("Pattern dispatch functions not registered");
|
|
576
581
|
return patternToStringFn(pattern);
|
|
577
582
|
}
|
|
578
|
-
|
|
579
|
-
//#
|
|
580
|
-
//#region src/pattern/leaf/bool-pattern.ts
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/pattern/leaf/bool-pattern.ts
|
|
581
585
|
let createLeafBoolPattern;
|
|
582
586
|
function registerBoolPatternFactory(factory) {
|
|
583
587
|
createLeafBoolPattern = factory;
|
|
@@ -659,9 +663,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
659
663
|
return hash;
|
|
660
664
|
}
|
|
661
665
|
};
|
|
662
|
-
|
|
663
|
-
//#
|
|
664
|
-
//#region src/pattern/leaf/null-pattern.ts
|
|
666
|
+
//#endregion
|
|
667
|
+
//#region src/pattern/leaf/null-pattern.ts
|
|
665
668
|
let createLeafNullPattern;
|
|
666
669
|
function registerNullPatternFactory(factory) {
|
|
667
670
|
createLeafNullPattern = factory;
|
|
@@ -728,9 +731,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
728
731
|
return 0;
|
|
729
732
|
}
|
|
730
733
|
};
|
|
731
|
-
|
|
732
|
-
//#
|
|
733
|
-
//#region src/pattern/leaf/number-pattern.ts
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region src/pattern/leaf/number-pattern.ts
|
|
734
736
|
let createLeafNumberPattern;
|
|
735
737
|
function registerNumberPatternFactory(factory) {
|
|
736
738
|
createLeafNumberPattern = factory;
|
|
@@ -901,9 +903,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
901
903
|
return hash;
|
|
902
904
|
}
|
|
903
905
|
};
|
|
904
|
-
|
|
905
|
-
//#
|
|
906
|
-
//#region src/pattern/leaf/text-pattern.ts
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region src/pattern/leaf/text-pattern.ts
|
|
907
908
|
let createLeafTextPattern;
|
|
908
909
|
function registerTextPatternFactory(factory) {
|
|
909
910
|
createLeafTextPattern = factory;
|
|
@@ -1006,9 +1007,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1006
1007
|
return hash;
|
|
1007
1008
|
}
|
|
1008
1009
|
};
|
|
1009
|
-
|
|
1010
|
-
//#
|
|
1011
|
-
//#region src/pattern/leaf/byte-string-pattern.ts
|
|
1010
|
+
//#endregion
|
|
1011
|
+
//#region src/pattern/leaf/byte-string-pattern.ts
|
|
1012
1012
|
let createLeafByteStringPattern;
|
|
1013
1013
|
function registerByteStringPatternFactory(factory) {
|
|
1014
1014
|
createLeafByteStringPattern = factory;
|
|
@@ -1117,9 +1117,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1117
1117
|
return hash;
|
|
1118
1118
|
}
|
|
1119
1119
|
};
|
|
1120
|
-
|
|
1121
|
-
//#
|
|
1122
|
-
//#region src/pattern/leaf/date-pattern.ts
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region src/pattern/leaf/date-pattern.ts
|
|
1123
1122
|
let createLeafDatePattern;
|
|
1124
1123
|
function registerDatePatternFactory(factory) {
|
|
1125
1124
|
createLeafDatePattern = factory;
|
|
@@ -1232,10 +1231,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1232
1231
|
return hash;
|
|
1233
1232
|
}
|
|
1234
1233
|
};
|
|
1235
|
-
|
|
1236
|
-
//#
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1234
|
+
//#endregion
|
|
1235
|
+
//#region src/pattern/leaf/array-pattern.ts
|
|
1236
|
+
/**
|
|
1239
1237
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1240
1238
|
* Copyright © 2025-2026 Parity Technologies
|
|
1241
1239
|
*
|
|
@@ -1414,9 +1412,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1414
1412
|
}
|
|
1415
1413
|
return hash;
|
|
1416
1414
|
}
|
|
1417
|
-
|
|
1418
|
-
//#
|
|
1419
|
-
//#region src/pattern/leaf/map-pattern.ts
|
|
1415
|
+
//#endregion
|
|
1416
|
+
//#region src/pattern/leaf/map-pattern.ts
|
|
1420
1417
|
let createLeafMapPattern;
|
|
1421
1418
|
function registerMapPatternFactory(factory) {
|
|
1422
1419
|
createLeafMapPattern = factory;
|
|
@@ -1505,9 +1502,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1505
1502
|
}
|
|
1506
1503
|
}
|
|
1507
1504
|
};
|
|
1508
|
-
|
|
1509
|
-
//#
|
|
1510
|
-
//#region src/pattern/leaf/known-value-pattern.ts
|
|
1505
|
+
//#endregion
|
|
1506
|
+
//#region src/pattern/leaf/known-value-pattern.ts
|
|
1511
1507
|
let createLeafKnownValuePattern;
|
|
1512
1508
|
function registerKnownValuePatternFactory(factory) {
|
|
1513
1509
|
createLeafKnownValuePattern = factory;
|
|
@@ -1626,10 +1622,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1626
1622
|
}
|
|
1627
1623
|
return hash;
|
|
1628
1624
|
}
|
|
1629
|
-
|
|
1630
|
-
//#
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1625
|
+
//#endregion
|
|
1626
|
+
//#region src/pattern/leaf/tagged-pattern.ts
|
|
1627
|
+
/**
|
|
1633
1628
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1634
1629
|
* Copyright © 2025-2026 Parity Technologies
|
|
1635
1630
|
*
|
|
@@ -1784,10 +1779,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1784
1779
|
}
|
|
1785
1780
|
return hash;
|
|
1786
1781
|
}
|
|
1787
|
-
|
|
1788
|
-
//#
|
|
1789
|
-
|
|
1790
|
-
/**
|
|
1782
|
+
//#endregion
|
|
1783
|
+
//#region src/pattern/leaf/cbor-pattern.ts
|
|
1784
|
+
/**
|
|
1791
1785
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1792
1786
|
* Copyright © 2025-2026 Parity Technologies
|
|
1793
1787
|
*
|
|
@@ -1993,10 +1987,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1993
1987
|
}
|
|
1994
1988
|
return hash;
|
|
1995
1989
|
}
|
|
1996
|
-
|
|
1997
|
-
//#
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
1990
|
+
//#endregion
|
|
1991
|
+
//#region src/pattern/leaf/index.ts
|
|
1992
|
+
/**
|
|
2000
1993
|
* Creates a CBOR leaf pattern.
|
|
2001
1994
|
*/
|
|
2002
1995
|
function leafCbor(pattern) {
|
|
@@ -2195,9 +2188,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2195
2188
|
case "KnownValue": return pattern.pattern.toString();
|
|
2196
2189
|
}
|
|
2197
2190
|
}
|
|
2198
|
-
|
|
2199
|
-
//#
|
|
2200
|
-
//#region src/pattern/structure/leaf-structure-pattern.ts
|
|
2191
|
+
//#endregion
|
|
2192
|
+
//#region src/pattern/structure/leaf-structure-pattern.ts
|
|
2201
2193
|
let createStructureLeafPattern;
|
|
2202
2194
|
function registerLeafStructurePatternFactory(factory) {
|
|
2203
2195
|
createStructureLeafPattern = factory;
|
|
@@ -2248,13 +2240,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2248
2240
|
return 0;
|
|
2249
2241
|
}
|
|
2250
2242
|
};
|
|
2251
|
-
|
|
2252
|
-
//#endregion
|
|
2253
|
-
//#region src/pattern/structure/subject-pattern.ts
|
|
2254
|
-
let createStructureSubjectPattern;
|
|
2255
|
-
function registerSubjectPatternFactory(factory) {
|
|
2256
|
-
createStructureSubjectPattern = factory;
|
|
2257
|
-
}
|
|
2243
|
+
function registerSubjectPatternFactory(factory) {}
|
|
2258
2244
|
/**
|
|
2259
2245
|
* Pattern for matching subjects in envelopes.
|
|
2260
2246
|
*
|
|
@@ -2349,9 +2335,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2349
2335
|
return this._pattern.type === "Any" ? 0 : 1;
|
|
2350
2336
|
}
|
|
2351
2337
|
};
|
|
2352
|
-
|
|
2353
|
-
//#
|
|
2354
|
-
//#region src/pattern/structure/predicate-pattern.ts
|
|
2338
|
+
//#endregion
|
|
2339
|
+
//#region src/pattern/structure/predicate-pattern.ts
|
|
2355
2340
|
let createStructurePredicatePattern;
|
|
2356
2341
|
function registerPredicatePatternFactory(factory) {
|
|
2357
2342
|
createStructurePredicatePattern = factory;
|
|
@@ -2447,9 +2432,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2447
2432
|
return this._pattern.type === "Any" ? 0 : 1;
|
|
2448
2433
|
}
|
|
2449
2434
|
};
|
|
2450
|
-
|
|
2451
|
-
//#
|
|
2452
|
-
//#region src/pattern/structure/object-pattern.ts
|
|
2435
|
+
//#endregion
|
|
2436
|
+
//#region src/pattern/structure/object-pattern.ts
|
|
2453
2437
|
let createStructureObjectPattern;
|
|
2454
2438
|
function registerObjectPatternFactory(factory) {
|
|
2455
2439
|
createStructureObjectPattern = factory;
|
|
@@ -2545,9 +2529,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2545
2529
|
return this._pattern.type === "Any" ? 0 : 1;
|
|
2546
2530
|
}
|
|
2547
2531
|
};
|
|
2548
|
-
|
|
2549
|
-
//#
|
|
2550
|
-
//#region src/pattern/structure/assertions-pattern.ts
|
|
2532
|
+
//#endregion
|
|
2533
|
+
//#region src/pattern/structure/assertions-pattern.ts
|
|
2551
2534
|
let createStructureAssertionsPattern;
|
|
2552
2535
|
function registerAssertionsPatternFactory(factory) {
|
|
2553
2536
|
createStructureAssertionsPattern = factory;
|
|
@@ -2703,9 +2686,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2703
2686
|
}
|
|
2704
2687
|
}
|
|
2705
2688
|
};
|
|
2706
|
-
|
|
2707
|
-
//#
|
|
2708
|
-
//#region src/pattern/structure/digest-pattern.ts
|
|
2689
|
+
//#endregion
|
|
2690
|
+
//#region src/pattern/structure/digest-pattern.ts
|
|
2709
2691
|
let createStructureDigestPattern;
|
|
2710
2692
|
function registerDigestPatternFactory(factory) {
|
|
2711
2693
|
createStructureDigestPattern = factory;
|
|
@@ -2861,9 +2843,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2861
2843
|
}
|
|
2862
2844
|
}
|
|
2863
2845
|
};
|
|
2864
|
-
|
|
2865
|
-
//#
|
|
2866
|
-
//#region src/pattern/structure/node-pattern.ts
|
|
2846
|
+
//#endregion
|
|
2847
|
+
//#region src/pattern/structure/node-pattern.ts
|
|
2867
2848
|
let createStructureNodePattern;
|
|
2868
2849
|
function registerNodePatternFactory(factory) {
|
|
2869
2850
|
createStructureNodePattern = factory;
|
|
@@ -2987,9 +2968,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2987
2968
|
}
|
|
2988
2969
|
}
|
|
2989
2970
|
};
|
|
2990
|
-
|
|
2991
|
-
//#
|
|
2992
|
-
//#region src/pattern/structure/obscured-pattern.ts
|
|
2971
|
+
//#endregion
|
|
2972
|
+
//#region src/pattern/structure/obscured-pattern.ts
|
|
2993
2973
|
let createStructureObscuredPattern;
|
|
2994
2974
|
function registerObscuredPatternFactory(factory) {
|
|
2995
2975
|
createStructureObscuredPattern = factory;
|
|
@@ -3091,9 +3071,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3091
3071
|
}
|
|
3092
3072
|
}
|
|
3093
3073
|
};
|
|
3094
|
-
|
|
3095
|
-
//#
|
|
3096
|
-
//#region src/pattern/structure/wrapped-pattern.ts
|
|
3074
|
+
//#endregion
|
|
3075
|
+
//#region src/pattern/structure/wrapped-pattern.ts
|
|
3097
3076
|
let createStructureWrappedPattern;
|
|
3098
3077
|
let dispatchPatternPathsWithCaptures;
|
|
3099
3078
|
let dispatchPatternCompile;
|
|
@@ -3234,10 +3213,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3234
3213
|
return this._pattern.type === "Any" ? 0 : 1;
|
|
3235
3214
|
}
|
|
3236
3215
|
};
|
|
3237
|
-
|
|
3238
|
-
//#
|
|
3239
|
-
|
|
3240
|
-
/**
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region src/pattern/structure/index.ts
|
|
3218
|
+
/**
|
|
3241
3219
|
* Creates a Leaf structure pattern.
|
|
3242
3220
|
*/
|
|
3243
3221
|
function structureLeaf(pattern) {
|
|
@@ -3406,9 +3384,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3406
3384
|
case "Wrapped": return pattern.pattern.toString();
|
|
3407
3385
|
}
|
|
3408
3386
|
}
|
|
3409
|
-
|
|
3410
|
-
//#
|
|
3411
|
-
//#region src/pattern/vm.ts
|
|
3387
|
+
//#endregion
|
|
3388
|
+
//#region src/pattern/vm.ts
|
|
3412
3389
|
let _patternPathsWithCaptures$1;
|
|
3413
3390
|
let _patternMatches;
|
|
3414
3391
|
let _patternPaths;
|
|
@@ -4053,9 +4030,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4053
4030
|
}
|
|
4054
4031
|
}
|
|
4055
4032
|
}
|
|
4056
|
-
|
|
4057
|
-
//#
|
|
4058
|
-
//#region src/pattern/meta/any-pattern.ts
|
|
4033
|
+
//#endregion
|
|
4034
|
+
//#region src/pattern/meta/any-pattern.ts
|
|
4059
4035
|
let createMetaAnyPattern;
|
|
4060
4036
|
function registerAnyPatternFactory(factory) {
|
|
4061
4037
|
createMetaAnyPattern = factory;
|
|
@@ -4105,13 +4081,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4105
4081
|
return 0;
|
|
4106
4082
|
}
|
|
4107
4083
|
};
|
|
4108
|
-
|
|
4109
|
-
//#endregion
|
|
4110
|
-
//#region src/pattern/meta/and-pattern.ts
|
|
4111
|
-
let createMetaAndPattern;
|
|
4112
|
-
function registerAndPatternFactory(factory) {
|
|
4113
|
-
createMetaAndPattern = factory;
|
|
4114
|
-
}
|
|
4084
|
+
function registerAndPatternFactory(factory) {}
|
|
4115
4085
|
/**
|
|
4116
4086
|
* A pattern that matches if all contained patterns match.
|
|
4117
4087
|
*
|
|
@@ -4167,13 +4137,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4167
4137
|
return this._patterns.length;
|
|
4168
4138
|
}
|
|
4169
4139
|
};
|
|
4170
|
-
|
|
4171
|
-
//#endregion
|
|
4172
|
-
//#region src/pattern/meta/or-pattern.ts
|
|
4173
|
-
let createMetaOrPattern;
|
|
4174
|
-
function registerOrPatternFactory(factory) {
|
|
4175
|
-
createMetaOrPattern = factory;
|
|
4176
|
-
}
|
|
4140
|
+
function registerOrPatternFactory(factory) {}
|
|
4177
4141
|
/**
|
|
4178
4142
|
* A pattern that matches if any contained pattern matches.
|
|
4179
4143
|
*
|
|
@@ -4267,13 +4231,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4267
4231
|
return this._patterns.length;
|
|
4268
4232
|
}
|
|
4269
4233
|
};
|
|
4270
|
-
|
|
4271
|
-
//#endregion
|
|
4272
|
-
//#region src/pattern/meta/not-pattern.ts
|
|
4273
|
-
let createMetaNotPattern;
|
|
4274
|
-
function registerNotPatternFactory(factory) {
|
|
4275
|
-
createMetaNotPattern = factory;
|
|
4276
|
-
}
|
|
4234
|
+
function registerNotPatternFactory(factory) {}
|
|
4277
4235
|
/**
|
|
4278
4236
|
* A pattern that negates another pattern; matches when the inner pattern does not match.
|
|
4279
4237
|
*
|
|
@@ -4332,13 +4290,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4332
4290
|
return 1;
|
|
4333
4291
|
}
|
|
4334
4292
|
};
|
|
4335
|
-
|
|
4336
|
-
//#endregion
|
|
4337
|
-
//#region src/pattern/meta/capture-pattern.ts
|
|
4338
|
-
let createMetaCapturePattern;
|
|
4339
|
-
function registerCapturePatternFactory(factory) {
|
|
4340
|
-
createMetaCapturePattern = factory;
|
|
4341
|
-
}
|
|
4293
|
+
function registerCapturePatternFactory(factory) {}
|
|
4342
4294
|
/**
|
|
4343
4295
|
* A pattern that captures a match with a name.
|
|
4344
4296
|
*
|
|
@@ -4417,13 +4369,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4417
4369
|
return hash;
|
|
4418
4370
|
}
|
|
4419
4371
|
};
|
|
4420
|
-
|
|
4421
|
-
//#endregion
|
|
4422
|
-
//#region src/pattern/meta/search-pattern.ts
|
|
4423
|
-
let createMetaSearchPattern;
|
|
4424
|
-
function registerSearchPatternFactory(factory) {
|
|
4425
|
-
createMetaSearchPattern = factory;
|
|
4426
|
-
}
|
|
4372
|
+
function registerSearchPatternFactory(factory) {}
|
|
4427
4373
|
/**
|
|
4428
4374
|
* A pattern that searches the entire envelope tree for matches.
|
|
4429
4375
|
*
|
|
@@ -4550,13 +4496,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4550
4496
|
const p = pattern;
|
|
4551
4497
|
if (p.collectCaptureNames !== void 0) p.collectCaptureNames(out);
|
|
4552
4498
|
}
|
|
4553
|
-
|
|
4554
|
-
//#endregion
|
|
4555
|
-
//#region src/pattern/meta/traverse-pattern.ts
|
|
4556
|
-
let createMetaTraversePattern;
|
|
4557
|
-
function registerTraversePatternFactory(factory) {
|
|
4558
|
-
createMetaTraversePattern = factory;
|
|
4559
|
-
}
|
|
4499
|
+
function registerTraversePatternFactory(factory) {}
|
|
4560
4500
|
let _patternPathsWithCaptures;
|
|
4561
4501
|
let _patternCompile;
|
|
4562
4502
|
let _patternIsComplex;
|
|
@@ -4650,13 +4590,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4650
4590
|
return this.patterns().length;
|
|
4651
4591
|
}
|
|
4652
4592
|
};
|
|
4653
|
-
|
|
4654
|
-
//#endregion
|
|
4655
|
-
//#region src/pattern/meta/group-pattern.ts
|
|
4656
|
-
let createMetaGroupPattern;
|
|
4657
|
-
function registerGroupPatternFactory(factory) {
|
|
4658
|
-
createMetaGroupPattern = factory;
|
|
4659
|
-
}
|
|
4593
|
+
function registerGroupPatternFactory(factory) {}
|
|
4660
4594
|
/**
|
|
4661
4595
|
* A pattern that matches with repetition.
|
|
4662
4596
|
*
|
|
@@ -4732,10 +4666,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4732
4666
|
return this._quantifier.min() * 31 + (this._quantifier.max() ?? 0);
|
|
4733
4667
|
}
|
|
4734
4668
|
};
|
|
4735
|
-
|
|
4736
|
-
//#
|
|
4737
|
-
|
|
4738
|
-
/**
|
|
4669
|
+
//#endregion
|
|
4670
|
+
//#region src/pattern/meta/index.ts
|
|
4671
|
+
/**
|
|
4739
4672
|
* Creates an Any meta pattern.
|
|
4740
4673
|
*/
|
|
4741
4674
|
function metaAny(pattern) {
|
|
@@ -4922,10 +4855,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4922
4855
|
const p = pattern;
|
|
4923
4856
|
if (p.collectCaptureNames !== void 0) p.collectCaptureNames(out);
|
|
4924
4857
|
}
|
|
4925
|
-
|
|
4926
|
-
//#
|
|
4927
|
-
|
|
4928
|
-
/**
|
|
4858
|
+
//#endregion
|
|
4859
|
+
//#region src/pattern/dcbor-integration.ts
|
|
4860
|
+
/**
|
|
4929
4861
|
* Convert a dcbor-pattern Pattern to a bc-envelope-pattern Pattern.
|
|
4930
4862
|
*
|
|
4931
4863
|
* This function serves as the bridge between the two pattern systems,
|
|
@@ -5055,10 +4987,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5055
4987
|
});
|
|
5056
4988
|
}
|
|
5057
4989
|
}
|
|
5058
|
-
|
|
5059
|
-
//#
|
|
5060
|
-
|
|
5061
|
-
/**
|
|
4990
|
+
//#endregion
|
|
4991
|
+
//#region src/pattern/index.ts
|
|
4992
|
+
/**
|
|
5062
4993
|
* Creates a Leaf pattern.
|
|
5063
4994
|
*/
|
|
5064
4995
|
function patternLeaf(leaf) {
|
|
@@ -5591,10 +5522,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5591
5522
|
toString: patternToString
|
|
5592
5523
|
});
|
|
5593
5524
|
registerTraverseDispatchFunctions(patternPathsWithCaptures, patternCompile, patternIsComplex);
|
|
5594
|
-
|
|
5595
|
-
//#
|
|
5596
|
-
|
|
5597
|
-
/**
|
|
5525
|
+
//#endregion
|
|
5526
|
+
//#region src/parse/token.ts
|
|
5527
|
+
/**
|
|
5598
5528
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5599
5529
|
* Copyright © 2025-2026 Parity Technologies
|
|
5600
5530
|
*
|
|
@@ -6335,10 +6265,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6335
6265
|
}
|
|
6336
6266
|
}
|
|
6337
6267
|
};
|
|
6338
|
-
|
|
6339
|
-
//#
|
|
6340
|
-
|
|
6341
|
-
/**
|
|
6268
|
+
//#endregion
|
|
6269
|
+
//#region src/parse/index.ts
|
|
6270
|
+
/**
|
|
6342
6271
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6343
6272
|
* Copyright © 2025-2026 Parity Technologies
|
|
6344
6273
|
*
|
|
@@ -6968,265 +6897,264 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6968
6897
|
});
|
|
6969
6898
|
return ok(unwrapMatching(inner.value));
|
|
6970
6899
|
}
|
|
6971
|
-
|
|
6972
|
-
//#
|
|
6973
|
-
|
|
6974
|
-
/**
|
|
6900
|
+
//#endregion
|
|
6901
|
+
//#region src/index.ts
|
|
6902
|
+
/**
|
|
6975
6903
|
* Package version.
|
|
6976
6904
|
*/
|
|
6977
6905
|
const VERSION = "1.0.0-alpha.11";
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
exports.
|
|
6981
|
-
exports.
|
|
6982
|
-
exports.
|
|
6983
|
-
exports.
|
|
6984
|
-
exports.
|
|
6985
|
-
exports.
|
|
6986
|
-
exports.
|
|
6987
|
-
exports.
|
|
6988
|
-
exports.
|
|
6989
|
-
exports.
|
|
6990
|
-
exports.
|
|
6991
|
-
exports
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
exports.
|
|
6999
|
-
exports.
|
|
7000
|
-
exports.
|
|
7001
|
-
exports.
|
|
7002
|
-
exports.
|
|
7003
|
-
exports.
|
|
7004
|
-
exports.
|
|
7005
|
-
exports.
|
|
7006
|
-
exports.
|
|
7007
|
-
exports.
|
|
7008
|
-
exports.
|
|
7009
|
-
exports.
|
|
7010
|
-
exports
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
exports.
|
|
7024
|
-
exports.
|
|
7025
|
-
exports.
|
|
7026
|
-
exports.
|
|
7027
|
-
exports.
|
|
7028
|
-
exports.
|
|
7029
|
-
exports.
|
|
7030
|
-
exports.
|
|
7031
|
-
exports.
|
|
7032
|
-
exports.
|
|
7033
|
-
exports.
|
|
7034
|
-
exports.
|
|
7035
|
-
exports.
|
|
7036
|
-
exports.
|
|
7037
|
-
exports.
|
|
7038
|
-
exports.
|
|
7039
|
-
exports.
|
|
7040
|
-
exports.
|
|
7041
|
-
exports.
|
|
7042
|
-
exports.
|
|
7043
|
-
exports.
|
|
7044
|
-
exports.
|
|
7045
|
-
exports.
|
|
7046
|
-
exports.
|
|
7047
|
-
exports.
|
|
7048
|
-
exports.
|
|
7049
|
-
exports.
|
|
7050
|
-
exports.
|
|
7051
|
-
exports.
|
|
7052
|
-
exports.
|
|
7053
|
-
exports.
|
|
7054
|
-
exports.
|
|
7055
|
-
exports.
|
|
7056
|
-
exports.
|
|
7057
|
-
exports.
|
|
7058
|
-
exports.
|
|
7059
|
-
exports.
|
|
7060
|
-
exports.
|
|
7061
|
-
exports.
|
|
7062
|
-
exports.
|
|
7063
|
-
exports.
|
|
7064
|
-
exports.
|
|
7065
|
-
exports.
|
|
7066
|
-
exports.
|
|
7067
|
-
exports.
|
|
7068
|
-
exports.
|
|
7069
|
-
exports.
|
|
7070
|
-
exports.
|
|
7071
|
-
exports.
|
|
7072
|
-
exports.
|
|
7073
|
-
exports.
|
|
7074
|
-
exports.
|
|
7075
|
-
exports.
|
|
7076
|
-
exports.
|
|
7077
|
-
exports.
|
|
7078
|
-
exports.
|
|
7079
|
-
exports.
|
|
7080
|
-
exports.
|
|
7081
|
-
exports.
|
|
7082
|
-
exports.
|
|
7083
|
-
exports.
|
|
7084
|
-
exports.
|
|
7085
|
-
exports.
|
|
7086
|
-
exports.
|
|
7087
|
-
exports.
|
|
7088
|
-
exports.
|
|
7089
|
-
exports.
|
|
7090
|
-
exports.
|
|
7091
|
-
exports.
|
|
7092
|
-
exports.
|
|
7093
|
-
exports.
|
|
7094
|
-
exports.
|
|
7095
|
-
exports.
|
|
7096
|
-
exports.
|
|
7097
|
-
exports.
|
|
7098
|
-
exports.
|
|
7099
|
-
exports.
|
|
7100
|
-
exports.
|
|
7101
|
-
exports.
|
|
7102
|
-
exports.
|
|
7103
|
-
exports.
|
|
7104
|
-
exports.
|
|
7105
|
-
exports.
|
|
7106
|
-
exports.
|
|
7107
|
-
exports.
|
|
7108
|
-
exports.
|
|
7109
|
-
exports.
|
|
7110
|
-
exports.
|
|
7111
|
-
exports.
|
|
7112
|
-
exports.
|
|
7113
|
-
exports.
|
|
7114
|
-
exports.
|
|
7115
|
-
exports.
|
|
7116
|
-
exports.
|
|
7117
|
-
exports.
|
|
7118
|
-
exports.
|
|
7119
|
-
exports.
|
|
7120
|
-
exports.
|
|
7121
|
-
exports.
|
|
7122
|
-
exports.
|
|
7123
|
-
exports.
|
|
7124
|
-
exports.
|
|
7125
|
-
exports.
|
|
7126
|
-
exports.
|
|
7127
|
-
exports.
|
|
7128
|
-
exports.
|
|
7129
|
-
exports.
|
|
7130
|
-
exports.
|
|
7131
|
-
exports.
|
|
7132
|
-
exports.
|
|
7133
|
-
exports.
|
|
7134
|
-
exports.
|
|
7135
|
-
exports.
|
|
7136
|
-
exports.
|
|
7137
|
-
exports.
|
|
7138
|
-
exports.
|
|
7139
|
-
exports.
|
|
7140
|
-
exports.
|
|
7141
|
-
exports.
|
|
7142
|
-
exports.
|
|
7143
|
-
exports.
|
|
7144
|
-
exports.
|
|
7145
|
-
exports.
|
|
7146
|
-
exports.
|
|
7147
|
-
exports.
|
|
7148
|
-
exports.
|
|
7149
|
-
exports.
|
|
7150
|
-
exports.
|
|
7151
|
-
exports.
|
|
7152
|
-
exports.
|
|
7153
|
-
exports.
|
|
7154
|
-
exports.
|
|
7155
|
-
exports.
|
|
7156
|
-
exports.
|
|
7157
|
-
exports.
|
|
7158
|
-
exports.
|
|
7159
|
-
exports.
|
|
7160
|
-
exports.
|
|
7161
|
-
exports.
|
|
7162
|
-
exports.
|
|
7163
|
-
exports.
|
|
7164
|
-
exports.
|
|
7165
|
-
exports.
|
|
7166
|
-
exports.
|
|
7167
|
-
exports.
|
|
7168
|
-
exports.
|
|
7169
|
-
exports.
|
|
7170
|
-
exports.
|
|
7171
|
-
exports.
|
|
7172
|
-
exports.
|
|
7173
|
-
exports.
|
|
7174
|
-
exports.
|
|
7175
|
-
exports.
|
|
7176
|
-
exports.
|
|
7177
|
-
exports.
|
|
7178
|
-
exports.
|
|
7179
|
-
exports.
|
|
7180
|
-
exports.
|
|
7181
|
-
exports.
|
|
7182
|
-
exports.
|
|
7183
|
-
exports.
|
|
7184
|
-
exports.
|
|
7185
|
-
exports.
|
|
7186
|
-
exports.
|
|
7187
|
-
exports.
|
|
7188
|
-
exports.
|
|
7189
|
-
exports.
|
|
7190
|
-
exports.
|
|
7191
|
-
exports.
|
|
7192
|
-
exports.
|
|
7193
|
-
exports.
|
|
7194
|
-
exports.
|
|
7195
|
-
exports.
|
|
7196
|
-
exports.
|
|
7197
|
-
exports.
|
|
7198
|
-
exports.
|
|
7199
|
-
exports.
|
|
7200
|
-
exports.
|
|
7201
|
-
exports.
|
|
7202
|
-
exports.
|
|
7203
|
-
exports.
|
|
7204
|
-
exports.
|
|
7205
|
-
exports.
|
|
7206
|
-
exports.
|
|
7207
|
-
exports.
|
|
7208
|
-
exports.
|
|
7209
|
-
exports.
|
|
7210
|
-
exports.
|
|
7211
|
-
exports.
|
|
7212
|
-
exports.
|
|
7213
|
-
exports.
|
|
7214
|
-
exports.
|
|
7215
|
-
exports.
|
|
7216
|
-
exports.
|
|
7217
|
-
exports.
|
|
7218
|
-
exports.
|
|
7219
|
-
exports.
|
|
7220
|
-
exports.
|
|
7221
|
-
exports.
|
|
7222
|
-
exports.
|
|
7223
|
-
exports.
|
|
7224
|
-
exports.
|
|
7225
|
-
exports.
|
|
7226
|
-
exports.
|
|
7227
|
-
exports.
|
|
7228
|
-
exports.
|
|
7229
|
-
exports
|
|
7230
|
-
return exports;
|
|
6906
|
+
//#endregion
|
|
6907
|
+
exports.AndPattern = AndPattern;
|
|
6908
|
+
exports.AnyPattern = AnyPattern;
|
|
6909
|
+
exports.ArrayPattern = ArrayPattern;
|
|
6910
|
+
exports.AssertionsPattern = AssertionsPattern;
|
|
6911
|
+
exports.BoolPattern = BoolPattern;
|
|
6912
|
+
exports.ByteStringPattern = ByteStringPattern;
|
|
6913
|
+
exports.CBORPattern = CBORPattern;
|
|
6914
|
+
exports.CapturePattern = CapturePattern;
|
|
6915
|
+
exports.DatePattern = DatePattern;
|
|
6916
|
+
exports.DigestPattern = DigestPattern;
|
|
6917
|
+
exports.FormatPathsOptsBuilder = FormatPathsOptsBuilder;
|
|
6918
|
+
exports.GroupPattern = GroupPattern;
|
|
6919
|
+
Object.defineProperty(exports, "Interval", {
|
|
6920
|
+
enumerable: true,
|
|
6921
|
+
get: function() {
|
|
6922
|
+
return _bcts_dcbor_pattern.Interval;
|
|
6923
|
+
}
|
|
6924
|
+
});
|
|
6925
|
+
exports.KnownValuePattern = KnownValuePattern;
|
|
6926
|
+
exports.LeafStructurePattern = LeafStructurePattern;
|
|
6927
|
+
exports.Lexer = Lexer;
|
|
6928
|
+
exports.MapPattern = MapPattern;
|
|
6929
|
+
exports.MatcherDefaults = MatcherDefaults;
|
|
6930
|
+
exports.NodePattern = NodePattern;
|
|
6931
|
+
exports.NotPattern = NotPattern;
|
|
6932
|
+
exports.NullPattern = NullPattern;
|
|
6933
|
+
exports.NumberPattern = NumberPattern;
|
|
6934
|
+
exports.ObjectPattern = ObjectPattern;
|
|
6935
|
+
exports.ObscuredPattern = ObscuredPattern;
|
|
6936
|
+
exports.OrPattern = OrPattern;
|
|
6937
|
+
exports.PredicatePattern = PredicatePattern;
|
|
6938
|
+
Object.defineProperty(exports, "Quantifier", {
|
|
6939
|
+
enumerable: true,
|
|
6940
|
+
get: function() {
|
|
6941
|
+
return _bcts_dcbor_pattern.Quantifier;
|
|
6942
|
+
}
|
|
6943
|
+
});
|
|
6944
|
+
Object.defineProperty(exports, "Reluctance", {
|
|
6945
|
+
enumerable: true,
|
|
6946
|
+
get: function() {
|
|
6947
|
+
return _bcts_dcbor_pattern.Reluctance;
|
|
6948
|
+
}
|
|
6949
|
+
});
|
|
6950
|
+
exports.SearchPattern = SearchPattern;
|
|
6951
|
+
exports.SubjectPattern = SubjectPattern;
|
|
6952
|
+
exports.TaggedPattern = TaggedPattern;
|
|
6953
|
+
exports.TextPattern = TextPattern;
|
|
6954
|
+
exports.TraversePattern = TraversePattern;
|
|
6955
|
+
exports.VERSION = VERSION;
|
|
6956
|
+
exports.WrappedPattern = WrappedPattern;
|
|
6957
|
+
exports.and = and;
|
|
6958
|
+
exports.any = any;
|
|
6959
|
+
exports.anyArray = anyArray;
|
|
6960
|
+
exports.anyAssertion = anyAssertion;
|
|
6961
|
+
exports.anyBool = anyBool;
|
|
6962
|
+
exports.anyByteString = anyByteString;
|
|
6963
|
+
exports.anyCbor = anyCbor;
|
|
6964
|
+
exports.anyDate = anyDate;
|
|
6965
|
+
exports.anyKnownValue = anyKnownValue;
|
|
6966
|
+
exports.anyMap = anyMap;
|
|
6967
|
+
exports.anyNode = anyNode;
|
|
6968
|
+
exports.anyNumber = anyNumber;
|
|
6969
|
+
exports.anyObject = anyObject;
|
|
6970
|
+
exports.anyPredicate = anyPredicate;
|
|
6971
|
+
exports.anySubject = anySubject;
|
|
6972
|
+
exports.anyTag = anyTag;
|
|
6973
|
+
exports.anyText = anyText;
|
|
6974
|
+
exports.assertionWithObject = assertionWithObject;
|
|
6975
|
+
exports.assertionWithPredicate = assertionWithPredicate;
|
|
6976
|
+
exports.axisChildren = axisChildren;
|
|
6977
|
+
exports.bool = bool;
|
|
6978
|
+
exports.byteString = byteString;
|
|
6979
|
+
exports.capture = capture;
|
|
6980
|
+
exports.cborPattern = cborPattern;
|
|
6981
|
+
exports.cborValue = cborValue;
|
|
6982
|
+
exports.compile = compile;
|
|
6983
|
+
exports.compileAsAtomic = compileAsAtomic;
|
|
6984
|
+
exports.compressed = compressed;
|
|
6985
|
+
exports.convertDcborPatternToEnvelopePattern = convertDcborPatternToEnvelopePattern;
|
|
6986
|
+
exports.date = date;
|
|
6987
|
+
exports.dateEarliest = dateEarliest;
|
|
6988
|
+
exports.dateLatest = dateLatest;
|
|
6989
|
+
exports.dateRange = dateRange;
|
|
6990
|
+
exports.dateRegex = dateRegex;
|
|
6991
|
+
exports.dcborPatternError = dcborPatternError;
|
|
6992
|
+
exports.defaultFormatPathsOpts = defaultFormatPathsOpts;
|
|
6993
|
+
exports.defaultPathElementFormat = defaultPathElementFormat;
|
|
6994
|
+
exports.digest = digest;
|
|
6995
|
+
exports.digestPrefix = digestPrefix;
|
|
6996
|
+
exports.digestURFormat = digestURFormat;
|
|
6997
|
+
exports.dispatchCompile = dispatchCompile;
|
|
6998
|
+
exports.dispatchIsComplex = dispatchIsComplex;
|
|
6999
|
+
exports.dispatchPaths = dispatchPaths;
|
|
7000
|
+
exports.dispatchPathsWithCaptures = dispatchPathsWithCaptures;
|
|
7001
|
+
exports.dispatchPatternToString = dispatchPatternToString;
|
|
7002
|
+
exports.elided = elided;
|
|
7003
|
+
exports.emptyInput = emptyInput;
|
|
7004
|
+
exports.encrypted = encrypted;
|
|
7005
|
+
exports.envelopeSummary = envelopeSummary;
|
|
7006
|
+
exports.envelopeURFormat = envelopeURFormat;
|
|
7007
|
+
exports.err = err;
|
|
7008
|
+
exports.expectedCloseBracket = expectedCloseBracket;
|
|
7009
|
+
exports.expectedCloseParen = expectedCloseParen;
|
|
7010
|
+
exports.expectedOpenBracket = expectedOpenBracket;
|
|
7011
|
+
exports.expectedOpenParen = expectedOpenParen;
|
|
7012
|
+
exports.expectedPattern = expectedPattern;
|
|
7013
|
+
exports.extraData = extraData;
|
|
7014
|
+
exports.formatError = formatError;
|
|
7015
|
+
exports.formatPath = formatPath;
|
|
7016
|
+
exports.formatPathOpt = formatPathOpt;
|
|
7017
|
+
exports.formatPaths = formatPaths;
|
|
7018
|
+
exports.formatPathsOpt = formatPathsOpt;
|
|
7019
|
+
exports.formatPathsOpts = formatPathsOpts;
|
|
7020
|
+
exports.formatPathsWithCaptures = formatPathsWithCaptures;
|
|
7021
|
+
exports.formatPathsWithCapturesOpt = formatPathsWithCapturesOpt;
|
|
7022
|
+
exports.group = group;
|
|
7023
|
+
exports.invalidCaptureGroupName = invalidCaptureGroupName;
|
|
7024
|
+
exports.invalidDateFormat = invalidDateFormat;
|
|
7025
|
+
exports.invalidHexString = invalidHexString;
|
|
7026
|
+
exports.invalidNumberFormat = invalidNumberFormat;
|
|
7027
|
+
exports.invalidPattern = invalidPattern;
|
|
7028
|
+
exports.invalidRange = invalidRange;
|
|
7029
|
+
exports.invalidRegex = invalidRegex;
|
|
7030
|
+
exports.invalidUr = invalidUr;
|
|
7031
|
+
exports.isErr = isErr;
|
|
7032
|
+
exports.isOk = isOk;
|
|
7033
|
+
exports.knownValue = knownValue;
|
|
7034
|
+
exports.leaf = leaf;
|
|
7035
|
+
exports.leafArray = leafArray;
|
|
7036
|
+
exports.leafBool = leafBool;
|
|
7037
|
+
exports.leafByteString = leafByteString;
|
|
7038
|
+
exports.leafCbor = leafCbor;
|
|
7039
|
+
exports.leafDate = leafDate;
|
|
7040
|
+
exports.leafKnownValue = leafKnownValue;
|
|
7041
|
+
exports.leafMap = leafMap;
|
|
7042
|
+
exports.leafNull = leafNull;
|
|
7043
|
+
exports.leafNumber = leafNumber;
|
|
7044
|
+
exports.leafPatternCompile = leafPatternCompile;
|
|
7045
|
+
exports.leafPatternIsComplex = leafPatternIsComplex;
|
|
7046
|
+
exports.leafPatternPaths = leafPatternPaths;
|
|
7047
|
+
exports.leafPatternPathsWithCaptures = leafPatternPathsWithCaptures;
|
|
7048
|
+
exports.leafPatternToString = leafPatternToString;
|
|
7049
|
+
exports.leafTag = leafTag;
|
|
7050
|
+
exports.leafText = leafText;
|
|
7051
|
+
exports.map = map;
|
|
7052
|
+
exports.matchPattern = matchPattern;
|
|
7053
|
+
exports.metaAnd = metaAnd;
|
|
7054
|
+
exports.metaAny = metaAny;
|
|
7055
|
+
exports.metaCapture = metaCapture;
|
|
7056
|
+
exports.metaGroup = metaGroup;
|
|
7057
|
+
exports.metaNot = metaNot;
|
|
7058
|
+
exports.metaOr = metaOr;
|
|
7059
|
+
exports.metaPatternCollectCaptureNames = metaPatternCollectCaptureNames;
|
|
7060
|
+
exports.metaPatternCompile = metaPatternCompile;
|
|
7061
|
+
exports.metaPatternIsComplex = metaPatternIsComplex;
|
|
7062
|
+
exports.metaPatternPathsWithCaptures = metaPatternPathsWithCaptures;
|
|
7063
|
+
exports.metaPatternToString = metaPatternToString;
|
|
7064
|
+
exports.metaSearch = metaSearch;
|
|
7065
|
+
exports.metaTraverse = metaTraverse;
|
|
7066
|
+
exports.notMatching = notMatching;
|
|
7067
|
+
exports.nullPattern = nullPattern;
|
|
7068
|
+
exports.number = number;
|
|
7069
|
+
exports.numberGreaterThan = numberGreaterThan;
|
|
7070
|
+
exports.numberLessThan = numberLessThan;
|
|
7071
|
+
exports.numberRange = numberRange;
|
|
7072
|
+
exports.object = object;
|
|
7073
|
+
exports.obscured = obscured;
|
|
7074
|
+
exports.ok = ok;
|
|
7075
|
+
exports.or = or;
|
|
7076
|
+
exports.parse = parse;
|
|
7077
|
+
exports.parsePartial = parsePartial;
|
|
7078
|
+
exports.patternCollectCaptureNames = patternCollectCaptureNames;
|
|
7079
|
+
exports.patternCompile = patternCompile;
|
|
7080
|
+
exports.patternIsComplex = patternIsComplex;
|
|
7081
|
+
exports.patternLeaf = patternLeaf;
|
|
7082
|
+
exports.patternMatches = patternMatches;
|
|
7083
|
+
exports.patternMeta = patternMeta;
|
|
7084
|
+
exports.patternPaths = patternPaths;
|
|
7085
|
+
exports.patternPathsWithCaptures = patternPathsWithCaptures;
|
|
7086
|
+
exports.patternStructure = patternStructure;
|
|
7087
|
+
exports.patternToString = patternToString;
|
|
7088
|
+
exports.predicate = predicate;
|
|
7089
|
+
exports.registerAndPatternFactory = registerAndPatternFactory;
|
|
7090
|
+
exports.registerAnyPatternFactory = registerAnyPatternFactory;
|
|
7091
|
+
exports.registerArrayPatternFactory = registerArrayPatternFactory;
|
|
7092
|
+
exports.registerAssertionsPatternFactory = registerAssertionsPatternFactory;
|
|
7093
|
+
exports.registerBoolPatternFactory = registerBoolPatternFactory;
|
|
7094
|
+
exports.registerByteStringPatternFactory = registerByteStringPatternFactory;
|
|
7095
|
+
exports.registerCBORPatternFactory = registerCBORPatternFactory;
|
|
7096
|
+
exports.registerCapturePatternFactory = registerCapturePatternFactory;
|
|
7097
|
+
exports.registerDatePatternFactory = registerDatePatternFactory;
|
|
7098
|
+
exports.registerDigestPatternFactory = registerDigestPatternFactory;
|
|
7099
|
+
exports.registerGroupPatternFactory = registerGroupPatternFactory;
|
|
7100
|
+
exports.registerKnownValuePatternFactory = registerKnownValuePatternFactory;
|
|
7101
|
+
exports.registerLeafStructurePatternFactory = registerLeafStructurePatternFactory;
|
|
7102
|
+
exports.registerMapPatternFactory = registerMapPatternFactory;
|
|
7103
|
+
exports.registerNodePatternFactory = registerNodePatternFactory;
|
|
7104
|
+
exports.registerNotPatternFactory = registerNotPatternFactory;
|
|
7105
|
+
exports.registerNullPatternFactory = registerNullPatternFactory;
|
|
7106
|
+
exports.registerNumberPatternFactory = registerNumberPatternFactory;
|
|
7107
|
+
exports.registerObjectPatternFactory = registerObjectPatternFactory;
|
|
7108
|
+
exports.registerObscuredPatternFactory = registerObscuredPatternFactory;
|
|
7109
|
+
exports.registerOrPatternFactory = registerOrPatternFactory;
|
|
7110
|
+
exports.registerPatternDispatchFns = registerPatternDispatchFns;
|
|
7111
|
+
exports.registerPatternMatchFn = registerPatternMatchFn;
|
|
7112
|
+
exports.registerPredicatePatternFactory = registerPredicatePatternFactory;
|
|
7113
|
+
exports.registerSearchPatternFactory = registerSearchPatternFactory;
|
|
7114
|
+
exports.registerSubjectPatternFactory = registerSubjectPatternFactory;
|
|
7115
|
+
exports.registerTaggedPatternFactory = registerTaggedPatternFactory;
|
|
7116
|
+
exports.registerTextPatternFactory = registerTextPatternFactory;
|
|
7117
|
+
exports.registerTraversePatternFactory = registerTraversePatternFactory;
|
|
7118
|
+
exports.registerVMPatternFunctions = registerVMPatternFunctions;
|
|
7119
|
+
exports.registerWrappedPatternDispatch = registerWrappedPatternDispatch;
|
|
7120
|
+
exports.registerWrappedPatternFactory = registerWrappedPatternFactory;
|
|
7121
|
+
exports.repeat = repeat;
|
|
7122
|
+
exports.run = run;
|
|
7123
|
+
exports.search = search;
|
|
7124
|
+
exports.structureAssertions = structureAssertions;
|
|
7125
|
+
exports.structureDigest = structureDigest;
|
|
7126
|
+
exports.structureLeaf = structureLeaf;
|
|
7127
|
+
exports.structureNode = structureNode;
|
|
7128
|
+
exports.structureObject = structureObject;
|
|
7129
|
+
exports.structureObscured = structureObscured;
|
|
7130
|
+
exports.structurePatternCompile = structurePatternCompile;
|
|
7131
|
+
exports.structurePatternIsComplex = structurePatternIsComplex;
|
|
7132
|
+
exports.structurePatternPaths = structurePatternPaths;
|
|
7133
|
+
exports.structurePatternPathsWithCaptures = structurePatternPathsWithCaptures;
|
|
7134
|
+
exports.structurePatternToString = structurePatternToString;
|
|
7135
|
+
exports.structurePredicate = structurePredicate;
|
|
7136
|
+
exports.structureSubject = structureSubject;
|
|
7137
|
+
exports.structureWrapped = structureWrapped;
|
|
7138
|
+
exports.subject = subject;
|
|
7139
|
+
exports.summaryFormat = summaryFormat;
|
|
7140
|
+
exports.tagged = tagged;
|
|
7141
|
+
exports.text = text;
|
|
7142
|
+
exports.textRegex = textRegex;
|
|
7143
|
+
exports.traverse = traverse;
|
|
7144
|
+
exports.unexpectedEndOfInput = unexpectedEndOfInput;
|
|
7145
|
+
exports.unexpectedToken = unexpectedToken;
|
|
7146
|
+
exports.unit = unit;
|
|
7147
|
+
exports.unknown = unknown;
|
|
7148
|
+
exports.unmatchedBraces = unmatchedBraces;
|
|
7149
|
+
exports.unmatchedParentheses = unmatchedParentheses;
|
|
7150
|
+
exports.unrecognizedToken = unrecognizedToken;
|
|
7151
|
+
exports.unterminatedRegex = unterminatedRegex;
|
|
7152
|
+
exports.unwrap = unwrap;
|
|
7153
|
+
exports.unwrapEnvelope = unwrapEnvelope;
|
|
7154
|
+
exports.unwrapMatching = unwrapMatching;
|
|
7155
|
+
exports.unwrapOr = unwrapOr;
|
|
7156
|
+
exports.wrapped = wrapped;
|
|
7157
|
+
return exports;
|
|
7231
7158
|
})({}, bctsDcborPattern, bctsKnownValues, bctsEnvelope, bctsDcbor, bctsDcborParse);
|
|
7159
|
+
|
|
7232
7160
|
//# sourceMappingURL=index.iife.js.map
|