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