@openeudi/openid4vp 0.9.1 → 0.9.3
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 +31 -4
- package/dist/index.cjs +150 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +150 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('reflect-metadata');
|
|
3
4
|
var x509 = require('@peculiar/x509');
|
|
4
5
|
var uuid = require('uuid');
|
|
5
6
|
var jose = require('jose');
|
|
@@ -38,11 +39,16 @@ var __export = (target, all) => {
|
|
|
38
39
|
for (var name in all)
|
|
39
40
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
41
|
};
|
|
42
|
+
var init_reflect_polyfill = __esm({
|
|
43
|
+
"src/reflect-polyfill.ts"() {
|
|
44
|
+
}
|
|
45
|
+
});
|
|
41
46
|
|
|
42
47
|
// src/errors.ts
|
|
43
48
|
exports.InvalidSignatureError = void 0; exports.ExpiredCredentialError = void 0; exports.UnsupportedFormatError = void 0; exports.MalformedCredentialError = void 0; exports.NonceValidationError = void 0; exports.HaipValidationError = void 0; exports.OpenID4VPError = void 0; exports.TrustAnchorNotFoundError = void 0; exports.CertificateChainError = void 0; exports.RevokedCertificateError = void 0; exports.RevocationCheckFailedError = void 0; exports.LotlFetchError = void 0; exports.LotlSignatureError = void 0; exports.SignedRequestBuildError = void 0; exports.UnsupportedJweError = void 0; exports.DecryptionFailedError = void 0; exports.MissingDecryptionKeyError = void 0; exports.MissingVerifierEncryptionKeyError = void 0; exports.MultipleCredentialsNotSupportedError = void 0;
|
|
44
49
|
var init_errors = __esm({
|
|
45
50
|
"src/errors.ts"() {
|
|
51
|
+
init_reflect_polyfill();
|
|
46
52
|
exports.InvalidSignatureError = class extends Error {
|
|
47
53
|
constructor(message = "Credential signature validation failed") {
|
|
48
54
|
super(message);
|
|
@@ -206,6 +212,7 @@ function isEqual(bytes1, bytes2) {
|
|
|
206
212
|
var ARRAY_BUFFER_NAME, BufferSourceConverter, STRING_TYPE, HEX_REGEX, BASE64_REGEX, BASE64URL_REGEX, Utf8Converter, Utf16Converter, Convert;
|
|
207
213
|
var init_index_es = __esm({
|
|
208
214
|
"node_modules/pvtsutils/build/index.es.js"() {
|
|
215
|
+
init_reflect_polyfill();
|
|
209
216
|
ARRAY_BUFFER_NAME = "[object ArrayBuffer]";
|
|
210
217
|
BufferSourceConverter = class _BufferSourceConverter {
|
|
211
218
|
static isArrayBuffer(data) {
|
|
@@ -662,6 +669,7 @@ function padNumber(inputNumber, fullLength) {
|
|
|
662
669
|
}
|
|
663
670
|
var init_utils_es = __esm({
|
|
664
671
|
"node_modules/pvutils/build/utils.es.js"() {
|
|
672
|
+
init_reflect_polyfill();
|
|
665
673
|
}
|
|
666
674
|
});
|
|
667
675
|
|
|
@@ -1498,6 +1506,7 @@ function verifySchema(inputBuffer, inputSchema) {
|
|
|
1498
1506
|
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;
|
|
1499
1507
|
var init_index_es2 = __esm({
|
|
1500
1508
|
"node_modules/asn1js/build/index.es.js"() {
|
|
1509
|
+
init_reflect_polyfill();
|
|
1501
1510
|
init_index_es();
|
|
1502
1511
|
init_utils_es();
|
|
1503
1512
|
ViewWriter = class {
|
|
@@ -3734,6 +3743,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
3734
3743
|
var AsnTypeTypes, AsnPropTypes;
|
|
3735
3744
|
var init_enums = __esm({
|
|
3736
3745
|
"node_modules/@peculiar/asn1-schema/build/es2015/enums.js"() {
|
|
3746
|
+
init_reflect_polyfill();
|
|
3737
3747
|
(function(AsnTypeTypes2) {
|
|
3738
3748
|
AsnTypeTypes2[AsnTypeTypes2["Sequence"] = 0] = "Sequence";
|
|
3739
3749
|
AsnTypeTypes2[AsnTypeTypes2["Set"] = 1] = "Set";
|
|
@@ -3775,6 +3785,7 @@ var init_enums = __esm({
|
|
|
3775
3785
|
var BitString2;
|
|
3776
3786
|
var init_bit_string = __esm({
|
|
3777
3787
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js"() {
|
|
3788
|
+
init_reflect_polyfill();
|
|
3778
3789
|
init_index_es2();
|
|
3779
3790
|
init_index_es();
|
|
3780
3791
|
BitString2 = class {
|
|
@@ -3839,6 +3850,7 @@ var init_bit_string = __esm({
|
|
|
3839
3850
|
var OctetString2;
|
|
3840
3851
|
var init_octet_string = __esm({
|
|
3841
3852
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js"() {
|
|
3853
|
+
init_reflect_polyfill();
|
|
3842
3854
|
init_index_es2();
|
|
3843
3855
|
init_index_es();
|
|
3844
3856
|
OctetString2 = class {
|
|
@@ -3881,6 +3893,7 @@ var init_octet_string = __esm({
|
|
|
3881
3893
|
// node_modules/@peculiar/asn1-schema/build/es2015/types/index.js
|
|
3882
3894
|
var init_types = __esm({
|
|
3883
3895
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/index.js"() {
|
|
3896
|
+
init_reflect_polyfill();
|
|
3884
3897
|
init_bit_string();
|
|
3885
3898
|
init_octet_string();
|
|
3886
3899
|
}
|
|
@@ -3946,6 +3959,7 @@ function defaultConverter(type) {
|
|
|
3946
3959
|
var AsnAnyConverter, AsnIntegerConverter, AsnEnumeratedConverter, AsnIntegerArrayBufferConverter, AsnBitStringConverter, AsnObjectIdentifierConverter, AsnBooleanConverter, AsnOctetStringConverter, AsnUtf8StringConverter, AsnBmpStringConverter, AsnUniversalStringConverter, AsnNumericStringConverter, AsnPrintableStringConverter, AsnTeletexStringConverter, AsnVideotexStringConverter, AsnIA5StringConverter, AsnGraphicStringConverter, AsnVisibleStringConverter, AsnGeneralStringConverter, AsnCharacterStringConverter, AsnUTCTimeConverter, AsnGeneralizedTimeConverter, AsnNullConverter;
|
|
3947
3960
|
var init_converters = __esm({
|
|
3948
3961
|
"node_modules/@peculiar/asn1-schema/build/es2015/converters.js"() {
|
|
3962
|
+
init_reflect_polyfill();
|
|
3949
3963
|
init_index_es2();
|
|
3950
3964
|
init_enums();
|
|
3951
3965
|
init_types();
|
|
@@ -4060,6 +4074,7 @@ function isArrayEqual(bytes1, bytes2) {
|
|
|
4060
4074
|
}
|
|
4061
4075
|
var init_helper = __esm({
|
|
4062
4076
|
"node_modules/@peculiar/asn1-schema/build/es2015/helper.js"() {
|
|
4077
|
+
init_reflect_polyfill();
|
|
4063
4078
|
}
|
|
4064
4079
|
});
|
|
4065
4080
|
|
|
@@ -4067,6 +4082,7 @@ var init_helper = __esm({
|
|
|
4067
4082
|
var AsnSchemaStorage;
|
|
4068
4083
|
var init_schema = __esm({
|
|
4069
4084
|
"node_modules/@peculiar/asn1-schema/build/es2015/schema.js"() {
|
|
4085
|
+
init_reflect_polyfill();
|
|
4070
4086
|
init_index_es2();
|
|
4071
4087
|
init_enums();
|
|
4072
4088
|
init_helper();
|
|
@@ -4199,6 +4215,7 @@ var init_schema = __esm({
|
|
|
4199
4215
|
var schemaStorage;
|
|
4200
4216
|
var init_storage = __esm({
|
|
4201
4217
|
"node_modules/@peculiar/asn1-schema/build/es2015/storage.js"() {
|
|
4218
|
+
init_reflect_polyfill();
|
|
4202
4219
|
init_schema();
|
|
4203
4220
|
schemaStorage = new AsnSchemaStorage();
|
|
4204
4221
|
}
|
|
@@ -4208,6 +4225,7 @@ var init_storage = __esm({
|
|
|
4208
4225
|
var AsnType, AsnProp;
|
|
4209
4226
|
var init_decorators = __esm({
|
|
4210
4227
|
"node_modules/@peculiar/asn1-schema/build/es2015/decorators.js"() {
|
|
4228
|
+
init_reflect_polyfill();
|
|
4211
4229
|
init_converters();
|
|
4212
4230
|
init_enums();
|
|
4213
4231
|
init_storage();
|
|
@@ -4247,6 +4265,7 @@ var init_decorators = __esm({
|
|
|
4247
4265
|
var AsnSchemaValidationError;
|
|
4248
4266
|
var init_schema_validation = __esm({
|
|
4249
4267
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js"() {
|
|
4268
|
+
init_reflect_polyfill();
|
|
4250
4269
|
AsnSchemaValidationError = class extends Error {
|
|
4251
4270
|
constructor() {
|
|
4252
4271
|
super(...arguments);
|
|
@@ -4259,6 +4278,7 @@ var init_schema_validation = __esm({
|
|
|
4259
4278
|
// node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js
|
|
4260
4279
|
var init_errors2 = __esm({
|
|
4261
4280
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js"() {
|
|
4281
|
+
init_reflect_polyfill();
|
|
4262
4282
|
init_schema_validation();
|
|
4263
4283
|
}
|
|
4264
4284
|
});
|
|
@@ -4267,6 +4287,7 @@ var init_errors2 = __esm({
|
|
|
4267
4287
|
var AsnParser;
|
|
4268
4288
|
var init_parser = __esm({
|
|
4269
4289
|
"node_modules/@peculiar/asn1-schema/build/es2015/parser.js"() {
|
|
4290
|
+
init_reflect_polyfill();
|
|
4270
4291
|
init_index_es2();
|
|
4271
4292
|
init_enums();
|
|
4272
4293
|
init_converters();
|
|
@@ -4553,6 +4574,7 @@ var init_parser = __esm({
|
|
|
4553
4574
|
var AsnSerializer;
|
|
4554
4575
|
var init_serializer = __esm({
|
|
4555
4576
|
"node_modules/@peculiar/asn1-schema/build/es2015/serializer.js"() {
|
|
4577
|
+
init_reflect_polyfill();
|
|
4556
4578
|
init_index_es2();
|
|
4557
4579
|
init_converters();
|
|
4558
4580
|
init_enums();
|
|
@@ -4697,6 +4719,7 @@ var init_serializer = __esm({
|
|
|
4697
4719
|
var AsnArray;
|
|
4698
4720
|
var init_objects = __esm({
|
|
4699
4721
|
"node_modules/@peculiar/asn1-schema/build/es2015/objects.js"() {
|
|
4722
|
+
init_reflect_polyfill();
|
|
4700
4723
|
AsnArray = class extends Array {
|
|
4701
4724
|
constructor(items = []) {
|
|
4702
4725
|
if (typeof items === "number") {
|
|
@@ -4716,6 +4739,7 @@ var init_objects = __esm({
|
|
|
4716
4739
|
var AsnConvert;
|
|
4717
4740
|
var init_convert = __esm({
|
|
4718
4741
|
"node_modules/@peculiar/asn1-schema/build/es2015/convert.js"() {
|
|
4742
|
+
init_reflect_polyfill();
|
|
4719
4743
|
init_index_es2();
|
|
4720
4744
|
init_index_es();
|
|
4721
4745
|
init_parser();
|
|
@@ -4742,6 +4766,7 @@ var init_convert = __esm({
|
|
|
4742
4766
|
// node_modules/@peculiar/asn1-schema/build/es2015/index.js
|
|
4743
4767
|
var init_es2015 = __esm({
|
|
4744
4768
|
"node_modules/@peculiar/asn1-schema/build/es2015/index.js"() {
|
|
4769
|
+
init_reflect_polyfill();
|
|
4745
4770
|
init_converters();
|
|
4746
4771
|
init_types();
|
|
4747
4772
|
init_decorators();
|
|
@@ -4763,6 +4788,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
4763
4788
|
}
|
|
4764
4789
|
var init_tslib_es6 = __esm({
|
|
4765
4790
|
"node_modules/tslib/tslib.es6.mjs"() {
|
|
4791
|
+
init_reflect_polyfill();
|
|
4766
4792
|
}
|
|
4767
4793
|
});
|
|
4768
4794
|
|
|
@@ -4770,6 +4796,7 @@ var init_tslib_es6 = __esm({
|
|
|
4770
4796
|
var IpConverter;
|
|
4771
4797
|
var init_ip_converter = __esm({
|
|
4772
4798
|
"node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js"() {
|
|
4799
|
+
init_reflect_polyfill();
|
|
4773
4800
|
init_index_es();
|
|
4774
4801
|
IpConverter = class {
|
|
4775
4802
|
static isIPv4(ip) {
|
|
@@ -4943,6 +4970,7 @@ var init_ip_converter = __esm({
|
|
|
4943
4970
|
var RelativeDistinguishedName_1, RDNSequence_1, Name_1, DirectoryString, AttributeValue, AttributeTypeAndValue, RelativeDistinguishedName, RDNSequence, Name;
|
|
4944
4971
|
var init_name = __esm({
|
|
4945
4972
|
"node_modules/@peculiar/asn1-x509/build/es2015/name.js"() {
|
|
4973
|
+
init_reflect_polyfill();
|
|
4946
4974
|
init_tslib_es6();
|
|
4947
4975
|
init_es2015();
|
|
4948
4976
|
init_index_es();
|
|
@@ -5037,6 +5065,7 @@ var init_name = __esm({
|
|
|
5037
5065
|
var AsnIpConverter, OtherName, EDIPartyName, GeneralName;
|
|
5038
5066
|
var init_general_name = __esm({
|
|
5039
5067
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_name.js"() {
|
|
5068
|
+
init_reflect_polyfill();
|
|
5040
5069
|
init_tslib_es6();
|
|
5041
5070
|
init_es2015();
|
|
5042
5071
|
init_ip_converter();
|
|
@@ -5114,6 +5143,7 @@ var init_general_name = __esm({
|
|
|
5114
5143
|
});
|
|
5115
5144
|
var init_object_identifiers = __esm({
|
|
5116
5145
|
"node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js"() {
|
|
5146
|
+
init_reflect_polyfill();
|
|
5117
5147
|
}
|
|
5118
5148
|
});
|
|
5119
5149
|
|
|
@@ -5121,6 +5151,7 @@ var init_object_identifiers = __esm({
|
|
|
5121
5151
|
var AuthorityInfoAccessSyntax_1, AccessDescription, AuthorityInfoAccessSyntax;
|
|
5122
5152
|
var init_authority_information_access = __esm({
|
|
5123
5153
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js"() {
|
|
5154
|
+
init_reflect_polyfill();
|
|
5124
5155
|
init_tslib_es6();
|
|
5125
5156
|
init_es2015();
|
|
5126
5157
|
init_general_name();
|
|
@@ -5154,6 +5185,7 @@ var init_authority_information_access = __esm({
|
|
|
5154
5185
|
var KeyIdentifier, AuthorityKeyIdentifier;
|
|
5155
5186
|
var init_authority_key_identifier = __esm({
|
|
5156
5187
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js"() {
|
|
5188
|
+
init_reflect_polyfill();
|
|
5157
5189
|
init_tslib_es6();
|
|
5158
5190
|
init_es2015();
|
|
5159
5191
|
init_general_name();
|
|
@@ -5189,6 +5221,7 @@ var init_authority_key_identifier = __esm({
|
|
|
5189
5221
|
var BasicConstraints;
|
|
5190
5222
|
var init_basic_constraints = __esm({
|
|
5191
5223
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js"() {
|
|
5224
|
+
init_reflect_polyfill();
|
|
5192
5225
|
init_tslib_es6();
|
|
5193
5226
|
init_es2015();
|
|
5194
5227
|
init_object_identifiers();
|
|
@@ -5211,6 +5244,7 @@ var init_basic_constraints = __esm({
|
|
|
5211
5244
|
var GeneralNames_1, GeneralNames;
|
|
5212
5245
|
var init_general_names = __esm({
|
|
5213
5246
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_names.js"() {
|
|
5247
|
+
init_reflect_polyfill();
|
|
5214
5248
|
init_tslib_es6();
|
|
5215
5249
|
init_es2015();
|
|
5216
5250
|
init_general_name();
|
|
@@ -5231,6 +5265,7 @@ var init_general_names = __esm({
|
|
|
5231
5265
|
var CertificateIssuer_1, CertificateIssuer;
|
|
5232
5266
|
var init_certificate_issuer = __esm({
|
|
5233
5267
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js"() {
|
|
5268
|
+
init_reflect_polyfill();
|
|
5234
5269
|
init_tslib_es6();
|
|
5235
5270
|
init_es2015();
|
|
5236
5271
|
init_general_names();
|
|
@@ -5251,6 +5286,7 @@ var init_certificate_issuer = __esm({
|
|
|
5251
5286
|
var CertificatePolicies_1, DisplayText, NoticeReference, UserNotice, Qualifier, PolicyQualifierInfo, PolicyInformation, CertificatePolicies;
|
|
5252
5287
|
var init_certificate_policies = __esm({
|
|
5253
5288
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js"() {
|
|
5289
|
+
init_reflect_polyfill();
|
|
5254
5290
|
init_tslib_es6();
|
|
5255
5291
|
init_es2015();
|
|
5256
5292
|
init_object_identifiers();
|
|
@@ -5356,6 +5392,7 @@ var init_certificate_policies = __esm({
|
|
|
5356
5392
|
var CRLNumber;
|
|
5357
5393
|
var init_crl_number = __esm({
|
|
5358
5394
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js"() {
|
|
5395
|
+
init_reflect_polyfill();
|
|
5359
5396
|
init_tslib_es6();
|
|
5360
5397
|
init_es2015();
|
|
5361
5398
|
init_object_identifiers();
|
|
@@ -5377,6 +5414,7 @@ var init_crl_number = __esm({
|
|
|
5377
5414
|
var BaseCRLNumber;
|
|
5378
5415
|
var init_crl_delta_indicator = __esm({
|
|
5379
5416
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js"() {
|
|
5417
|
+
init_reflect_polyfill();
|
|
5380
5418
|
init_tslib_es6();
|
|
5381
5419
|
init_es2015();
|
|
5382
5420
|
init_object_identifiers();
|
|
@@ -5393,6 +5431,7 @@ var init_crl_delta_indicator = __esm({
|
|
|
5393
5431
|
var CRLDistributionPoints_1, ReasonFlags, Reason, DistributionPointName, DistributionPoint, CRLDistributionPoints;
|
|
5394
5432
|
var init_crl_distribution_points = __esm({
|
|
5395
5433
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js"() {
|
|
5434
|
+
init_reflect_polyfill();
|
|
5396
5435
|
init_tslib_es6();
|
|
5397
5436
|
init_es2015();
|
|
5398
5437
|
init_name();
|
|
@@ -5490,6 +5529,7 @@ var init_crl_distribution_points = __esm({
|
|
|
5490
5529
|
var FreshestCRL_1, FreshestCRL;
|
|
5491
5530
|
var init_crl_freshest = __esm({
|
|
5492
5531
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js"() {
|
|
5532
|
+
init_reflect_polyfill();
|
|
5493
5533
|
init_tslib_es6();
|
|
5494
5534
|
init_es2015();
|
|
5495
5535
|
init_object_identifiers();
|
|
@@ -5510,6 +5550,7 @@ var init_crl_freshest = __esm({
|
|
|
5510
5550
|
var IssuingDistributionPoint;
|
|
5511
5551
|
var init_crl_issuing_distribution_point = __esm({
|
|
5512
5552
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js"() {
|
|
5553
|
+
init_reflect_polyfill();
|
|
5513
5554
|
init_tslib_es6();
|
|
5514
5555
|
init_es2015();
|
|
5515
5556
|
init_crl_distribution_points();
|
|
@@ -5570,6 +5611,7 @@ var init_crl_issuing_distribution_point = __esm({
|
|
|
5570
5611
|
var CRLReasons, CRLReason;
|
|
5571
5612
|
var init_crl_reason = __esm({
|
|
5572
5613
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js"() {
|
|
5614
|
+
init_reflect_polyfill();
|
|
5573
5615
|
init_tslib_es6();
|
|
5574
5616
|
init_es2015();
|
|
5575
5617
|
init_object_identifiers();
|
|
@@ -5610,6 +5652,7 @@ var init_crl_reason = __esm({
|
|
|
5610
5652
|
var ExtendedKeyUsage_1, ExtendedKeyUsage;
|
|
5611
5653
|
var init_extended_key_usage = __esm({
|
|
5612
5654
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js"() {
|
|
5655
|
+
init_reflect_polyfill();
|
|
5613
5656
|
init_tslib_es6();
|
|
5614
5657
|
init_es2015();
|
|
5615
5658
|
init_object_identifiers();
|
|
@@ -5629,6 +5672,7 @@ var init_extended_key_usage = __esm({
|
|
|
5629
5672
|
var InhibitAnyPolicy;
|
|
5630
5673
|
var init_inhibit_any_policy = __esm({
|
|
5631
5674
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js"() {
|
|
5675
|
+
init_reflect_polyfill();
|
|
5632
5676
|
init_tslib_es6();
|
|
5633
5677
|
init_es2015();
|
|
5634
5678
|
init_object_identifiers();
|
|
@@ -5650,6 +5694,7 @@ var init_inhibit_any_policy = __esm({
|
|
|
5650
5694
|
var InvalidityDate;
|
|
5651
5695
|
var init_invalidity_date = __esm({
|
|
5652
5696
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js"() {
|
|
5697
|
+
init_reflect_polyfill();
|
|
5653
5698
|
init_tslib_es6();
|
|
5654
5699
|
init_es2015();
|
|
5655
5700
|
init_object_identifiers();
|
|
@@ -5674,6 +5719,7 @@ var init_invalidity_date = __esm({
|
|
|
5674
5719
|
var IssueAlternativeName_1, IssueAlternativeName;
|
|
5675
5720
|
var init_issuer_alternative_name = __esm({
|
|
5676
5721
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js"() {
|
|
5722
|
+
init_reflect_polyfill();
|
|
5677
5723
|
init_tslib_es6();
|
|
5678
5724
|
init_es2015();
|
|
5679
5725
|
init_general_names();
|
|
@@ -5694,6 +5740,7 @@ var init_issuer_alternative_name = __esm({
|
|
|
5694
5740
|
var KeyUsageFlags;
|
|
5695
5741
|
var init_key_usage = __esm({
|
|
5696
5742
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js"() {
|
|
5743
|
+
init_reflect_polyfill();
|
|
5697
5744
|
init_es2015();
|
|
5698
5745
|
init_object_identifiers();
|
|
5699
5746
|
(function(KeyUsageFlags3) {
|
|
@@ -5714,6 +5761,7 @@ var init_key_usage = __esm({
|
|
|
5714
5761
|
var GeneralSubtrees_1, GeneralSubtree, GeneralSubtrees, NameConstraints;
|
|
5715
5762
|
var init_name_constraints = __esm({
|
|
5716
5763
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js"() {
|
|
5764
|
+
init_reflect_polyfill();
|
|
5717
5765
|
init_tslib_es6();
|
|
5718
5766
|
init_es2015();
|
|
5719
5767
|
init_general_name();
|
|
@@ -5761,6 +5809,7 @@ var init_name_constraints = __esm({
|
|
|
5761
5809
|
var PolicyConstraints;
|
|
5762
5810
|
var init_policy_constraints = __esm({
|
|
5763
5811
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js"() {
|
|
5812
|
+
init_reflect_polyfill();
|
|
5764
5813
|
init_tslib_es6();
|
|
5765
5814
|
init_es2015();
|
|
5766
5815
|
init_object_identifiers();
|
|
@@ -5794,6 +5843,7 @@ var init_policy_constraints = __esm({
|
|
|
5794
5843
|
var PolicyMappings_1, PolicyMapping, PolicyMappings;
|
|
5795
5844
|
var init_policy_mappings = __esm({
|
|
5796
5845
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js"() {
|
|
5846
|
+
init_reflect_polyfill();
|
|
5797
5847
|
init_tslib_es6();
|
|
5798
5848
|
init_es2015();
|
|
5799
5849
|
init_object_identifiers();
|
|
@@ -5826,6 +5876,7 @@ var init_policy_mappings = __esm({
|
|
|
5826
5876
|
var SubjectAlternativeName_1, SubjectAlternativeName;
|
|
5827
5877
|
var init_subject_alternative_name = __esm({
|
|
5828
5878
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js"() {
|
|
5879
|
+
init_reflect_polyfill();
|
|
5829
5880
|
init_tslib_es6();
|
|
5830
5881
|
init_es2015();
|
|
5831
5882
|
init_general_names();
|
|
@@ -5846,6 +5897,7 @@ var init_subject_alternative_name = __esm({
|
|
|
5846
5897
|
var Attribute;
|
|
5847
5898
|
var init_attribute = __esm({
|
|
5848
5899
|
"node_modules/@peculiar/asn1-x509/build/es2015/attribute.js"() {
|
|
5900
|
+
init_reflect_polyfill();
|
|
5849
5901
|
init_tslib_es6();
|
|
5850
5902
|
init_es2015();
|
|
5851
5903
|
Attribute = class {
|
|
@@ -5868,6 +5920,7 @@ var init_attribute = __esm({
|
|
|
5868
5920
|
var SubjectDirectoryAttributes_1, SubjectDirectoryAttributes;
|
|
5869
5921
|
var init_subject_directory_attributes = __esm({
|
|
5870
5922
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js"() {
|
|
5923
|
+
init_reflect_polyfill();
|
|
5871
5924
|
init_tslib_es6();
|
|
5872
5925
|
init_es2015();
|
|
5873
5926
|
init_attribute();
|
|
@@ -5885,6 +5938,7 @@ var init_subject_directory_attributes = __esm({
|
|
|
5885
5938
|
});
|
|
5886
5939
|
var init_subject_key_identifier = __esm({
|
|
5887
5940
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js"() {
|
|
5941
|
+
init_reflect_polyfill();
|
|
5888
5942
|
init_object_identifiers();
|
|
5889
5943
|
init_authority_key_identifier();
|
|
5890
5944
|
}
|
|
@@ -5894,6 +5948,7 @@ var init_subject_key_identifier = __esm({
|
|
|
5894
5948
|
var PrivateKeyUsagePeriod;
|
|
5895
5949
|
var init_private_key_usage_period = __esm({
|
|
5896
5950
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js"() {
|
|
5951
|
+
init_reflect_polyfill();
|
|
5897
5952
|
init_tslib_es6();
|
|
5898
5953
|
init_es2015();
|
|
5899
5954
|
init_object_identifiers();
|
|
@@ -5915,6 +5970,7 @@ var init_private_key_usage_period = __esm({
|
|
|
5915
5970
|
var EntrustInfoFlags, EntrustInfo, EntrustVersionInfo;
|
|
5916
5971
|
var init_entrust_version_info = __esm({
|
|
5917
5972
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js"() {
|
|
5973
|
+
init_reflect_polyfill();
|
|
5918
5974
|
init_tslib_es6();
|
|
5919
5975
|
init_es2015();
|
|
5920
5976
|
(function(EntrustInfoFlags2) {
|
|
@@ -5961,6 +6017,7 @@ var init_entrust_version_info = __esm({
|
|
|
5961
6017
|
var SubjectInfoAccessSyntax_1, SubjectInfoAccessSyntax;
|
|
5962
6018
|
var init_subject_info_access = __esm({
|
|
5963
6019
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js"() {
|
|
6020
|
+
init_reflect_polyfill();
|
|
5964
6021
|
init_tslib_es6();
|
|
5965
6022
|
init_es2015();
|
|
5966
6023
|
init_object_identifiers();
|
|
@@ -5980,6 +6037,7 @@ var init_subject_info_access = __esm({
|
|
|
5980
6037
|
// node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js
|
|
5981
6038
|
var init_extensions = __esm({
|
|
5982
6039
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js"() {
|
|
6040
|
+
init_reflect_polyfill();
|
|
5983
6041
|
init_authority_information_access();
|
|
5984
6042
|
init_authority_key_identifier();
|
|
5985
6043
|
init_basic_constraints();
|
|
@@ -6012,6 +6070,7 @@ var init_extensions = __esm({
|
|
|
6012
6070
|
var AlgorithmIdentifier;
|
|
6013
6071
|
var init_algorithm_identifier = __esm({
|
|
6014
6072
|
"node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js"() {
|
|
6073
|
+
init_reflect_polyfill();
|
|
6015
6074
|
init_tslib_es6();
|
|
6016
6075
|
init_es2015();
|
|
6017
6076
|
init_index_es();
|
|
@@ -6042,6 +6101,7 @@ var init_algorithm_identifier = __esm({
|
|
|
6042
6101
|
var SubjectPublicKeyInfo;
|
|
6043
6102
|
var init_subject_public_key_info = __esm({
|
|
6044
6103
|
"node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js"() {
|
|
6104
|
+
init_reflect_polyfill();
|
|
6045
6105
|
init_tslib_es6();
|
|
6046
6106
|
init_es2015();
|
|
6047
6107
|
init_algorithm_identifier();
|
|
@@ -6065,6 +6125,7 @@ var init_subject_public_key_info = __esm({
|
|
|
6065
6125
|
var Time;
|
|
6066
6126
|
var init_time = __esm({
|
|
6067
6127
|
"node_modules/@peculiar/asn1-x509/build/es2015/time.js"() {
|
|
6128
|
+
init_reflect_polyfill();
|
|
6068
6129
|
init_tslib_es6();
|
|
6069
6130
|
init_es2015();
|
|
6070
6131
|
Time = class Time2 {
|
|
@@ -6111,6 +6172,7 @@ var init_time = __esm({
|
|
|
6111
6172
|
var Validity;
|
|
6112
6173
|
var init_validity = __esm({
|
|
6113
6174
|
"node_modules/@peculiar/asn1-x509/build/es2015/validity.js"() {
|
|
6175
|
+
init_reflect_polyfill();
|
|
6114
6176
|
init_tslib_es6();
|
|
6115
6177
|
init_es2015();
|
|
6116
6178
|
init_time();
|
|
@@ -6137,6 +6199,7 @@ var init_validity = __esm({
|
|
|
6137
6199
|
var Extensions_1, Extension, Extensions;
|
|
6138
6200
|
var init_extension = __esm({
|
|
6139
6201
|
"node_modules/@peculiar/asn1-x509/build/es2015/extension.js"() {
|
|
6202
|
+
init_reflect_polyfill();
|
|
6140
6203
|
init_tslib_es6();
|
|
6141
6204
|
init_es2015();
|
|
6142
6205
|
Extension = class _Extension {
|
|
@@ -6176,6 +6239,7 @@ var init_extension = __esm({
|
|
|
6176
6239
|
var Version;
|
|
6177
6240
|
var init_types2 = __esm({
|
|
6178
6241
|
"node_modules/@peculiar/asn1-x509/build/es2015/types.js"() {
|
|
6242
|
+
init_reflect_polyfill();
|
|
6179
6243
|
(function(Version3) {
|
|
6180
6244
|
Version3[Version3["v1"] = 0] = "v1";
|
|
6181
6245
|
Version3[Version3["v2"] = 1] = "v2";
|
|
@@ -6188,6 +6252,7 @@ var init_types2 = __esm({
|
|
|
6188
6252
|
var TBSCertificate;
|
|
6189
6253
|
var init_tbs_certificate = __esm({
|
|
6190
6254
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js"() {
|
|
6255
|
+
init_reflect_polyfill();
|
|
6191
6256
|
init_tslib_es6();
|
|
6192
6257
|
init_es2015();
|
|
6193
6258
|
init_algorithm_identifier();
|
|
@@ -6257,6 +6322,7 @@ var init_tbs_certificate = __esm({
|
|
|
6257
6322
|
var Certificate;
|
|
6258
6323
|
var init_certificate = __esm({
|
|
6259
6324
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate.js"() {
|
|
6325
|
+
init_reflect_polyfill();
|
|
6260
6326
|
init_tslib_es6();
|
|
6261
6327
|
init_es2015();
|
|
6262
6328
|
init_algorithm_identifier();
|
|
@@ -6285,6 +6351,7 @@ var init_certificate = __esm({
|
|
|
6285
6351
|
var RevokedCertificate, TBSCertList;
|
|
6286
6352
|
var init_tbs_cert_list = __esm({
|
|
6287
6353
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js"() {
|
|
6354
|
+
init_reflect_polyfill();
|
|
6288
6355
|
init_tslib_es6();
|
|
6289
6356
|
init_es2015();
|
|
6290
6357
|
init_algorithm_identifier();
|
|
@@ -6343,6 +6410,7 @@ var init_tbs_cert_list = __esm({
|
|
|
6343
6410
|
var CertificateList;
|
|
6344
6411
|
var init_certificate_list = __esm({
|
|
6345
6412
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js"() {
|
|
6413
|
+
init_reflect_polyfill();
|
|
6346
6414
|
init_tslib_es6();
|
|
6347
6415
|
init_es2015();
|
|
6348
6416
|
init_algorithm_identifier();
|
|
@@ -6370,6 +6438,7 @@ var init_certificate_list = __esm({
|
|
|
6370
6438
|
// node_modules/@peculiar/asn1-x509/build/es2015/index.js
|
|
6371
6439
|
var init_es20152 = __esm({
|
|
6372
6440
|
"node_modules/@peculiar/asn1-x509/build/es2015/index.js"() {
|
|
6441
|
+
init_reflect_polyfill();
|
|
6373
6442
|
init_extensions();
|
|
6374
6443
|
init_algorithm_identifier();
|
|
6375
6444
|
init_attribute();
|
|
@@ -6413,6 +6482,7 @@ function getSkiBytes(cert) {
|
|
|
6413
6482
|
}
|
|
6414
6483
|
var init_x509_utils = __esm({
|
|
6415
6484
|
"src/trust/x509-utils.ts"() {
|
|
6485
|
+
init_reflect_polyfill();
|
|
6416
6486
|
}
|
|
6417
6487
|
});
|
|
6418
6488
|
function mapX509AlgoToJwaName(cert) {
|
|
@@ -6518,6 +6588,7 @@ function dnIsUnder(childDn, subtreeDn) {
|
|
|
6518
6588
|
var NAME_CONSTRAINTS_OID, DEFAULT_ALGORITHMS, ChainBuilder;
|
|
6519
6589
|
var init_ChainBuilder = __esm({
|
|
6520
6590
|
"src/trust/ChainBuilder.ts"() {
|
|
6591
|
+
init_reflect_polyfill();
|
|
6521
6592
|
init_es2015();
|
|
6522
6593
|
init_es20152();
|
|
6523
6594
|
init_errors();
|
|
@@ -6763,6 +6834,7 @@ function ecdsaDerToIeee(der, coordBytes) {
|
|
|
6763
6834
|
}
|
|
6764
6835
|
var init_ecdsa_util = __esm({
|
|
6765
6836
|
"src/trust/ecdsa-util.ts"() {
|
|
6837
|
+
init_reflect_polyfill();
|
|
6766
6838
|
}
|
|
6767
6839
|
});
|
|
6768
6840
|
|
|
@@ -6797,6 +6869,7 @@ function bytesToHex(bytes) {
|
|
|
6797
6869
|
var CrlFetcher;
|
|
6798
6870
|
var init_CrlFetcher = __esm({
|
|
6799
6871
|
"src/trust/CrlFetcher.ts"() {
|
|
6872
|
+
init_reflect_polyfill();
|
|
6800
6873
|
init_es2015();
|
|
6801
6874
|
init_es20152();
|
|
6802
6875
|
init_ecdsa_util();
|
|
@@ -6923,6 +6996,7 @@ var init_CrlFetcher = __esm({
|
|
|
6923
6996
|
var AcceptableResponses_1, AcceptableResponses;
|
|
6924
6997
|
var init_acceptable_responses = __esm({
|
|
6925
6998
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/acceptable_responses.js"() {
|
|
6999
|
+
init_reflect_polyfill();
|
|
6926
7000
|
init_tslib_es6();
|
|
6927
7001
|
init_es2015();
|
|
6928
7002
|
AcceptableResponses = AcceptableResponses_1 = class AcceptableResponses2 extends AsnArray {
|
|
@@ -6941,6 +7015,7 @@ var init_acceptable_responses = __esm({
|
|
|
6941
7015
|
var ArchiveCutoff;
|
|
6942
7016
|
var init_archive_cutoff = __esm({
|
|
6943
7017
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/archive_cutoff.js"() {
|
|
7018
|
+
init_reflect_polyfill();
|
|
6944
7019
|
init_tslib_es6();
|
|
6945
7020
|
init_es2015();
|
|
6946
7021
|
ArchiveCutoff = class ArchiveCutoff2 {
|
|
@@ -6961,6 +7036,7 @@ var init_archive_cutoff = __esm({
|
|
|
6961
7036
|
var ExtendedRevoke;
|
|
6962
7037
|
var init_extended_revoke = __esm({
|
|
6963
7038
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/extended_revoke.js"() {
|
|
7039
|
+
init_reflect_polyfill();
|
|
6964
7040
|
init_tslib_es6();
|
|
6965
7041
|
init_es2015();
|
|
6966
7042
|
ExtendedRevoke = class ExtendedRevoke2 {
|
|
@@ -6980,6 +7056,7 @@ var init_extended_revoke = __esm({
|
|
|
6980
7056
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js
|
|
6981
7057
|
var init_nonce = __esm({
|
|
6982
7058
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js"() {
|
|
7059
|
+
init_reflect_polyfill();
|
|
6983
7060
|
init_es2015();
|
|
6984
7061
|
}
|
|
6985
7062
|
});
|
|
@@ -6988,6 +7065,7 @@ var init_nonce = __esm({
|
|
|
6988
7065
|
var PreferredSignatureAlgorithms_1, PreferredSignatureAlgorithm, PreferredSignatureAlgorithms;
|
|
6989
7066
|
var init_preferred_signature_algorithms = __esm({
|
|
6990
7067
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/preferred_signature_algorithms.js"() {
|
|
7068
|
+
init_reflect_polyfill();
|
|
6991
7069
|
init_tslib_es6();
|
|
6992
7070
|
init_es2015();
|
|
6993
7071
|
init_es20152();
|
|
@@ -7019,6 +7097,7 @@ var init_preferred_signature_algorithms = __esm({
|
|
|
7019
7097
|
var ServiceLocator;
|
|
7020
7098
|
var init_service_locator = __esm({
|
|
7021
7099
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/service_locator.js"() {
|
|
7100
|
+
init_reflect_polyfill();
|
|
7022
7101
|
init_tslib_es6();
|
|
7023
7102
|
init_es2015();
|
|
7024
7103
|
init_es20152();
|
|
@@ -7041,6 +7120,7 @@ var init_service_locator = __esm({
|
|
|
7041
7120
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js
|
|
7042
7121
|
var init_extensions2 = __esm({
|
|
7043
7122
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js"() {
|
|
7123
|
+
init_reflect_polyfill();
|
|
7044
7124
|
init_acceptable_responses();
|
|
7045
7125
|
init_archive_cutoff();
|
|
7046
7126
|
init_extended_revoke();
|
|
@@ -7054,6 +7134,7 @@ var init_extensions2 = __esm({
|
|
|
7054
7134
|
var KeyHash, ResponderID;
|
|
7055
7135
|
var init_responder_id = __esm({
|
|
7056
7136
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/responder_id.js"() {
|
|
7137
|
+
init_reflect_polyfill();
|
|
7057
7138
|
init_tslib_es6();
|
|
7058
7139
|
init_es2015();
|
|
7059
7140
|
init_es20152();
|
|
@@ -7080,6 +7161,7 @@ var init_responder_id = __esm({
|
|
|
7080
7161
|
var CertID;
|
|
7081
7162
|
var init_cert_id = __esm({
|
|
7082
7163
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_id.js"() {
|
|
7164
|
+
init_reflect_polyfill();
|
|
7083
7165
|
init_tslib_es6();
|
|
7084
7166
|
init_es20152();
|
|
7085
7167
|
init_es2015();
|
|
@@ -7111,6 +7193,7 @@ var init_cert_id = __esm({
|
|
|
7111
7193
|
var RevokedInfo;
|
|
7112
7194
|
var init_revoked_info = __esm({
|
|
7113
7195
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/revoked_info.js"() {
|
|
7196
|
+
init_reflect_polyfill();
|
|
7114
7197
|
init_tslib_es6();
|
|
7115
7198
|
init_es2015();
|
|
7116
7199
|
init_es20152();
|
|
@@ -7133,6 +7216,7 @@ var init_revoked_info = __esm({
|
|
|
7133
7216
|
var CertStatus;
|
|
7134
7217
|
var init_cert_status = __esm({
|
|
7135
7218
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_status.js"() {
|
|
7219
|
+
init_reflect_polyfill();
|
|
7136
7220
|
init_tslib_es6();
|
|
7137
7221
|
init_es2015();
|
|
7138
7222
|
init_revoked_info();
|
|
@@ -7160,6 +7244,7 @@ var init_cert_status = __esm({
|
|
|
7160
7244
|
var SingleResponse;
|
|
7161
7245
|
var init_single_response = __esm({
|
|
7162
7246
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/single_response.js"() {
|
|
7247
|
+
init_reflect_polyfill();
|
|
7163
7248
|
init_tslib_es6();
|
|
7164
7249
|
init_es2015();
|
|
7165
7250
|
init_cert_id();
|
|
@@ -7195,6 +7280,7 @@ var init_single_response = __esm({
|
|
|
7195
7280
|
var Version2;
|
|
7196
7281
|
var init_types3 = __esm({
|
|
7197
7282
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/types.js"() {
|
|
7283
|
+
init_reflect_polyfill();
|
|
7198
7284
|
(function(Version3) {
|
|
7199
7285
|
Version3[Version3["v1"] = 0] = "v1";
|
|
7200
7286
|
})(Version2 || (Version2 = {}));
|
|
@@ -7205,6 +7291,7 @@ var init_types3 = __esm({
|
|
|
7205
7291
|
var ResponseData;
|
|
7206
7292
|
var init_response_data = __esm({
|
|
7207
7293
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_data.js"() {
|
|
7294
|
+
init_reflect_polyfill();
|
|
7208
7295
|
init_tslib_es6();
|
|
7209
7296
|
init_es2015();
|
|
7210
7297
|
init_es20152();
|
|
@@ -7242,6 +7329,7 @@ var init_response_data = __esm({
|
|
|
7242
7329
|
var BasicOCSPResponse;
|
|
7243
7330
|
var init_basic_ocsp_response = __esm({
|
|
7244
7331
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/basic_ocsp_response.js"() {
|
|
7332
|
+
init_reflect_polyfill();
|
|
7245
7333
|
init_tslib_es6();
|
|
7246
7334
|
init_es2015();
|
|
7247
7335
|
init_es20152();
|
|
@@ -7270,6 +7358,7 @@ var init_basic_ocsp_response = __esm({
|
|
|
7270
7358
|
});
|
|
7271
7359
|
var init_object_identifiers2 = __esm({
|
|
7272
7360
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/object_identifiers.js"() {
|
|
7361
|
+
init_reflect_polyfill();
|
|
7273
7362
|
init_es20152();
|
|
7274
7363
|
}
|
|
7275
7364
|
});
|
|
@@ -7278,6 +7367,7 @@ var init_object_identifiers2 = __esm({
|
|
|
7278
7367
|
var Signature;
|
|
7279
7368
|
var init_signature = __esm({
|
|
7280
7369
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/signature.js"() {
|
|
7370
|
+
init_reflect_polyfill();
|
|
7281
7371
|
init_tslib_es6();
|
|
7282
7372
|
init_es2015();
|
|
7283
7373
|
init_es20152();
|
|
@@ -7304,6 +7394,7 @@ var init_signature = __esm({
|
|
|
7304
7394
|
var Request;
|
|
7305
7395
|
var init_request = __esm({
|
|
7306
7396
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/request.js"() {
|
|
7397
|
+
init_reflect_polyfill();
|
|
7307
7398
|
init_tslib_es6();
|
|
7308
7399
|
init_es2015();
|
|
7309
7400
|
init_cert_id();
|
|
@@ -7327,6 +7418,7 @@ var init_request = __esm({
|
|
|
7327
7418
|
var TBSRequest;
|
|
7328
7419
|
var init_tbs_request = __esm({
|
|
7329
7420
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/tbs_request.js"() {
|
|
7421
|
+
init_reflect_polyfill();
|
|
7330
7422
|
init_tslib_es6();
|
|
7331
7423
|
init_es2015();
|
|
7332
7424
|
init_es20152();
|
|
@@ -7358,6 +7450,7 @@ var init_tbs_request = __esm({
|
|
|
7358
7450
|
var OCSPRequest;
|
|
7359
7451
|
var init_ocsp_request = __esm({
|
|
7360
7452
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_request.js"() {
|
|
7453
|
+
init_reflect_polyfill();
|
|
7361
7454
|
init_tslib_es6();
|
|
7362
7455
|
init_es2015();
|
|
7363
7456
|
init_signature();
|
|
@@ -7381,6 +7474,7 @@ var init_ocsp_request = __esm({
|
|
|
7381
7474
|
var OCSPResponseStatus;
|
|
7382
7475
|
var init_ocsp_response_status = __esm({
|
|
7383
7476
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response_status.js"() {
|
|
7477
|
+
init_reflect_polyfill();
|
|
7384
7478
|
(function(OCSPResponseStatus2) {
|
|
7385
7479
|
OCSPResponseStatus2[OCSPResponseStatus2["successful"] = 0] = "successful";
|
|
7386
7480
|
OCSPResponseStatus2[OCSPResponseStatus2["malformedRequest"] = 1] = "malformedRequest";
|
|
@@ -7396,6 +7490,7 @@ var init_ocsp_response_status = __esm({
|
|
|
7396
7490
|
var ResponseBytes;
|
|
7397
7491
|
var init_response_bytes = __esm({
|
|
7398
7492
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_bytes.js"() {
|
|
7493
|
+
init_reflect_polyfill();
|
|
7399
7494
|
init_tslib_es6();
|
|
7400
7495
|
init_es2015();
|
|
7401
7496
|
ResponseBytes = class {
|
|
@@ -7418,6 +7513,7 @@ var init_response_bytes = __esm({
|
|
|
7418
7513
|
var OCSPResponse;
|
|
7419
7514
|
var init_ocsp_response = __esm({
|
|
7420
7515
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response.js"() {
|
|
7516
|
+
init_reflect_polyfill();
|
|
7421
7517
|
init_tslib_es6();
|
|
7422
7518
|
init_es2015();
|
|
7423
7519
|
init_ocsp_response_status();
|
|
@@ -7440,6 +7536,7 @@ var init_ocsp_response = __esm({
|
|
|
7440
7536
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/index.js
|
|
7441
7537
|
var init_es20153 = __esm({
|
|
7442
7538
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/index.js"() {
|
|
7539
|
+
init_reflect_polyfill();
|
|
7443
7540
|
init_extensions2();
|
|
7444
7541
|
init_basic_ocsp_response();
|
|
7445
7542
|
init_cert_id();
|
|
@@ -7506,6 +7603,7 @@ function hexToBigIntBytes(hex) {
|
|
|
7506
7603
|
var DEFAULT_MAX_RESPONSE_AGE_MS, OcspClient;
|
|
7507
7604
|
var init_OcspClient = __esm({
|
|
7508
7605
|
"src/trust/OcspClient.ts"() {
|
|
7606
|
+
init_reflect_polyfill();
|
|
7509
7607
|
init_es2015();
|
|
7510
7608
|
init_es20153();
|
|
7511
7609
|
init_es20152();
|
|
@@ -7809,6 +7907,7 @@ function extractCrlUrls(cert) {
|
|
|
7809
7907
|
var RevocationChecker;
|
|
7810
7908
|
var init_RevocationChecker = __esm({
|
|
7811
7909
|
"src/trust/RevocationChecker.ts"() {
|
|
7910
|
+
init_reflect_polyfill();
|
|
7812
7911
|
init_es20152();
|
|
7813
7912
|
init_es2015();
|
|
7814
7913
|
init_errors();
|
|
@@ -7905,6 +8004,7 @@ function mapLoA(uris) {
|
|
|
7905
8004
|
var LOA_MAPPING;
|
|
7906
8005
|
var init_lotl_loa_mapping = __esm({
|
|
7907
8006
|
"src/trust/lotl-loa-mapping.ts"() {
|
|
8007
|
+
init_reflect_polyfill();
|
|
7908
8008
|
LOA_MAPPING = Object.freeze({
|
|
7909
8009
|
// Qualified electronic signature / seal — substantial + high are both
|
|
7910
8010
|
// expressed via `qualified` in ETSI, not LoA. The LoA URIs below apply to
|
|
@@ -7925,6 +8025,7 @@ function deriveServiceMetadata(service) {
|
|
|
7925
8025
|
}
|
|
7926
8026
|
var init_service_metadata = __esm({
|
|
7927
8027
|
"src/trust/service-metadata.ts"() {
|
|
8028
|
+
init_reflect_polyfill();
|
|
7928
8029
|
init_lotl_loa_mapping();
|
|
7929
8030
|
}
|
|
7930
8031
|
});
|
|
@@ -7956,6 +8057,7 @@ function buildProvenance(service, anchorSki) {
|
|
|
7956
8057
|
var ProvenanceResolver;
|
|
7957
8058
|
var init_ProvenanceResolver = __esm({
|
|
7958
8059
|
"src/trust/ProvenanceResolver.ts"() {
|
|
8060
|
+
init_reflect_polyfill();
|
|
7959
8061
|
init_service_metadata();
|
|
7960
8062
|
init_x509_utils();
|
|
7961
8063
|
ProvenanceResolver = class {
|
|
@@ -8023,6 +8125,7 @@ async function resolveProvenance(store, anchor) {
|
|
|
8023
8125
|
var TrustEvaluator;
|
|
8024
8126
|
var init_TrustEvaluator = __esm({
|
|
8025
8127
|
"src/trust/TrustEvaluator.ts"() {
|
|
8128
|
+
init_reflect_polyfill();
|
|
8026
8129
|
init_errors();
|
|
8027
8130
|
init_ChainBuilder();
|
|
8028
8131
|
init_RevocationChecker();
|
|
@@ -8110,6 +8213,13 @@ var init_TrustEvaluator = __esm({
|
|
|
8110
8213
|
};
|
|
8111
8214
|
}
|
|
8112
8215
|
});
|
|
8216
|
+
|
|
8217
|
+
// src/index.ts
|
|
8218
|
+
init_reflect_polyfill();
|
|
8219
|
+
init_reflect_polyfill();
|
|
8220
|
+
|
|
8221
|
+
// src/authorization.ts
|
|
8222
|
+
init_reflect_polyfill();
|
|
8113
8223
|
function createAuthorizationRequest(input, query) {
|
|
8114
8224
|
if (!input.clientId) throw new TypeError("clientId is required");
|
|
8115
8225
|
if (!input.nonce) throw new TypeError("nonce is required");
|
|
@@ -8134,6 +8244,7 @@ function createAuthorizationRequest(input, query) {
|
|
|
8134
8244
|
}
|
|
8135
8245
|
|
|
8136
8246
|
// src/signed-authorization.ts
|
|
8247
|
+
init_reflect_polyfill();
|
|
8137
8248
|
init_errors();
|
|
8138
8249
|
var DEFAULT_SUPPORTED_ENC_VALUES = ["A128GCM", "A256GCM"];
|
|
8139
8250
|
var SUPPORTED_SIGNING_ALGS = /* @__PURE__ */ new Set(["ES256", "ES384", "RS256"]);
|
|
@@ -8266,6 +8377,7 @@ function toArrayBuffer(bytes) {
|
|
|
8266
8377
|
}
|
|
8267
8378
|
|
|
8268
8379
|
// src/haip.ts
|
|
8380
|
+
init_reflect_polyfill();
|
|
8269
8381
|
init_errors();
|
|
8270
8382
|
var HAIP_DOCTYPE_NAMESPACES = {
|
|
8271
8383
|
"org.iso.18013.5.1.mDL": "org.iso.18013.5.1",
|
|
@@ -8380,7 +8492,14 @@ function isHaipQuery(query) {
|
|
|
8380
8492
|
}
|
|
8381
8493
|
}
|
|
8382
8494
|
|
|
8495
|
+
// src/presentation.ts
|
|
8496
|
+
init_reflect_polyfill();
|
|
8497
|
+
|
|
8498
|
+
// src/parsers/mdoc.parser.ts
|
|
8499
|
+
init_reflect_polyfill();
|
|
8500
|
+
|
|
8383
8501
|
// src/crypto/cose-sign1.ts
|
|
8502
|
+
init_reflect_polyfill();
|
|
8384
8503
|
init_errors();
|
|
8385
8504
|
var decoder = new cborX.Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8386
8505
|
var HEADER_ALG = 1;
|
|
@@ -8481,6 +8600,7 @@ async function verifyCoseSign1(coseSign1, publicKey, allowedAlgorithms) {
|
|
|
8481
8600
|
}
|
|
8482
8601
|
|
|
8483
8602
|
// src/crypto/device-auth.ts
|
|
8603
|
+
init_reflect_polyfill();
|
|
8484
8604
|
init_errors();
|
|
8485
8605
|
var enc = new cborX.Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8486
8606
|
var HEADER_ALG2 = 1;
|
|
@@ -8606,6 +8726,7 @@ function extractTag24Inner(value) {
|
|
|
8606
8726
|
}
|
|
8607
8727
|
|
|
8608
8728
|
// src/crypto/digest.ts
|
|
8729
|
+
init_reflect_polyfill();
|
|
8609
8730
|
init_errors();
|
|
8610
8731
|
var decoder2 = new cborX.Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8611
8732
|
var ALLOWED_HASH_ALGS = /* @__PURE__ */ new Set(["SHA-256", "SHA-384", "SHA-512"]);
|
|
@@ -8670,6 +8791,7 @@ async function verifyAllDigests(nameSpaces, mso) {
|
|
|
8670
8791
|
}
|
|
8671
8792
|
|
|
8672
8793
|
// src/crypto/mso.ts
|
|
8794
|
+
init_reflect_polyfill();
|
|
8673
8795
|
init_errors();
|
|
8674
8796
|
var decoder3 = new cborX.Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8675
8797
|
function decodeDateLike(value) {
|
|
@@ -9112,6 +9234,7 @@ var MdocParser = class {
|
|
|
9112
9234
|
};
|
|
9113
9235
|
|
|
9114
9236
|
// src/parsers/sd-jwt.parser.ts
|
|
9237
|
+
init_reflect_polyfill();
|
|
9115
9238
|
init_errors();
|
|
9116
9239
|
var DEFAULT_ALLOWED_ALGORITHMS2 = ["ES256", "ES384", "ES512"];
|
|
9117
9240
|
var sha256Hasher = async (data, _alg) => {
|
|
@@ -9483,7 +9606,11 @@ async function parsePresentation(vpToken, options) {
|
|
|
9483
9606
|
};
|
|
9484
9607
|
}
|
|
9485
9608
|
|
|
9609
|
+
// src/verify.ts
|
|
9610
|
+
init_reflect_polyfill();
|
|
9611
|
+
|
|
9486
9612
|
// src/decrypt-response.ts
|
|
9613
|
+
init_reflect_polyfill();
|
|
9487
9614
|
init_errors();
|
|
9488
9615
|
var SUPPORTED_ALG = "ECDH-ES";
|
|
9489
9616
|
var SUPPORTED_ENC = /* @__PURE__ */ new Set(["A128GCM", "A256GCM"]);
|
|
@@ -9517,6 +9644,9 @@ async function decryptAuthorizationResponse(jwe, privateKey) {
|
|
|
9517
9644
|
});
|
|
9518
9645
|
}
|
|
9519
9646
|
}
|
|
9647
|
+
|
|
9648
|
+
// src/crypto/session-transcript.ts
|
|
9649
|
+
init_reflect_polyfill();
|
|
9520
9650
|
var enc2 = new cborX.Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
9521
9651
|
async function sha256(bytes) {
|
|
9522
9652
|
return new Uint8Array(await crypto.subtle.digest("SHA-256", bytes));
|
|
@@ -9685,6 +9815,7 @@ async function verifyAuthorizationResponse(envelope, query, options) {
|
|
|
9685
9815
|
init_errors();
|
|
9686
9816
|
|
|
9687
9817
|
// src/trust/Cache.ts
|
|
9818
|
+
init_reflect_polyfill();
|
|
9688
9819
|
var InMemoryCache = class {
|
|
9689
9820
|
entries = /* @__PURE__ */ new Map();
|
|
9690
9821
|
maxEntries;
|
|
@@ -9716,7 +9847,11 @@ var InMemoryCache = class {
|
|
|
9716
9847
|
}
|
|
9717
9848
|
};
|
|
9718
9849
|
|
|
9850
|
+
// src/trust/index.ts
|
|
9851
|
+
init_reflect_polyfill();
|
|
9852
|
+
|
|
9719
9853
|
// src/trust/TrustStore.ts
|
|
9854
|
+
init_reflect_polyfill();
|
|
9720
9855
|
init_x509_utils();
|
|
9721
9856
|
var StaticTrustStore = class {
|
|
9722
9857
|
anchors = [];
|
|
@@ -9795,6 +9930,12 @@ function pushInto(map, key, anchor) {
|
|
|
9795
9930
|
function bytesToHex3(bytes) {
|
|
9796
9931
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
9797
9932
|
}
|
|
9933
|
+
|
|
9934
|
+
// src/trust/LotlTrustStore.ts
|
|
9935
|
+
init_reflect_polyfill();
|
|
9936
|
+
|
|
9937
|
+
// src/trust/lotl-signing-anchors.ts
|
|
9938
|
+
init_reflect_polyfill();
|
|
9798
9939
|
var PEM_ANCHORS = [
|
|
9799
9940
|
`-----BEGIN CERTIFICATE-----
|
|
9800
9941
|
MIIIoDCCBoigAwIBAgIUc8IcSUtVEKAMMvHm9QWU05kXsPUwDQYJKoZIhvcNAQEN
|
|
@@ -9851,6 +9992,7 @@ var EU_LOTL_SIGNING_ANCHORS = Object.freeze(
|
|
|
9851
9992
|
);
|
|
9852
9993
|
|
|
9853
9994
|
// src/trust/LotlFetcher.ts
|
|
9995
|
+
init_reflect_polyfill();
|
|
9854
9996
|
init_errors();
|
|
9855
9997
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
9856
9998
|
var LotlFetcher = class {
|
|
@@ -9961,6 +10103,12 @@ function buildImportAlgorithm(algName, pubKeyAlg) {
|
|
|
9961
10103
|
hash: { name: hashName }
|
|
9962
10104
|
};
|
|
9963
10105
|
}
|
|
10106
|
+
|
|
10107
|
+
// src/trust/LotlParser.ts
|
|
10108
|
+
init_reflect_polyfill();
|
|
10109
|
+
|
|
10110
|
+
// src/trust/xml-util.ts
|
|
10111
|
+
init_reflect_polyfill();
|
|
9964
10112
|
function firstChild(parent, ns, name) {
|
|
9965
10113
|
const list = parent.getElementsByTagNameNS(ns, name);
|
|
9966
10114
|
return list.length > 0 ? list.item(0) : null;
|
|
@@ -10051,6 +10199,7 @@ function parsePointer(el) {
|
|
|
10051
10199
|
}
|
|
10052
10200
|
|
|
10053
10201
|
// src/trust/NationalTlResolver.ts
|
|
10202
|
+
init_reflect_polyfill();
|
|
10054
10203
|
var TSL_NS2 = "http://uri.etsi.org/02231/v2#";
|
|
10055
10204
|
var NationalTlResolver = class {
|
|
10056
10205
|
constructor(opts) {
|
|
@@ -10291,7 +10440,7 @@ function equalBytes(a, b) {
|
|
|
10291
10440
|
|
|
10292
10441
|
// src/index.ts
|
|
10293
10442
|
init_errors();
|
|
10294
|
-
var VERSION = "0.
|
|
10443
|
+
var VERSION = "0.9.3";
|
|
10295
10444
|
/*! Bundled license information:
|
|
10296
10445
|
|
|
10297
10446
|
pvtsutils/build/index.es.js:
|