@openeudi/openid4vp 0.9.2 → 0.10.0
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/README.md +41 -15
- package/dist/index.cjs +168 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +168 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { X509Certificate, SubjectKeyIdentifierExtension, X509Certificates, BasicConstraintsExtension, KeyUsagesExtension, KeyUsageFlags as KeyUsageFlags$1, AuthorityKeyIdentifierExtension, SubjectAlternativeNameExtension, ExtendedKeyUsageExtension, Name as Name$1 } from '@peculiar/x509';
|
|
2
1
|
import 'reflect-metadata';
|
|
2
|
+
import { X509Certificate, SubjectKeyIdentifierExtension, X509Certificates, BasicConstraintsExtension, KeyUsagesExtension, KeyUsageFlags as KeyUsageFlags$1, AuthorityKeyIdentifierExtension, SubjectAlternativeNameExtension, ExtendedKeyUsageExtension, Name as Name$1 } from '@peculiar/x509';
|
|
3
3
|
import { v4 } from 'uuid';
|
|
4
4
|
import { SignJWT, importX509, decodeProtectedHeader, jwtVerify, importJWK, compactDecrypt } from 'jose';
|
|
5
5
|
import { Encoder, Tag } from 'cbor-x';
|
|
@@ -18,11 +18,16 @@ var __export = (target, all) => {
|
|
|
18
18
|
for (var name in all)
|
|
19
19
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
20
|
};
|
|
21
|
+
var init_reflect_polyfill = __esm({
|
|
22
|
+
"src/reflect-polyfill.ts"() {
|
|
23
|
+
}
|
|
24
|
+
});
|
|
21
25
|
|
|
22
26
|
// src/errors.ts
|
|
23
27
|
var InvalidSignatureError, ExpiredCredentialError, UnsupportedFormatError, MalformedCredentialError, NonceValidationError, HaipValidationError, OpenID4VPError, TrustAnchorNotFoundError, CertificateChainError, RevokedCertificateError, RevocationCheckFailedError, LotlFetchError, LotlSignatureError, SignedRequestBuildError, UnsupportedJweError, DecryptionFailedError, MissingDecryptionKeyError, MissingVerifierEncryptionKeyError, MultipleCredentialsNotSupportedError;
|
|
24
28
|
var init_errors = __esm({
|
|
25
29
|
"src/errors.ts"() {
|
|
30
|
+
init_reflect_polyfill();
|
|
26
31
|
InvalidSignatureError = class extends Error {
|
|
27
32
|
constructor(message = "Credential signature validation failed") {
|
|
28
33
|
super(message);
|
|
@@ -186,6 +191,7 @@ function isEqual(bytes1, bytes2) {
|
|
|
186
191
|
var ARRAY_BUFFER_NAME, BufferSourceConverter, STRING_TYPE, HEX_REGEX, BASE64_REGEX, BASE64URL_REGEX, Utf8Converter, Utf16Converter, Convert;
|
|
187
192
|
var init_index_es = __esm({
|
|
188
193
|
"node_modules/pvtsutils/build/index.es.js"() {
|
|
194
|
+
init_reflect_polyfill();
|
|
189
195
|
ARRAY_BUFFER_NAME = "[object ArrayBuffer]";
|
|
190
196
|
BufferSourceConverter = class _BufferSourceConverter {
|
|
191
197
|
static isArrayBuffer(data) {
|
|
@@ -642,6 +648,7 @@ function padNumber(inputNumber, fullLength) {
|
|
|
642
648
|
}
|
|
643
649
|
var init_utils_es = __esm({
|
|
644
650
|
"node_modules/pvutils/build/utils.es.js"() {
|
|
651
|
+
init_reflect_polyfill();
|
|
645
652
|
}
|
|
646
653
|
});
|
|
647
654
|
|
|
@@ -1478,6 +1485,7 @@ function verifySchema(inputBuffer, inputSchema) {
|
|
|
1478
1485
|
var ViewWriter, powers2, digitsString, NAME, VALUE_HEX_VIEW, IS_HEX_ONLY, ID_BLOCK, TAG_CLASS, TAG_NUMBER, IS_CONSTRUCTED, FROM_BER, TO_BER, LOCAL, EMPTY_STRING, EMPTY_BUFFER, EMPTY_VIEW, END_OF_CONTENT_NAME, OCTET_STRING_NAME, BIT_STRING_NAME, LocalBaseBlock, ValueBlock, LocalIdentificationBlock, LocalLengthBlock, typeStore, BaseBlock, BaseStringBlock, LocalPrimitiveValueBlock, _a$w, Primitive, DEFAULT_MAX_DEPTH, DEFAULT_MAX_NODES, DEFAULT_MAX_CONTENT_LENGTH, MAX_DEPTH_EXCEEDED_ERROR, MAX_NODES_EXCEEDED_ERROR, MAX_CONTENT_LENGTH_EXCEEDED_ERROR, LocalConstructedValueBlock, _a$v, Constructed, LocalEndOfContentValueBlock, _a$u, EndOfContent, _a$t, Null, LocalBooleanValueBlock, _a$s, Boolean2, LocalOctetStringValueBlock, _a$r, OctetString, LocalBitStringValueBlock, _a$q, BitString, _a$p, LocalIntegerValueBlock, _a$o, Integer, _a$n, Enumerated, LocalSidValueBlock, LocalObjectIdentifierValueBlock, _a$m, ObjectIdentifier, LocalRelativeSidValueBlock, LocalRelativeObjectIdentifierValueBlock, _a$l, RelativeObjectIdentifier, _a$k, Sequence, _a$j, Set2, LocalStringValueBlock, LocalSimpleStringValueBlock, LocalSimpleStringBlock, LocalUtf8StringValueBlock, _a$i, Utf8String, LocalBmpStringValueBlock, _a$h, BmpString, LocalUniversalStringValueBlock, _a$g, UniversalString, _a$f, NumericString, _a$e, PrintableString, _a$d, TeletexString, _a$c, VideotexString, _a$b, IA5String, _a$a, GraphicString, _a$9, VisibleString, _a$8, GeneralString, _a$7, CharacterString, _a$6, UTCTime, _a$5, GeneralizedTime, _a$4, DATE, _a$3, TimeOfDay, _a$2, DateTime, _a$1, Duration, _a, TIME, Any, Choice, Repeated, RawData;
|
|
1479
1486
|
var init_index_es2 = __esm({
|
|
1480
1487
|
"node_modules/asn1js/build/index.es.js"() {
|
|
1488
|
+
init_reflect_polyfill();
|
|
1481
1489
|
init_index_es();
|
|
1482
1490
|
init_utils_es();
|
|
1483
1491
|
ViewWriter = class {
|
|
@@ -3714,6 +3722,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
3714
3722
|
var AsnTypeTypes, AsnPropTypes;
|
|
3715
3723
|
var init_enums = __esm({
|
|
3716
3724
|
"node_modules/@peculiar/asn1-schema/build/es2015/enums.js"() {
|
|
3725
|
+
init_reflect_polyfill();
|
|
3717
3726
|
(function(AsnTypeTypes2) {
|
|
3718
3727
|
AsnTypeTypes2[AsnTypeTypes2["Sequence"] = 0] = "Sequence";
|
|
3719
3728
|
AsnTypeTypes2[AsnTypeTypes2["Set"] = 1] = "Set";
|
|
@@ -3755,6 +3764,7 @@ var init_enums = __esm({
|
|
|
3755
3764
|
var BitString2;
|
|
3756
3765
|
var init_bit_string = __esm({
|
|
3757
3766
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js"() {
|
|
3767
|
+
init_reflect_polyfill();
|
|
3758
3768
|
init_index_es2();
|
|
3759
3769
|
init_index_es();
|
|
3760
3770
|
BitString2 = class {
|
|
@@ -3819,6 +3829,7 @@ var init_bit_string = __esm({
|
|
|
3819
3829
|
var OctetString2;
|
|
3820
3830
|
var init_octet_string = __esm({
|
|
3821
3831
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js"() {
|
|
3832
|
+
init_reflect_polyfill();
|
|
3822
3833
|
init_index_es2();
|
|
3823
3834
|
init_index_es();
|
|
3824
3835
|
OctetString2 = class {
|
|
@@ -3861,6 +3872,7 @@ var init_octet_string = __esm({
|
|
|
3861
3872
|
// node_modules/@peculiar/asn1-schema/build/es2015/types/index.js
|
|
3862
3873
|
var init_types = __esm({
|
|
3863
3874
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/index.js"() {
|
|
3875
|
+
init_reflect_polyfill();
|
|
3864
3876
|
init_bit_string();
|
|
3865
3877
|
init_octet_string();
|
|
3866
3878
|
}
|
|
@@ -3926,6 +3938,7 @@ function defaultConverter(type) {
|
|
|
3926
3938
|
var AsnAnyConverter, AsnIntegerConverter, AsnEnumeratedConverter, AsnIntegerArrayBufferConverter, AsnBitStringConverter, AsnObjectIdentifierConverter, AsnBooleanConverter, AsnOctetStringConverter, AsnUtf8StringConverter, AsnBmpStringConverter, AsnUniversalStringConverter, AsnNumericStringConverter, AsnPrintableStringConverter, AsnTeletexStringConverter, AsnVideotexStringConverter, AsnIA5StringConverter, AsnGraphicStringConverter, AsnVisibleStringConverter, AsnGeneralStringConverter, AsnCharacterStringConverter, AsnUTCTimeConverter, AsnGeneralizedTimeConverter, AsnNullConverter;
|
|
3927
3939
|
var init_converters = __esm({
|
|
3928
3940
|
"node_modules/@peculiar/asn1-schema/build/es2015/converters.js"() {
|
|
3941
|
+
init_reflect_polyfill();
|
|
3929
3942
|
init_index_es2();
|
|
3930
3943
|
init_enums();
|
|
3931
3944
|
init_types();
|
|
@@ -4040,6 +4053,7 @@ function isArrayEqual(bytes1, bytes2) {
|
|
|
4040
4053
|
}
|
|
4041
4054
|
var init_helper = __esm({
|
|
4042
4055
|
"node_modules/@peculiar/asn1-schema/build/es2015/helper.js"() {
|
|
4056
|
+
init_reflect_polyfill();
|
|
4043
4057
|
}
|
|
4044
4058
|
});
|
|
4045
4059
|
|
|
@@ -4047,6 +4061,7 @@ var init_helper = __esm({
|
|
|
4047
4061
|
var AsnSchemaStorage;
|
|
4048
4062
|
var init_schema = __esm({
|
|
4049
4063
|
"node_modules/@peculiar/asn1-schema/build/es2015/schema.js"() {
|
|
4064
|
+
init_reflect_polyfill();
|
|
4050
4065
|
init_index_es2();
|
|
4051
4066
|
init_enums();
|
|
4052
4067
|
init_helper();
|
|
@@ -4179,6 +4194,7 @@ var init_schema = __esm({
|
|
|
4179
4194
|
var schemaStorage;
|
|
4180
4195
|
var init_storage = __esm({
|
|
4181
4196
|
"node_modules/@peculiar/asn1-schema/build/es2015/storage.js"() {
|
|
4197
|
+
init_reflect_polyfill();
|
|
4182
4198
|
init_schema();
|
|
4183
4199
|
schemaStorage = new AsnSchemaStorage();
|
|
4184
4200
|
}
|
|
@@ -4188,6 +4204,7 @@ var init_storage = __esm({
|
|
|
4188
4204
|
var AsnType, AsnProp;
|
|
4189
4205
|
var init_decorators = __esm({
|
|
4190
4206
|
"node_modules/@peculiar/asn1-schema/build/es2015/decorators.js"() {
|
|
4207
|
+
init_reflect_polyfill();
|
|
4191
4208
|
init_converters();
|
|
4192
4209
|
init_enums();
|
|
4193
4210
|
init_storage();
|
|
@@ -4227,6 +4244,7 @@ var init_decorators = __esm({
|
|
|
4227
4244
|
var AsnSchemaValidationError;
|
|
4228
4245
|
var init_schema_validation = __esm({
|
|
4229
4246
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js"() {
|
|
4247
|
+
init_reflect_polyfill();
|
|
4230
4248
|
AsnSchemaValidationError = class extends Error {
|
|
4231
4249
|
constructor() {
|
|
4232
4250
|
super(...arguments);
|
|
@@ -4239,6 +4257,7 @@ var init_schema_validation = __esm({
|
|
|
4239
4257
|
// node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js
|
|
4240
4258
|
var init_errors2 = __esm({
|
|
4241
4259
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js"() {
|
|
4260
|
+
init_reflect_polyfill();
|
|
4242
4261
|
init_schema_validation();
|
|
4243
4262
|
}
|
|
4244
4263
|
});
|
|
@@ -4247,6 +4266,7 @@ var init_errors2 = __esm({
|
|
|
4247
4266
|
var AsnParser;
|
|
4248
4267
|
var init_parser = __esm({
|
|
4249
4268
|
"node_modules/@peculiar/asn1-schema/build/es2015/parser.js"() {
|
|
4269
|
+
init_reflect_polyfill();
|
|
4250
4270
|
init_index_es2();
|
|
4251
4271
|
init_enums();
|
|
4252
4272
|
init_converters();
|
|
@@ -4533,6 +4553,7 @@ var init_parser = __esm({
|
|
|
4533
4553
|
var AsnSerializer;
|
|
4534
4554
|
var init_serializer = __esm({
|
|
4535
4555
|
"node_modules/@peculiar/asn1-schema/build/es2015/serializer.js"() {
|
|
4556
|
+
init_reflect_polyfill();
|
|
4536
4557
|
init_index_es2();
|
|
4537
4558
|
init_converters();
|
|
4538
4559
|
init_enums();
|
|
@@ -4677,6 +4698,7 @@ var init_serializer = __esm({
|
|
|
4677
4698
|
var AsnArray;
|
|
4678
4699
|
var init_objects = __esm({
|
|
4679
4700
|
"node_modules/@peculiar/asn1-schema/build/es2015/objects.js"() {
|
|
4701
|
+
init_reflect_polyfill();
|
|
4680
4702
|
AsnArray = class extends Array {
|
|
4681
4703
|
constructor(items = []) {
|
|
4682
4704
|
if (typeof items === "number") {
|
|
@@ -4696,6 +4718,7 @@ var init_objects = __esm({
|
|
|
4696
4718
|
var AsnConvert;
|
|
4697
4719
|
var init_convert = __esm({
|
|
4698
4720
|
"node_modules/@peculiar/asn1-schema/build/es2015/convert.js"() {
|
|
4721
|
+
init_reflect_polyfill();
|
|
4699
4722
|
init_index_es2();
|
|
4700
4723
|
init_index_es();
|
|
4701
4724
|
init_parser();
|
|
@@ -4722,6 +4745,7 @@ var init_convert = __esm({
|
|
|
4722
4745
|
// node_modules/@peculiar/asn1-schema/build/es2015/index.js
|
|
4723
4746
|
var init_es2015 = __esm({
|
|
4724
4747
|
"node_modules/@peculiar/asn1-schema/build/es2015/index.js"() {
|
|
4748
|
+
init_reflect_polyfill();
|
|
4725
4749
|
init_converters();
|
|
4726
4750
|
init_types();
|
|
4727
4751
|
init_decorators();
|
|
@@ -4743,6 +4767,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
4743
4767
|
}
|
|
4744
4768
|
var init_tslib_es6 = __esm({
|
|
4745
4769
|
"node_modules/tslib/tslib.es6.mjs"() {
|
|
4770
|
+
init_reflect_polyfill();
|
|
4746
4771
|
}
|
|
4747
4772
|
});
|
|
4748
4773
|
|
|
@@ -4750,6 +4775,7 @@ var init_tslib_es6 = __esm({
|
|
|
4750
4775
|
var IpConverter;
|
|
4751
4776
|
var init_ip_converter = __esm({
|
|
4752
4777
|
"node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js"() {
|
|
4778
|
+
init_reflect_polyfill();
|
|
4753
4779
|
init_index_es();
|
|
4754
4780
|
IpConverter = class {
|
|
4755
4781
|
static isIPv4(ip) {
|
|
@@ -4923,6 +4949,7 @@ var init_ip_converter = __esm({
|
|
|
4923
4949
|
var RelativeDistinguishedName_1, RDNSequence_1, Name_1, DirectoryString, AttributeValue, AttributeTypeAndValue, RelativeDistinguishedName, RDNSequence, Name;
|
|
4924
4950
|
var init_name = __esm({
|
|
4925
4951
|
"node_modules/@peculiar/asn1-x509/build/es2015/name.js"() {
|
|
4952
|
+
init_reflect_polyfill();
|
|
4926
4953
|
init_tslib_es6();
|
|
4927
4954
|
init_es2015();
|
|
4928
4955
|
init_index_es();
|
|
@@ -5017,6 +5044,7 @@ var init_name = __esm({
|
|
|
5017
5044
|
var AsnIpConverter, OtherName, EDIPartyName, GeneralName;
|
|
5018
5045
|
var init_general_name = __esm({
|
|
5019
5046
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_name.js"() {
|
|
5047
|
+
init_reflect_polyfill();
|
|
5020
5048
|
init_tslib_es6();
|
|
5021
5049
|
init_es2015();
|
|
5022
5050
|
init_ip_converter();
|
|
@@ -5094,6 +5122,7 @@ var init_general_name = __esm({
|
|
|
5094
5122
|
});
|
|
5095
5123
|
var init_object_identifiers = __esm({
|
|
5096
5124
|
"node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js"() {
|
|
5125
|
+
init_reflect_polyfill();
|
|
5097
5126
|
}
|
|
5098
5127
|
});
|
|
5099
5128
|
|
|
@@ -5101,6 +5130,7 @@ var init_object_identifiers = __esm({
|
|
|
5101
5130
|
var AuthorityInfoAccessSyntax_1, AccessDescription, AuthorityInfoAccessSyntax;
|
|
5102
5131
|
var init_authority_information_access = __esm({
|
|
5103
5132
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js"() {
|
|
5133
|
+
init_reflect_polyfill();
|
|
5104
5134
|
init_tslib_es6();
|
|
5105
5135
|
init_es2015();
|
|
5106
5136
|
init_general_name();
|
|
@@ -5134,6 +5164,7 @@ var init_authority_information_access = __esm({
|
|
|
5134
5164
|
var KeyIdentifier, AuthorityKeyIdentifier;
|
|
5135
5165
|
var init_authority_key_identifier = __esm({
|
|
5136
5166
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js"() {
|
|
5167
|
+
init_reflect_polyfill();
|
|
5137
5168
|
init_tslib_es6();
|
|
5138
5169
|
init_es2015();
|
|
5139
5170
|
init_general_name();
|
|
@@ -5169,6 +5200,7 @@ var init_authority_key_identifier = __esm({
|
|
|
5169
5200
|
var BasicConstraints;
|
|
5170
5201
|
var init_basic_constraints = __esm({
|
|
5171
5202
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js"() {
|
|
5203
|
+
init_reflect_polyfill();
|
|
5172
5204
|
init_tslib_es6();
|
|
5173
5205
|
init_es2015();
|
|
5174
5206
|
init_object_identifiers();
|
|
@@ -5191,6 +5223,7 @@ var init_basic_constraints = __esm({
|
|
|
5191
5223
|
var GeneralNames_1, GeneralNames;
|
|
5192
5224
|
var init_general_names = __esm({
|
|
5193
5225
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_names.js"() {
|
|
5226
|
+
init_reflect_polyfill();
|
|
5194
5227
|
init_tslib_es6();
|
|
5195
5228
|
init_es2015();
|
|
5196
5229
|
init_general_name();
|
|
@@ -5211,6 +5244,7 @@ var init_general_names = __esm({
|
|
|
5211
5244
|
var CertificateIssuer_1, CertificateIssuer;
|
|
5212
5245
|
var init_certificate_issuer = __esm({
|
|
5213
5246
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js"() {
|
|
5247
|
+
init_reflect_polyfill();
|
|
5214
5248
|
init_tslib_es6();
|
|
5215
5249
|
init_es2015();
|
|
5216
5250
|
init_general_names();
|
|
@@ -5231,6 +5265,7 @@ var init_certificate_issuer = __esm({
|
|
|
5231
5265
|
var CertificatePolicies_1, DisplayText, NoticeReference, UserNotice, Qualifier, PolicyQualifierInfo, PolicyInformation, CertificatePolicies;
|
|
5232
5266
|
var init_certificate_policies = __esm({
|
|
5233
5267
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js"() {
|
|
5268
|
+
init_reflect_polyfill();
|
|
5234
5269
|
init_tslib_es6();
|
|
5235
5270
|
init_es2015();
|
|
5236
5271
|
init_object_identifiers();
|
|
@@ -5336,6 +5371,7 @@ var init_certificate_policies = __esm({
|
|
|
5336
5371
|
var CRLNumber;
|
|
5337
5372
|
var init_crl_number = __esm({
|
|
5338
5373
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js"() {
|
|
5374
|
+
init_reflect_polyfill();
|
|
5339
5375
|
init_tslib_es6();
|
|
5340
5376
|
init_es2015();
|
|
5341
5377
|
init_object_identifiers();
|
|
@@ -5357,6 +5393,7 @@ var init_crl_number = __esm({
|
|
|
5357
5393
|
var BaseCRLNumber;
|
|
5358
5394
|
var init_crl_delta_indicator = __esm({
|
|
5359
5395
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js"() {
|
|
5396
|
+
init_reflect_polyfill();
|
|
5360
5397
|
init_tslib_es6();
|
|
5361
5398
|
init_es2015();
|
|
5362
5399
|
init_object_identifiers();
|
|
@@ -5373,6 +5410,7 @@ var init_crl_delta_indicator = __esm({
|
|
|
5373
5410
|
var CRLDistributionPoints_1, ReasonFlags, Reason, DistributionPointName, DistributionPoint, CRLDistributionPoints;
|
|
5374
5411
|
var init_crl_distribution_points = __esm({
|
|
5375
5412
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js"() {
|
|
5413
|
+
init_reflect_polyfill();
|
|
5376
5414
|
init_tslib_es6();
|
|
5377
5415
|
init_es2015();
|
|
5378
5416
|
init_name();
|
|
@@ -5470,6 +5508,7 @@ var init_crl_distribution_points = __esm({
|
|
|
5470
5508
|
var FreshestCRL_1, FreshestCRL;
|
|
5471
5509
|
var init_crl_freshest = __esm({
|
|
5472
5510
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js"() {
|
|
5511
|
+
init_reflect_polyfill();
|
|
5473
5512
|
init_tslib_es6();
|
|
5474
5513
|
init_es2015();
|
|
5475
5514
|
init_object_identifiers();
|
|
@@ -5490,6 +5529,7 @@ var init_crl_freshest = __esm({
|
|
|
5490
5529
|
var IssuingDistributionPoint;
|
|
5491
5530
|
var init_crl_issuing_distribution_point = __esm({
|
|
5492
5531
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js"() {
|
|
5532
|
+
init_reflect_polyfill();
|
|
5493
5533
|
init_tslib_es6();
|
|
5494
5534
|
init_es2015();
|
|
5495
5535
|
init_crl_distribution_points();
|
|
@@ -5550,6 +5590,7 @@ var init_crl_issuing_distribution_point = __esm({
|
|
|
5550
5590
|
var CRLReasons, CRLReason;
|
|
5551
5591
|
var init_crl_reason = __esm({
|
|
5552
5592
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js"() {
|
|
5593
|
+
init_reflect_polyfill();
|
|
5553
5594
|
init_tslib_es6();
|
|
5554
5595
|
init_es2015();
|
|
5555
5596
|
init_object_identifiers();
|
|
@@ -5590,6 +5631,7 @@ var init_crl_reason = __esm({
|
|
|
5590
5631
|
var ExtendedKeyUsage_1, ExtendedKeyUsage;
|
|
5591
5632
|
var init_extended_key_usage = __esm({
|
|
5592
5633
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js"() {
|
|
5634
|
+
init_reflect_polyfill();
|
|
5593
5635
|
init_tslib_es6();
|
|
5594
5636
|
init_es2015();
|
|
5595
5637
|
init_object_identifiers();
|
|
@@ -5609,6 +5651,7 @@ var init_extended_key_usage = __esm({
|
|
|
5609
5651
|
var InhibitAnyPolicy;
|
|
5610
5652
|
var init_inhibit_any_policy = __esm({
|
|
5611
5653
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js"() {
|
|
5654
|
+
init_reflect_polyfill();
|
|
5612
5655
|
init_tslib_es6();
|
|
5613
5656
|
init_es2015();
|
|
5614
5657
|
init_object_identifiers();
|
|
@@ -5630,6 +5673,7 @@ var init_inhibit_any_policy = __esm({
|
|
|
5630
5673
|
var InvalidityDate;
|
|
5631
5674
|
var init_invalidity_date = __esm({
|
|
5632
5675
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js"() {
|
|
5676
|
+
init_reflect_polyfill();
|
|
5633
5677
|
init_tslib_es6();
|
|
5634
5678
|
init_es2015();
|
|
5635
5679
|
init_object_identifiers();
|
|
@@ -5654,6 +5698,7 @@ var init_invalidity_date = __esm({
|
|
|
5654
5698
|
var IssueAlternativeName_1, IssueAlternativeName;
|
|
5655
5699
|
var init_issuer_alternative_name = __esm({
|
|
5656
5700
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js"() {
|
|
5701
|
+
init_reflect_polyfill();
|
|
5657
5702
|
init_tslib_es6();
|
|
5658
5703
|
init_es2015();
|
|
5659
5704
|
init_general_names();
|
|
@@ -5674,6 +5719,7 @@ var init_issuer_alternative_name = __esm({
|
|
|
5674
5719
|
var KeyUsageFlags;
|
|
5675
5720
|
var init_key_usage = __esm({
|
|
5676
5721
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js"() {
|
|
5722
|
+
init_reflect_polyfill();
|
|
5677
5723
|
init_es2015();
|
|
5678
5724
|
init_object_identifiers();
|
|
5679
5725
|
(function(KeyUsageFlags3) {
|
|
@@ -5694,6 +5740,7 @@ var init_key_usage = __esm({
|
|
|
5694
5740
|
var GeneralSubtrees_1, GeneralSubtree, GeneralSubtrees, NameConstraints;
|
|
5695
5741
|
var init_name_constraints = __esm({
|
|
5696
5742
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js"() {
|
|
5743
|
+
init_reflect_polyfill();
|
|
5697
5744
|
init_tslib_es6();
|
|
5698
5745
|
init_es2015();
|
|
5699
5746
|
init_general_name();
|
|
@@ -5741,6 +5788,7 @@ var init_name_constraints = __esm({
|
|
|
5741
5788
|
var PolicyConstraints;
|
|
5742
5789
|
var init_policy_constraints = __esm({
|
|
5743
5790
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js"() {
|
|
5791
|
+
init_reflect_polyfill();
|
|
5744
5792
|
init_tslib_es6();
|
|
5745
5793
|
init_es2015();
|
|
5746
5794
|
init_object_identifiers();
|
|
@@ -5774,6 +5822,7 @@ var init_policy_constraints = __esm({
|
|
|
5774
5822
|
var PolicyMappings_1, PolicyMapping, PolicyMappings;
|
|
5775
5823
|
var init_policy_mappings = __esm({
|
|
5776
5824
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js"() {
|
|
5825
|
+
init_reflect_polyfill();
|
|
5777
5826
|
init_tslib_es6();
|
|
5778
5827
|
init_es2015();
|
|
5779
5828
|
init_object_identifiers();
|
|
@@ -5806,6 +5855,7 @@ var init_policy_mappings = __esm({
|
|
|
5806
5855
|
var SubjectAlternativeName_1, SubjectAlternativeName;
|
|
5807
5856
|
var init_subject_alternative_name = __esm({
|
|
5808
5857
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js"() {
|
|
5858
|
+
init_reflect_polyfill();
|
|
5809
5859
|
init_tslib_es6();
|
|
5810
5860
|
init_es2015();
|
|
5811
5861
|
init_general_names();
|
|
@@ -5826,6 +5876,7 @@ var init_subject_alternative_name = __esm({
|
|
|
5826
5876
|
var Attribute;
|
|
5827
5877
|
var init_attribute = __esm({
|
|
5828
5878
|
"node_modules/@peculiar/asn1-x509/build/es2015/attribute.js"() {
|
|
5879
|
+
init_reflect_polyfill();
|
|
5829
5880
|
init_tslib_es6();
|
|
5830
5881
|
init_es2015();
|
|
5831
5882
|
Attribute = class {
|
|
@@ -5848,6 +5899,7 @@ var init_attribute = __esm({
|
|
|
5848
5899
|
var SubjectDirectoryAttributes_1, SubjectDirectoryAttributes;
|
|
5849
5900
|
var init_subject_directory_attributes = __esm({
|
|
5850
5901
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js"() {
|
|
5902
|
+
init_reflect_polyfill();
|
|
5851
5903
|
init_tslib_es6();
|
|
5852
5904
|
init_es2015();
|
|
5853
5905
|
init_attribute();
|
|
@@ -5865,6 +5917,7 @@ var init_subject_directory_attributes = __esm({
|
|
|
5865
5917
|
});
|
|
5866
5918
|
var init_subject_key_identifier = __esm({
|
|
5867
5919
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js"() {
|
|
5920
|
+
init_reflect_polyfill();
|
|
5868
5921
|
init_object_identifiers();
|
|
5869
5922
|
init_authority_key_identifier();
|
|
5870
5923
|
}
|
|
@@ -5874,6 +5927,7 @@ var init_subject_key_identifier = __esm({
|
|
|
5874
5927
|
var PrivateKeyUsagePeriod;
|
|
5875
5928
|
var init_private_key_usage_period = __esm({
|
|
5876
5929
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js"() {
|
|
5930
|
+
init_reflect_polyfill();
|
|
5877
5931
|
init_tslib_es6();
|
|
5878
5932
|
init_es2015();
|
|
5879
5933
|
init_object_identifiers();
|
|
@@ -5895,6 +5949,7 @@ var init_private_key_usage_period = __esm({
|
|
|
5895
5949
|
var EntrustInfoFlags, EntrustInfo, EntrustVersionInfo;
|
|
5896
5950
|
var init_entrust_version_info = __esm({
|
|
5897
5951
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js"() {
|
|
5952
|
+
init_reflect_polyfill();
|
|
5898
5953
|
init_tslib_es6();
|
|
5899
5954
|
init_es2015();
|
|
5900
5955
|
(function(EntrustInfoFlags2) {
|
|
@@ -5941,6 +5996,7 @@ var init_entrust_version_info = __esm({
|
|
|
5941
5996
|
var SubjectInfoAccessSyntax_1, SubjectInfoAccessSyntax;
|
|
5942
5997
|
var init_subject_info_access = __esm({
|
|
5943
5998
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js"() {
|
|
5999
|
+
init_reflect_polyfill();
|
|
5944
6000
|
init_tslib_es6();
|
|
5945
6001
|
init_es2015();
|
|
5946
6002
|
init_object_identifiers();
|
|
@@ -5960,6 +6016,7 @@ var init_subject_info_access = __esm({
|
|
|
5960
6016
|
// node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js
|
|
5961
6017
|
var init_extensions = __esm({
|
|
5962
6018
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js"() {
|
|
6019
|
+
init_reflect_polyfill();
|
|
5963
6020
|
init_authority_information_access();
|
|
5964
6021
|
init_authority_key_identifier();
|
|
5965
6022
|
init_basic_constraints();
|
|
@@ -5992,6 +6049,7 @@ var init_extensions = __esm({
|
|
|
5992
6049
|
var AlgorithmIdentifier;
|
|
5993
6050
|
var init_algorithm_identifier = __esm({
|
|
5994
6051
|
"node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js"() {
|
|
6052
|
+
init_reflect_polyfill();
|
|
5995
6053
|
init_tslib_es6();
|
|
5996
6054
|
init_es2015();
|
|
5997
6055
|
init_index_es();
|
|
@@ -6022,6 +6080,7 @@ var init_algorithm_identifier = __esm({
|
|
|
6022
6080
|
var SubjectPublicKeyInfo;
|
|
6023
6081
|
var init_subject_public_key_info = __esm({
|
|
6024
6082
|
"node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js"() {
|
|
6083
|
+
init_reflect_polyfill();
|
|
6025
6084
|
init_tslib_es6();
|
|
6026
6085
|
init_es2015();
|
|
6027
6086
|
init_algorithm_identifier();
|
|
@@ -6045,6 +6104,7 @@ var init_subject_public_key_info = __esm({
|
|
|
6045
6104
|
var Time;
|
|
6046
6105
|
var init_time = __esm({
|
|
6047
6106
|
"node_modules/@peculiar/asn1-x509/build/es2015/time.js"() {
|
|
6107
|
+
init_reflect_polyfill();
|
|
6048
6108
|
init_tslib_es6();
|
|
6049
6109
|
init_es2015();
|
|
6050
6110
|
Time = class Time2 {
|
|
@@ -6091,6 +6151,7 @@ var init_time = __esm({
|
|
|
6091
6151
|
var Validity;
|
|
6092
6152
|
var init_validity = __esm({
|
|
6093
6153
|
"node_modules/@peculiar/asn1-x509/build/es2015/validity.js"() {
|
|
6154
|
+
init_reflect_polyfill();
|
|
6094
6155
|
init_tslib_es6();
|
|
6095
6156
|
init_es2015();
|
|
6096
6157
|
init_time();
|
|
@@ -6117,6 +6178,7 @@ var init_validity = __esm({
|
|
|
6117
6178
|
var Extensions_1, Extension, Extensions;
|
|
6118
6179
|
var init_extension = __esm({
|
|
6119
6180
|
"node_modules/@peculiar/asn1-x509/build/es2015/extension.js"() {
|
|
6181
|
+
init_reflect_polyfill();
|
|
6120
6182
|
init_tslib_es6();
|
|
6121
6183
|
init_es2015();
|
|
6122
6184
|
Extension = class _Extension {
|
|
@@ -6156,6 +6218,7 @@ var init_extension = __esm({
|
|
|
6156
6218
|
var Version;
|
|
6157
6219
|
var init_types2 = __esm({
|
|
6158
6220
|
"node_modules/@peculiar/asn1-x509/build/es2015/types.js"() {
|
|
6221
|
+
init_reflect_polyfill();
|
|
6159
6222
|
(function(Version3) {
|
|
6160
6223
|
Version3[Version3["v1"] = 0] = "v1";
|
|
6161
6224
|
Version3[Version3["v2"] = 1] = "v2";
|
|
@@ -6168,6 +6231,7 @@ var init_types2 = __esm({
|
|
|
6168
6231
|
var TBSCertificate;
|
|
6169
6232
|
var init_tbs_certificate = __esm({
|
|
6170
6233
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js"() {
|
|
6234
|
+
init_reflect_polyfill();
|
|
6171
6235
|
init_tslib_es6();
|
|
6172
6236
|
init_es2015();
|
|
6173
6237
|
init_algorithm_identifier();
|
|
@@ -6237,6 +6301,7 @@ var init_tbs_certificate = __esm({
|
|
|
6237
6301
|
var Certificate;
|
|
6238
6302
|
var init_certificate = __esm({
|
|
6239
6303
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate.js"() {
|
|
6304
|
+
init_reflect_polyfill();
|
|
6240
6305
|
init_tslib_es6();
|
|
6241
6306
|
init_es2015();
|
|
6242
6307
|
init_algorithm_identifier();
|
|
@@ -6265,6 +6330,7 @@ var init_certificate = __esm({
|
|
|
6265
6330
|
var RevokedCertificate, TBSCertList;
|
|
6266
6331
|
var init_tbs_cert_list = __esm({
|
|
6267
6332
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js"() {
|
|
6333
|
+
init_reflect_polyfill();
|
|
6268
6334
|
init_tslib_es6();
|
|
6269
6335
|
init_es2015();
|
|
6270
6336
|
init_algorithm_identifier();
|
|
@@ -6323,6 +6389,7 @@ var init_tbs_cert_list = __esm({
|
|
|
6323
6389
|
var CertificateList;
|
|
6324
6390
|
var init_certificate_list = __esm({
|
|
6325
6391
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js"() {
|
|
6392
|
+
init_reflect_polyfill();
|
|
6326
6393
|
init_tslib_es6();
|
|
6327
6394
|
init_es2015();
|
|
6328
6395
|
init_algorithm_identifier();
|
|
@@ -6350,6 +6417,7 @@ var init_certificate_list = __esm({
|
|
|
6350
6417
|
// node_modules/@peculiar/asn1-x509/build/es2015/index.js
|
|
6351
6418
|
var init_es20152 = __esm({
|
|
6352
6419
|
"node_modules/@peculiar/asn1-x509/build/es2015/index.js"() {
|
|
6420
|
+
init_reflect_polyfill();
|
|
6353
6421
|
init_extensions();
|
|
6354
6422
|
init_algorithm_identifier();
|
|
6355
6423
|
init_attribute();
|
|
@@ -6393,6 +6461,7 @@ function getSkiBytes(cert) {
|
|
|
6393
6461
|
}
|
|
6394
6462
|
var init_x509_utils = __esm({
|
|
6395
6463
|
"src/trust/x509-utils.ts"() {
|
|
6464
|
+
init_reflect_polyfill();
|
|
6396
6465
|
}
|
|
6397
6466
|
});
|
|
6398
6467
|
function mapX509AlgoToJwaName(cert) {
|
|
@@ -6498,6 +6567,7 @@ function dnIsUnder(childDn, subtreeDn) {
|
|
|
6498
6567
|
var NAME_CONSTRAINTS_OID, DEFAULT_ALGORITHMS, ChainBuilder;
|
|
6499
6568
|
var init_ChainBuilder = __esm({
|
|
6500
6569
|
"src/trust/ChainBuilder.ts"() {
|
|
6570
|
+
init_reflect_polyfill();
|
|
6501
6571
|
init_es2015();
|
|
6502
6572
|
init_es20152();
|
|
6503
6573
|
init_errors();
|
|
@@ -6743,6 +6813,7 @@ function ecdsaDerToIeee(der, coordBytes) {
|
|
|
6743
6813
|
}
|
|
6744
6814
|
var init_ecdsa_util = __esm({
|
|
6745
6815
|
"src/trust/ecdsa-util.ts"() {
|
|
6816
|
+
init_reflect_polyfill();
|
|
6746
6817
|
}
|
|
6747
6818
|
});
|
|
6748
6819
|
|
|
@@ -6777,6 +6848,7 @@ function bytesToHex(bytes) {
|
|
|
6777
6848
|
var CrlFetcher;
|
|
6778
6849
|
var init_CrlFetcher = __esm({
|
|
6779
6850
|
"src/trust/CrlFetcher.ts"() {
|
|
6851
|
+
init_reflect_polyfill();
|
|
6780
6852
|
init_es2015();
|
|
6781
6853
|
init_es20152();
|
|
6782
6854
|
init_ecdsa_util();
|
|
@@ -6903,6 +6975,7 @@ var init_CrlFetcher = __esm({
|
|
|
6903
6975
|
var AcceptableResponses_1, AcceptableResponses;
|
|
6904
6976
|
var init_acceptable_responses = __esm({
|
|
6905
6977
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/acceptable_responses.js"() {
|
|
6978
|
+
init_reflect_polyfill();
|
|
6906
6979
|
init_tslib_es6();
|
|
6907
6980
|
init_es2015();
|
|
6908
6981
|
AcceptableResponses = AcceptableResponses_1 = class AcceptableResponses2 extends AsnArray {
|
|
@@ -6921,6 +6994,7 @@ var init_acceptable_responses = __esm({
|
|
|
6921
6994
|
var ArchiveCutoff;
|
|
6922
6995
|
var init_archive_cutoff = __esm({
|
|
6923
6996
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/archive_cutoff.js"() {
|
|
6997
|
+
init_reflect_polyfill();
|
|
6924
6998
|
init_tslib_es6();
|
|
6925
6999
|
init_es2015();
|
|
6926
7000
|
ArchiveCutoff = class ArchiveCutoff2 {
|
|
@@ -6941,6 +7015,7 @@ var init_archive_cutoff = __esm({
|
|
|
6941
7015
|
var ExtendedRevoke;
|
|
6942
7016
|
var init_extended_revoke = __esm({
|
|
6943
7017
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/extended_revoke.js"() {
|
|
7018
|
+
init_reflect_polyfill();
|
|
6944
7019
|
init_tslib_es6();
|
|
6945
7020
|
init_es2015();
|
|
6946
7021
|
ExtendedRevoke = class ExtendedRevoke2 {
|
|
@@ -6960,6 +7035,7 @@ var init_extended_revoke = __esm({
|
|
|
6960
7035
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js
|
|
6961
7036
|
var init_nonce = __esm({
|
|
6962
7037
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js"() {
|
|
7038
|
+
init_reflect_polyfill();
|
|
6963
7039
|
init_es2015();
|
|
6964
7040
|
}
|
|
6965
7041
|
});
|
|
@@ -6968,6 +7044,7 @@ var init_nonce = __esm({
|
|
|
6968
7044
|
var PreferredSignatureAlgorithms_1, PreferredSignatureAlgorithm, PreferredSignatureAlgorithms;
|
|
6969
7045
|
var init_preferred_signature_algorithms = __esm({
|
|
6970
7046
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/preferred_signature_algorithms.js"() {
|
|
7047
|
+
init_reflect_polyfill();
|
|
6971
7048
|
init_tslib_es6();
|
|
6972
7049
|
init_es2015();
|
|
6973
7050
|
init_es20152();
|
|
@@ -6999,6 +7076,7 @@ var init_preferred_signature_algorithms = __esm({
|
|
|
6999
7076
|
var ServiceLocator;
|
|
7000
7077
|
var init_service_locator = __esm({
|
|
7001
7078
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/service_locator.js"() {
|
|
7079
|
+
init_reflect_polyfill();
|
|
7002
7080
|
init_tslib_es6();
|
|
7003
7081
|
init_es2015();
|
|
7004
7082
|
init_es20152();
|
|
@@ -7021,6 +7099,7 @@ var init_service_locator = __esm({
|
|
|
7021
7099
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js
|
|
7022
7100
|
var init_extensions2 = __esm({
|
|
7023
7101
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js"() {
|
|
7102
|
+
init_reflect_polyfill();
|
|
7024
7103
|
init_acceptable_responses();
|
|
7025
7104
|
init_archive_cutoff();
|
|
7026
7105
|
init_extended_revoke();
|
|
@@ -7034,6 +7113,7 @@ var init_extensions2 = __esm({
|
|
|
7034
7113
|
var KeyHash, ResponderID;
|
|
7035
7114
|
var init_responder_id = __esm({
|
|
7036
7115
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/responder_id.js"() {
|
|
7116
|
+
init_reflect_polyfill();
|
|
7037
7117
|
init_tslib_es6();
|
|
7038
7118
|
init_es2015();
|
|
7039
7119
|
init_es20152();
|
|
@@ -7060,6 +7140,7 @@ var init_responder_id = __esm({
|
|
|
7060
7140
|
var CertID;
|
|
7061
7141
|
var init_cert_id = __esm({
|
|
7062
7142
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_id.js"() {
|
|
7143
|
+
init_reflect_polyfill();
|
|
7063
7144
|
init_tslib_es6();
|
|
7064
7145
|
init_es20152();
|
|
7065
7146
|
init_es2015();
|
|
@@ -7091,6 +7172,7 @@ var init_cert_id = __esm({
|
|
|
7091
7172
|
var RevokedInfo;
|
|
7092
7173
|
var init_revoked_info = __esm({
|
|
7093
7174
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/revoked_info.js"() {
|
|
7175
|
+
init_reflect_polyfill();
|
|
7094
7176
|
init_tslib_es6();
|
|
7095
7177
|
init_es2015();
|
|
7096
7178
|
init_es20152();
|
|
@@ -7113,6 +7195,7 @@ var init_revoked_info = __esm({
|
|
|
7113
7195
|
var CertStatus;
|
|
7114
7196
|
var init_cert_status = __esm({
|
|
7115
7197
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_status.js"() {
|
|
7198
|
+
init_reflect_polyfill();
|
|
7116
7199
|
init_tslib_es6();
|
|
7117
7200
|
init_es2015();
|
|
7118
7201
|
init_revoked_info();
|
|
@@ -7140,6 +7223,7 @@ var init_cert_status = __esm({
|
|
|
7140
7223
|
var SingleResponse;
|
|
7141
7224
|
var init_single_response = __esm({
|
|
7142
7225
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/single_response.js"() {
|
|
7226
|
+
init_reflect_polyfill();
|
|
7143
7227
|
init_tslib_es6();
|
|
7144
7228
|
init_es2015();
|
|
7145
7229
|
init_cert_id();
|
|
@@ -7175,6 +7259,7 @@ var init_single_response = __esm({
|
|
|
7175
7259
|
var Version2;
|
|
7176
7260
|
var init_types3 = __esm({
|
|
7177
7261
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/types.js"() {
|
|
7262
|
+
init_reflect_polyfill();
|
|
7178
7263
|
(function(Version3) {
|
|
7179
7264
|
Version3[Version3["v1"] = 0] = "v1";
|
|
7180
7265
|
})(Version2 || (Version2 = {}));
|
|
@@ -7185,6 +7270,7 @@ var init_types3 = __esm({
|
|
|
7185
7270
|
var ResponseData;
|
|
7186
7271
|
var init_response_data = __esm({
|
|
7187
7272
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_data.js"() {
|
|
7273
|
+
init_reflect_polyfill();
|
|
7188
7274
|
init_tslib_es6();
|
|
7189
7275
|
init_es2015();
|
|
7190
7276
|
init_es20152();
|
|
@@ -7222,6 +7308,7 @@ var init_response_data = __esm({
|
|
|
7222
7308
|
var BasicOCSPResponse;
|
|
7223
7309
|
var init_basic_ocsp_response = __esm({
|
|
7224
7310
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/basic_ocsp_response.js"() {
|
|
7311
|
+
init_reflect_polyfill();
|
|
7225
7312
|
init_tslib_es6();
|
|
7226
7313
|
init_es2015();
|
|
7227
7314
|
init_es20152();
|
|
@@ -7250,6 +7337,7 @@ var init_basic_ocsp_response = __esm({
|
|
|
7250
7337
|
});
|
|
7251
7338
|
var init_object_identifiers2 = __esm({
|
|
7252
7339
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/object_identifiers.js"() {
|
|
7340
|
+
init_reflect_polyfill();
|
|
7253
7341
|
init_es20152();
|
|
7254
7342
|
}
|
|
7255
7343
|
});
|
|
@@ -7258,6 +7346,7 @@ var init_object_identifiers2 = __esm({
|
|
|
7258
7346
|
var Signature;
|
|
7259
7347
|
var init_signature = __esm({
|
|
7260
7348
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/signature.js"() {
|
|
7349
|
+
init_reflect_polyfill();
|
|
7261
7350
|
init_tslib_es6();
|
|
7262
7351
|
init_es2015();
|
|
7263
7352
|
init_es20152();
|
|
@@ -7284,6 +7373,7 @@ var init_signature = __esm({
|
|
|
7284
7373
|
var Request;
|
|
7285
7374
|
var init_request = __esm({
|
|
7286
7375
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/request.js"() {
|
|
7376
|
+
init_reflect_polyfill();
|
|
7287
7377
|
init_tslib_es6();
|
|
7288
7378
|
init_es2015();
|
|
7289
7379
|
init_cert_id();
|
|
@@ -7307,6 +7397,7 @@ var init_request = __esm({
|
|
|
7307
7397
|
var TBSRequest;
|
|
7308
7398
|
var init_tbs_request = __esm({
|
|
7309
7399
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/tbs_request.js"() {
|
|
7400
|
+
init_reflect_polyfill();
|
|
7310
7401
|
init_tslib_es6();
|
|
7311
7402
|
init_es2015();
|
|
7312
7403
|
init_es20152();
|
|
@@ -7338,6 +7429,7 @@ var init_tbs_request = __esm({
|
|
|
7338
7429
|
var OCSPRequest;
|
|
7339
7430
|
var init_ocsp_request = __esm({
|
|
7340
7431
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_request.js"() {
|
|
7432
|
+
init_reflect_polyfill();
|
|
7341
7433
|
init_tslib_es6();
|
|
7342
7434
|
init_es2015();
|
|
7343
7435
|
init_signature();
|
|
@@ -7361,6 +7453,7 @@ var init_ocsp_request = __esm({
|
|
|
7361
7453
|
var OCSPResponseStatus;
|
|
7362
7454
|
var init_ocsp_response_status = __esm({
|
|
7363
7455
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response_status.js"() {
|
|
7456
|
+
init_reflect_polyfill();
|
|
7364
7457
|
(function(OCSPResponseStatus2) {
|
|
7365
7458
|
OCSPResponseStatus2[OCSPResponseStatus2["successful"] = 0] = "successful";
|
|
7366
7459
|
OCSPResponseStatus2[OCSPResponseStatus2["malformedRequest"] = 1] = "malformedRequest";
|
|
@@ -7376,6 +7469,7 @@ var init_ocsp_response_status = __esm({
|
|
|
7376
7469
|
var ResponseBytes;
|
|
7377
7470
|
var init_response_bytes = __esm({
|
|
7378
7471
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_bytes.js"() {
|
|
7472
|
+
init_reflect_polyfill();
|
|
7379
7473
|
init_tslib_es6();
|
|
7380
7474
|
init_es2015();
|
|
7381
7475
|
ResponseBytes = class {
|
|
@@ -7398,6 +7492,7 @@ var init_response_bytes = __esm({
|
|
|
7398
7492
|
var OCSPResponse;
|
|
7399
7493
|
var init_ocsp_response = __esm({
|
|
7400
7494
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response.js"() {
|
|
7495
|
+
init_reflect_polyfill();
|
|
7401
7496
|
init_tslib_es6();
|
|
7402
7497
|
init_es2015();
|
|
7403
7498
|
init_ocsp_response_status();
|
|
@@ -7420,6 +7515,7 @@ var init_ocsp_response = __esm({
|
|
|
7420
7515
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/index.js
|
|
7421
7516
|
var init_es20153 = __esm({
|
|
7422
7517
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/index.js"() {
|
|
7518
|
+
init_reflect_polyfill();
|
|
7423
7519
|
init_extensions2();
|
|
7424
7520
|
init_basic_ocsp_response();
|
|
7425
7521
|
init_cert_id();
|
|
@@ -7486,6 +7582,7 @@ function hexToBigIntBytes(hex) {
|
|
|
7486
7582
|
var DEFAULT_MAX_RESPONSE_AGE_MS, OcspClient;
|
|
7487
7583
|
var init_OcspClient = __esm({
|
|
7488
7584
|
"src/trust/OcspClient.ts"() {
|
|
7585
|
+
init_reflect_polyfill();
|
|
7489
7586
|
init_es2015();
|
|
7490
7587
|
init_es20153();
|
|
7491
7588
|
init_es20152();
|
|
@@ -7789,6 +7886,7 @@ function extractCrlUrls(cert) {
|
|
|
7789
7886
|
var RevocationChecker;
|
|
7790
7887
|
var init_RevocationChecker = __esm({
|
|
7791
7888
|
"src/trust/RevocationChecker.ts"() {
|
|
7889
|
+
init_reflect_polyfill();
|
|
7792
7890
|
init_es20152();
|
|
7793
7891
|
init_es2015();
|
|
7794
7892
|
init_errors();
|
|
@@ -7885,6 +7983,7 @@ function mapLoA(uris) {
|
|
|
7885
7983
|
var LOA_MAPPING;
|
|
7886
7984
|
var init_lotl_loa_mapping = __esm({
|
|
7887
7985
|
"src/trust/lotl-loa-mapping.ts"() {
|
|
7986
|
+
init_reflect_polyfill();
|
|
7888
7987
|
LOA_MAPPING = Object.freeze({
|
|
7889
7988
|
// Qualified electronic signature / seal — substantial + high are both
|
|
7890
7989
|
// expressed via `qualified` in ETSI, not LoA. The LoA URIs below apply to
|
|
@@ -7905,6 +8004,7 @@ function deriveServiceMetadata(service) {
|
|
|
7905
8004
|
}
|
|
7906
8005
|
var init_service_metadata = __esm({
|
|
7907
8006
|
"src/trust/service-metadata.ts"() {
|
|
8007
|
+
init_reflect_polyfill();
|
|
7908
8008
|
init_lotl_loa_mapping();
|
|
7909
8009
|
}
|
|
7910
8010
|
});
|
|
@@ -7936,6 +8036,7 @@ function buildProvenance(service, anchorSki) {
|
|
|
7936
8036
|
var ProvenanceResolver;
|
|
7937
8037
|
var init_ProvenanceResolver = __esm({
|
|
7938
8038
|
"src/trust/ProvenanceResolver.ts"() {
|
|
8039
|
+
init_reflect_polyfill();
|
|
7939
8040
|
init_service_metadata();
|
|
7940
8041
|
init_x509_utils();
|
|
7941
8042
|
ProvenanceResolver = class {
|
|
@@ -8003,6 +8104,7 @@ async function resolveProvenance(store, anchor) {
|
|
|
8003
8104
|
var TrustEvaluator;
|
|
8004
8105
|
var init_TrustEvaluator = __esm({
|
|
8005
8106
|
"src/trust/TrustEvaluator.ts"() {
|
|
8107
|
+
init_reflect_polyfill();
|
|
8006
8108
|
init_errors();
|
|
8007
8109
|
init_ChainBuilder();
|
|
8008
8110
|
init_RevocationChecker();
|
|
@@ -8090,6 +8192,13 @@ var init_TrustEvaluator = __esm({
|
|
|
8090
8192
|
};
|
|
8091
8193
|
}
|
|
8092
8194
|
});
|
|
8195
|
+
|
|
8196
|
+
// src/index.ts
|
|
8197
|
+
init_reflect_polyfill();
|
|
8198
|
+
init_reflect_polyfill();
|
|
8199
|
+
|
|
8200
|
+
// src/authorization.ts
|
|
8201
|
+
init_reflect_polyfill();
|
|
8093
8202
|
function createAuthorizationRequest(input, query) {
|
|
8094
8203
|
if (!input.clientId) throw new TypeError("clientId is required");
|
|
8095
8204
|
if (!input.nonce) throw new TypeError("nonce is required");
|
|
@@ -8114,6 +8223,7 @@ function createAuthorizationRequest(input, query) {
|
|
|
8114
8223
|
}
|
|
8115
8224
|
|
|
8116
8225
|
// src/signed-authorization.ts
|
|
8226
|
+
init_reflect_polyfill();
|
|
8117
8227
|
init_errors();
|
|
8118
8228
|
var DEFAULT_SUPPORTED_ENC_VALUES = ["A128GCM", "A256GCM"];
|
|
8119
8229
|
var SUPPORTED_SIGNING_ALGS = /* @__PURE__ */ new Set(["ES256", "ES384", "RS256"]);
|
|
@@ -8137,14 +8247,23 @@ async function createSignedAuthorizationRequest(input, query) {
|
|
|
8137
8247
|
"vpFormatsSupported is required and must be non-empty"
|
|
8138
8248
|
);
|
|
8139
8249
|
}
|
|
8250
|
+
const clientIdPrefix = input.clientIdPrefix ?? "x509_san_dns";
|
|
8140
8251
|
const leafCert = new X509Certificate(toArrayBuffer(input.certificateChain[0]));
|
|
8141
|
-
|
|
8142
|
-
if (!sanDnsNames.includes(input.hostname)) {
|
|
8252
|
+
if (clientIdPrefix === "x509_san_dns" && !input.hostname) {
|
|
8143
8253
|
throw new SignedRequestBuildError(
|
|
8144
|
-
"
|
|
8145
|
-
|
|
8254
|
+
"missing_hostname",
|
|
8255
|
+
'hostname is required for clientIdPrefix "x509_san_dns"'
|
|
8146
8256
|
);
|
|
8147
8257
|
}
|
|
8258
|
+
if (input.hostname) {
|
|
8259
|
+
const sanDnsNames = extractDnsNames(leafCert);
|
|
8260
|
+
if (!sanDnsNames.includes(input.hostname)) {
|
|
8261
|
+
throw new SignedRequestBuildError(
|
|
8262
|
+
"hostname_cert_mismatch",
|
|
8263
|
+
`leaf cert SAN DNSName values [${sanDnsNames.join(", ")}] do not include hostname "${input.hostname}"`
|
|
8264
|
+
);
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8148
8267
|
const signerPublicSpki = new Uint8Array(
|
|
8149
8268
|
await crypto.subtle.exportKey("spki", input.signer.publicKey)
|
|
8150
8269
|
);
|
|
@@ -8171,7 +8290,7 @@ async function createSignedAuthorizationRequest(input, query) {
|
|
|
8171
8290
|
}
|
|
8172
8291
|
}
|
|
8173
8292
|
const state = input.state ?? v4();
|
|
8174
|
-
const clientId = `x509_san_dns:${input.hostname}`;
|
|
8293
|
+
const clientId = clientIdPrefix === "x509_hash" ? `x509_hash:${await sha256Base64Url(input.certificateChain[0])}` : `x509_san_dns:${input.hostname}`;
|
|
8175
8294
|
const now = Math.floor(Date.now() / 1e3);
|
|
8176
8295
|
const clientMetadata = {
|
|
8177
8296
|
vp_formats_supported: input.vpFormatsSupported
|
|
@@ -8188,8 +8307,6 @@ async function createSignedAuthorizationRequest(input, query) {
|
|
|
8188
8307
|
clientMetadata.jwks = { keys: [jwk] };
|
|
8189
8308
|
const encValues = enc3 ?? [...DEFAULT_SUPPORTED_ENC_VALUES];
|
|
8190
8309
|
clientMetadata.encrypted_response_enc_values_supported = encValues;
|
|
8191
|
-
clientMetadata.authorization_encrypted_response_alg = "ECDH-ES";
|
|
8192
|
-
clientMetadata.authorization_encrypted_response_enc = encValues[0];
|
|
8193
8310
|
}
|
|
8194
8311
|
const payload = {
|
|
8195
8312
|
iss: clientId,
|
|
@@ -8234,6 +8351,10 @@ function bytesEqual(a, b) {
|
|
|
8234
8351
|
}
|
|
8235
8352
|
return true;
|
|
8236
8353
|
}
|
|
8354
|
+
async function sha256Base64Url(derCert) {
|
|
8355
|
+
const digest = new Uint8Array(await crypto.subtle.digest("SHA-256", toArrayBuffer(derCert)));
|
|
8356
|
+
return bytesToBase64(digest).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
8357
|
+
}
|
|
8237
8358
|
function bytesToBase64(bytes) {
|
|
8238
8359
|
let s = "";
|
|
8239
8360
|
for (let i = 0; i < bytes.length; i++) s += String.fromCharCode(bytes[i]);
|
|
@@ -8246,6 +8367,7 @@ function toArrayBuffer(bytes) {
|
|
|
8246
8367
|
}
|
|
8247
8368
|
|
|
8248
8369
|
// src/haip.ts
|
|
8370
|
+
init_reflect_polyfill();
|
|
8249
8371
|
init_errors();
|
|
8250
8372
|
var HAIP_DOCTYPE_NAMESPACES = {
|
|
8251
8373
|
"org.iso.18013.5.1.mDL": "org.iso.18013.5.1",
|
|
@@ -8360,7 +8482,14 @@ function isHaipQuery(query) {
|
|
|
8360
8482
|
}
|
|
8361
8483
|
}
|
|
8362
8484
|
|
|
8485
|
+
// src/presentation.ts
|
|
8486
|
+
init_reflect_polyfill();
|
|
8487
|
+
|
|
8488
|
+
// src/parsers/mdoc.parser.ts
|
|
8489
|
+
init_reflect_polyfill();
|
|
8490
|
+
|
|
8363
8491
|
// src/crypto/cose-sign1.ts
|
|
8492
|
+
init_reflect_polyfill();
|
|
8364
8493
|
init_errors();
|
|
8365
8494
|
var decoder = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8366
8495
|
var HEADER_ALG = 1;
|
|
@@ -8461,6 +8590,7 @@ async function verifyCoseSign1(coseSign1, publicKey, allowedAlgorithms) {
|
|
|
8461
8590
|
}
|
|
8462
8591
|
|
|
8463
8592
|
// src/crypto/device-auth.ts
|
|
8593
|
+
init_reflect_polyfill();
|
|
8464
8594
|
init_errors();
|
|
8465
8595
|
var enc = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8466
8596
|
var HEADER_ALG2 = 1;
|
|
@@ -8586,6 +8716,7 @@ function extractTag24Inner(value) {
|
|
|
8586
8716
|
}
|
|
8587
8717
|
|
|
8588
8718
|
// src/crypto/digest.ts
|
|
8719
|
+
init_reflect_polyfill();
|
|
8589
8720
|
init_errors();
|
|
8590
8721
|
var decoder2 = new Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8591
8722
|
var ALLOWED_HASH_ALGS = /* @__PURE__ */ new Set(["SHA-256", "SHA-384", "SHA-512"]);
|
|
@@ -8650,6 +8781,7 @@ async function verifyAllDigests(nameSpaces, mso) {
|
|
|
8650
8781
|
}
|
|
8651
8782
|
|
|
8652
8783
|
// src/crypto/mso.ts
|
|
8784
|
+
init_reflect_polyfill();
|
|
8653
8785
|
init_errors();
|
|
8654
8786
|
var decoder3 = new Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8655
8787
|
function decodeDateLike(value) {
|
|
@@ -9092,6 +9224,7 @@ var MdocParser = class {
|
|
|
9092
9224
|
};
|
|
9093
9225
|
|
|
9094
9226
|
// src/parsers/sd-jwt.parser.ts
|
|
9227
|
+
init_reflect_polyfill();
|
|
9095
9228
|
init_errors();
|
|
9096
9229
|
var DEFAULT_ALLOWED_ALGORITHMS2 = ["ES256", "ES384", "ES512"];
|
|
9097
9230
|
var sha256Hasher = async (data, _alg) => {
|
|
@@ -9463,7 +9596,11 @@ async function parsePresentation(vpToken, options) {
|
|
|
9463
9596
|
};
|
|
9464
9597
|
}
|
|
9465
9598
|
|
|
9599
|
+
// src/verify.ts
|
|
9600
|
+
init_reflect_polyfill();
|
|
9601
|
+
|
|
9466
9602
|
// src/decrypt-response.ts
|
|
9603
|
+
init_reflect_polyfill();
|
|
9467
9604
|
init_errors();
|
|
9468
9605
|
var SUPPORTED_ALG = "ECDH-ES";
|
|
9469
9606
|
var SUPPORTED_ENC = /* @__PURE__ */ new Set(["A128GCM", "A256GCM"]);
|
|
@@ -9497,6 +9634,9 @@ async function decryptAuthorizationResponse(jwe, privateKey) {
|
|
|
9497
9634
|
});
|
|
9498
9635
|
}
|
|
9499
9636
|
}
|
|
9637
|
+
|
|
9638
|
+
// src/crypto/session-transcript.ts
|
|
9639
|
+
init_reflect_polyfill();
|
|
9500
9640
|
var enc2 = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
9501
9641
|
async function sha256(bytes) {
|
|
9502
9642
|
return new Uint8Array(await crypto.subtle.digest("SHA-256", bytes));
|
|
@@ -9665,6 +9805,7 @@ async function verifyAuthorizationResponse(envelope, query, options) {
|
|
|
9665
9805
|
init_errors();
|
|
9666
9806
|
|
|
9667
9807
|
// src/trust/Cache.ts
|
|
9808
|
+
init_reflect_polyfill();
|
|
9668
9809
|
var InMemoryCache = class {
|
|
9669
9810
|
entries = /* @__PURE__ */ new Map();
|
|
9670
9811
|
maxEntries;
|
|
@@ -9696,7 +9837,11 @@ var InMemoryCache = class {
|
|
|
9696
9837
|
}
|
|
9697
9838
|
};
|
|
9698
9839
|
|
|
9840
|
+
// src/trust/index.ts
|
|
9841
|
+
init_reflect_polyfill();
|
|
9842
|
+
|
|
9699
9843
|
// src/trust/TrustStore.ts
|
|
9844
|
+
init_reflect_polyfill();
|
|
9700
9845
|
init_x509_utils();
|
|
9701
9846
|
var StaticTrustStore = class {
|
|
9702
9847
|
anchors = [];
|
|
@@ -9775,6 +9920,12 @@ function pushInto(map, key, anchor) {
|
|
|
9775
9920
|
function bytesToHex3(bytes) {
|
|
9776
9921
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
9777
9922
|
}
|
|
9923
|
+
|
|
9924
|
+
// src/trust/LotlTrustStore.ts
|
|
9925
|
+
init_reflect_polyfill();
|
|
9926
|
+
|
|
9927
|
+
// src/trust/lotl-signing-anchors.ts
|
|
9928
|
+
init_reflect_polyfill();
|
|
9778
9929
|
var PEM_ANCHORS = [
|
|
9779
9930
|
`-----BEGIN CERTIFICATE-----
|
|
9780
9931
|
MIIIoDCCBoigAwIBAgIUc8IcSUtVEKAMMvHm9QWU05kXsPUwDQYJKoZIhvcNAQEN
|
|
@@ -9831,6 +9982,7 @@ var EU_LOTL_SIGNING_ANCHORS = Object.freeze(
|
|
|
9831
9982
|
);
|
|
9832
9983
|
|
|
9833
9984
|
// src/trust/LotlFetcher.ts
|
|
9985
|
+
init_reflect_polyfill();
|
|
9834
9986
|
init_errors();
|
|
9835
9987
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
9836
9988
|
var LotlFetcher = class {
|
|
@@ -9941,6 +10093,12 @@ function buildImportAlgorithm(algName, pubKeyAlg) {
|
|
|
9941
10093
|
hash: { name: hashName }
|
|
9942
10094
|
};
|
|
9943
10095
|
}
|
|
10096
|
+
|
|
10097
|
+
// src/trust/LotlParser.ts
|
|
10098
|
+
init_reflect_polyfill();
|
|
10099
|
+
|
|
10100
|
+
// src/trust/xml-util.ts
|
|
10101
|
+
init_reflect_polyfill();
|
|
9944
10102
|
function firstChild(parent, ns, name) {
|
|
9945
10103
|
const list = parent.getElementsByTagNameNS(ns, name);
|
|
9946
10104
|
return list.length > 0 ? list.item(0) : null;
|
|
@@ -10031,6 +10189,7 @@ function parsePointer(el) {
|
|
|
10031
10189
|
}
|
|
10032
10190
|
|
|
10033
10191
|
// src/trust/NationalTlResolver.ts
|
|
10192
|
+
init_reflect_polyfill();
|
|
10034
10193
|
var TSL_NS2 = "http://uri.etsi.org/02231/v2#";
|
|
10035
10194
|
var NationalTlResolver = class {
|
|
10036
10195
|
constructor(opts) {
|
|
@@ -10271,7 +10430,7 @@ function equalBytes(a, b) {
|
|
|
10271
10430
|
|
|
10272
10431
|
// src/index.ts
|
|
10273
10432
|
init_errors();
|
|
10274
|
-
var VERSION = "0.
|
|
10433
|
+
var VERSION = "0.10.0";
|
|
10275
10434
|
/*! Bundled license information:
|
|
10276
10435
|
|
|
10277
10436
|
pvtsutils/build/index.es.js:
|