@fjall/components-infrastructure 2.19.5 → 2.19.6
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.
|
@@ -14669,11 +14669,10 @@ var require_cjs11 = __commonJS({
|
|
|
14669
14669
|
}
|
|
14670
14670
|
});
|
|
14671
14671
|
|
|
14672
|
-
//
|
|
14672
|
+
// node_modules/@peculiar/x509/build/x509.cjs.js
|
|
14673
14673
|
var require_x509_cjs = __commonJS({
|
|
14674
|
-
"
|
|
14674
|
+
"node_modules/@peculiar/x509/build/x509.cjs.js"(exports2) {
|
|
14675
14675
|
"use strict";
|
|
14676
|
-
require_Reflect();
|
|
14677
14676
|
var asn1Schema = require_cjs();
|
|
14678
14677
|
var asn1X509 = require_cjs2();
|
|
14679
14678
|
var pvtsutils = require_build();
|
|
@@ -14713,17 +14712,18 @@ var require_x509_cjs = __commonJS({
|
|
|
14713
14712
|
return tsyringe.container.resolveAll(diAlgorithm);
|
|
14714
14713
|
}
|
|
14715
14714
|
toAsnAlgorithm(alg) {
|
|
14716
|
-
|
|
14715
|
+
const algCopy = { ...alg };
|
|
14716
|
+
if (algCopy.hash && typeof algCopy.hash === "string") {
|
|
14717
|
+
algCopy.hash = { name: algCopy.hash };
|
|
14718
|
+
}
|
|
14717
14719
|
for (const algorithm of this.getAlgorithms()) {
|
|
14718
|
-
const res = algorithm.toAsnAlgorithm(
|
|
14720
|
+
const res = algorithm.toAsnAlgorithm(algCopy);
|
|
14719
14721
|
if (res) {
|
|
14720
14722
|
return res;
|
|
14721
14723
|
}
|
|
14722
14724
|
}
|
|
14723
14725
|
if (/^[0-9.]+$/.test(alg.name)) {
|
|
14724
|
-
const res = new asn1X509.AlgorithmIdentifier({
|
|
14725
|
-
algorithm: alg.name
|
|
14726
|
-
});
|
|
14726
|
+
const res = new asn1X509.AlgorithmIdentifier({ algorithm: alg.name });
|
|
14727
14727
|
if ("parameters" in alg) {
|
|
14728
14728
|
const unknown = alg;
|
|
14729
14729
|
res.parameters = unknown.parameters;
|
|
@@ -14866,13 +14866,25 @@ var require_x509_cjs = __commonJS({
|
|
|
14866
14866
|
toWebAlgorithm(alg) {
|
|
14867
14867
|
switch (alg.algorithm) {
|
|
14868
14868
|
case asn1Ecc__namespace.id_ecdsaWithSHA1:
|
|
14869
|
-
return {
|
|
14869
|
+
return {
|
|
14870
|
+
name: ECDSA,
|
|
14871
|
+
hash: { name: "SHA-1" }
|
|
14872
|
+
};
|
|
14870
14873
|
case asn1Ecc__namespace.id_ecdsaWithSHA256:
|
|
14871
|
-
return {
|
|
14874
|
+
return {
|
|
14875
|
+
name: ECDSA,
|
|
14876
|
+
hash: { name: "SHA-256" }
|
|
14877
|
+
};
|
|
14872
14878
|
case asn1Ecc__namespace.id_ecdsaWithSHA384:
|
|
14873
|
-
return {
|
|
14879
|
+
return {
|
|
14880
|
+
name: ECDSA,
|
|
14881
|
+
hash: { name: "SHA-384" }
|
|
14882
|
+
};
|
|
14874
14883
|
case asn1Ecc__namespace.id_ecdsaWithSHA512:
|
|
14875
|
-
return {
|
|
14884
|
+
return {
|
|
14885
|
+
name: ECDSA,
|
|
14886
|
+
hash: { name: "SHA-512" }
|
|
14887
|
+
};
|
|
14876
14888
|
case asn1Ecc__namespace.id_ecPublicKey: {
|
|
14877
14889
|
if (!alg.parameters) {
|
|
14878
14890
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
@@ -14880,41 +14892,95 @@ var require_x509_cjs = __commonJS({
|
|
|
14880
14892
|
const parameters = asn1Schema.AsnConvert.parse(alg.parameters, asn1Ecc__namespace.ECParameters);
|
|
14881
14893
|
switch (parameters.namedCurve) {
|
|
14882
14894
|
case asn1Ecc__namespace.id_secp256r1:
|
|
14883
|
-
return {
|
|
14895
|
+
return {
|
|
14896
|
+
name: ECDSA,
|
|
14897
|
+
namedCurve: "P-256"
|
|
14898
|
+
};
|
|
14884
14899
|
case EcAlgorithm_1.SECP256K1:
|
|
14885
|
-
return {
|
|
14900
|
+
return {
|
|
14901
|
+
name: ECDSA,
|
|
14902
|
+
namedCurve: "K-256"
|
|
14903
|
+
};
|
|
14886
14904
|
case asn1Ecc__namespace.id_secp384r1:
|
|
14887
|
-
return {
|
|
14905
|
+
return {
|
|
14906
|
+
name: ECDSA,
|
|
14907
|
+
namedCurve: "P-384"
|
|
14908
|
+
};
|
|
14888
14909
|
case asn1Ecc__namespace.id_secp521r1:
|
|
14889
|
-
return {
|
|
14910
|
+
return {
|
|
14911
|
+
name: ECDSA,
|
|
14912
|
+
namedCurve: "P-521"
|
|
14913
|
+
};
|
|
14890
14914
|
case idBrainpoolP160r1:
|
|
14891
|
-
return {
|
|
14915
|
+
return {
|
|
14916
|
+
name: ECDSA,
|
|
14917
|
+
namedCurve: brainpoolP160r1
|
|
14918
|
+
};
|
|
14892
14919
|
case idBrainpoolP160t1:
|
|
14893
|
-
return {
|
|
14920
|
+
return {
|
|
14921
|
+
name: ECDSA,
|
|
14922
|
+
namedCurve: brainpoolP160t1
|
|
14923
|
+
};
|
|
14894
14924
|
case idBrainpoolP192r1:
|
|
14895
|
-
return {
|
|
14925
|
+
return {
|
|
14926
|
+
name: ECDSA,
|
|
14927
|
+
namedCurve: brainpoolP192r1
|
|
14928
|
+
};
|
|
14896
14929
|
case idBrainpoolP192t1:
|
|
14897
|
-
return {
|
|
14930
|
+
return {
|
|
14931
|
+
name: ECDSA,
|
|
14932
|
+
namedCurve: brainpoolP192t1
|
|
14933
|
+
};
|
|
14898
14934
|
case idBrainpoolP224r1:
|
|
14899
|
-
return {
|
|
14935
|
+
return {
|
|
14936
|
+
name: ECDSA,
|
|
14937
|
+
namedCurve: brainpoolP224r1
|
|
14938
|
+
};
|
|
14900
14939
|
case idBrainpoolP224t1:
|
|
14901
|
-
return {
|
|
14940
|
+
return {
|
|
14941
|
+
name: ECDSA,
|
|
14942
|
+
namedCurve: brainpoolP224t1
|
|
14943
|
+
};
|
|
14902
14944
|
case idBrainpoolP256r1:
|
|
14903
|
-
return {
|
|
14945
|
+
return {
|
|
14946
|
+
name: ECDSA,
|
|
14947
|
+
namedCurve: brainpoolP256r1
|
|
14948
|
+
};
|
|
14904
14949
|
case idBrainpoolP256t1:
|
|
14905
|
-
return {
|
|
14950
|
+
return {
|
|
14951
|
+
name: ECDSA,
|
|
14952
|
+
namedCurve: brainpoolP256t1
|
|
14953
|
+
};
|
|
14906
14954
|
case idBrainpoolP320r1:
|
|
14907
|
-
return {
|
|
14955
|
+
return {
|
|
14956
|
+
name: ECDSA,
|
|
14957
|
+
namedCurve: brainpoolP320r1
|
|
14958
|
+
};
|
|
14908
14959
|
case idBrainpoolP320t1:
|
|
14909
|
-
return {
|
|
14960
|
+
return {
|
|
14961
|
+
name: ECDSA,
|
|
14962
|
+
namedCurve: brainpoolP320t1
|
|
14963
|
+
};
|
|
14910
14964
|
case idBrainpoolP384r1:
|
|
14911
|
-
return {
|
|
14965
|
+
return {
|
|
14966
|
+
name: ECDSA,
|
|
14967
|
+
namedCurve: brainpoolP384r1
|
|
14968
|
+
};
|
|
14912
14969
|
case idBrainpoolP384t1:
|
|
14913
|
-
return {
|
|
14970
|
+
return {
|
|
14971
|
+
name: ECDSA,
|
|
14972
|
+
namedCurve: brainpoolP384t1
|
|
14973
|
+
};
|
|
14914
14974
|
case idBrainpoolP512r1:
|
|
14915
|
-
return {
|
|
14975
|
+
return {
|
|
14976
|
+
name: ECDSA,
|
|
14977
|
+
namedCurve: brainpoolP512r1
|
|
14978
|
+
};
|
|
14916
14979
|
case idBrainpoolP512t1:
|
|
14917
|
-
return {
|
|
14980
|
+
return {
|
|
14981
|
+
name: ECDSA,
|
|
14982
|
+
namedCurve: brainpoolP512t1
|
|
14983
|
+
};
|
|
14918
14984
|
}
|
|
14919
14985
|
}
|
|
14920
14986
|
}
|
|
@@ -15433,16 +15499,18 @@ var require_x509_cjs = __commonJS({
|
|
|
15433
15499
|
toArrayBuffer() {
|
|
15434
15500
|
return asn1Schema.AsnConvert.serialize(this.asn);
|
|
15435
15501
|
}
|
|
15436
|
-
async getThumbprint(
|
|
15437
|
-
var _a2;
|
|
15502
|
+
async getThumbprint(arg1, arg2) {
|
|
15438
15503
|
let crypto3;
|
|
15439
15504
|
let algorithm = "SHA-1";
|
|
15440
|
-
if (
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15505
|
+
if (arg1) {
|
|
15506
|
+
if (typeof arg1 === "object" && "subtle" in arg1) {
|
|
15507
|
+
crypto3 = arg1;
|
|
15508
|
+
} else {
|
|
15509
|
+
algorithm = arg1;
|
|
15510
|
+
crypto3 = arg2;
|
|
15511
|
+
}
|
|
15445
15512
|
}
|
|
15513
|
+
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
15446
15514
|
return await crypto3.subtle.digest(algorithm, this.toArrayBuffer());
|
|
15447
15515
|
}
|
|
15448
15516
|
};
|
|
@@ -15663,6 +15731,7 @@ var require_x509_cjs = __commonJS({
|
|
|
15663
15731
|
var rBase64Chars = "[a-zA-Z0-9=+/]+";
|
|
15664
15732
|
var rBase64 = `(?:${rBase64Chars}${rEolGroup})+`;
|
|
15665
15733
|
var rPem = `${rBeginTag}${rEolGroup}(?:((?:${rHeaderKey}: ${rHeaderValue})+))?${rEolGroup}?(${rBase64})${rEndTag}`;
|
|
15734
|
+
var rEolPattern = new RegExp(`[${rEolChars}]+`, "g");
|
|
15666
15735
|
var PemConverter = class {
|
|
15667
15736
|
static isPem(data) {
|
|
15668
15737
|
return typeof data === "string" && new RegExp(rPem, "g").test(data.replace(/\r/g, ""));
|
|
@@ -15673,7 +15742,7 @@ var require_x509_cjs = __commonJS({
|
|
|
15673
15742
|
const res = [];
|
|
15674
15743
|
let matches = null;
|
|
15675
15744
|
while (matches = pattern.exec(pem)) {
|
|
15676
|
-
const base64 = matches[3].replace(
|
|
15745
|
+
const base64 = matches[3].replace(rEolPattern, "");
|
|
15677
15746
|
const pemStruct = {
|
|
15678
15747
|
type: matches[1],
|
|
15679
15748
|
headers: [],
|
|
@@ -15694,7 +15763,10 @@ var require_x509_cjs = __commonJS({
|
|
|
15694
15763
|
if (lastHeader) {
|
|
15695
15764
|
pemStruct.headers.push(lastHeader);
|
|
15696
15765
|
}
|
|
15697
|
-
lastHeader = {
|
|
15766
|
+
lastHeader = {
|
|
15767
|
+
key,
|
|
15768
|
+
value: value.trim()
|
|
15769
|
+
};
|
|
15698
15770
|
}
|
|
15699
15771
|
}
|
|
15700
15772
|
if (lastHeader) {
|
|
@@ -15760,26 +15832,9 @@ var require_x509_cjs = __commonJS({
|
|
|
15760
15832
|
res.push("");
|
|
15761
15833
|
}
|
|
15762
15834
|
const base64 = pvtsutils.Convert.ToBase64(pem.rawData);
|
|
15763
|
-
let
|
|
15764
|
-
|
|
15765
|
-
const rows = Array();
|
|
15766
|
-
while (offset < base64.length) {
|
|
15767
|
-
if (base64.length - offset < 64) {
|
|
15768
|
-
sliced = base64.substring(offset);
|
|
15769
|
-
} else {
|
|
15770
|
-
sliced = base64.substring(offset, offset + 64);
|
|
15771
|
-
offset += 64;
|
|
15772
|
-
}
|
|
15773
|
-
if (sliced.length !== 0) {
|
|
15774
|
-
rows.push(sliced);
|
|
15775
|
-
if (sliced.length < 64) {
|
|
15776
|
-
break;
|
|
15777
|
-
}
|
|
15778
|
-
} else {
|
|
15779
|
-
break;
|
|
15780
|
-
}
|
|
15835
|
+
for (let i = 0; i < base64.length; i += 64) {
|
|
15836
|
+
res.push(base64.substring(i, i + 64));
|
|
15781
15837
|
}
|
|
15782
|
-
res.push(...rows);
|
|
15783
15838
|
res.push(`-----END ${upperCaseType}-----`);
|
|
15784
15839
|
return res.join("\n");
|
|
15785
15840
|
}
|
|
@@ -15866,17 +15921,21 @@ var require_x509_cjs = __commonJS({
|
|
|
15866
15921
|
}
|
|
15867
15922
|
this.tag = PemConverter.PublicKeyTag;
|
|
15868
15923
|
}
|
|
15869
|
-
async export(
|
|
15924
|
+
async export(arg1, arg2, arg3) {
|
|
15870
15925
|
let crypto3;
|
|
15871
15926
|
let keyUsages = ["verify"];
|
|
15872
|
-
let algorithm = {
|
|
15873
|
-
|
|
15874
|
-
algorithm
|
|
15875
|
-
|
|
15876
|
-
|
|
15927
|
+
let algorithm = {
|
|
15928
|
+
hash: "SHA-256",
|
|
15929
|
+
...this.algorithm
|
|
15930
|
+
};
|
|
15931
|
+
if (arg2) {
|
|
15932
|
+
algorithm = arg1;
|
|
15933
|
+
keyUsages = arg2;
|
|
15934
|
+
crypto3 = arg3;
|
|
15877
15935
|
} else {
|
|
15878
|
-
crypto3 =
|
|
15936
|
+
crypto3 = arg1;
|
|
15879
15937
|
}
|
|
15938
|
+
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
15880
15939
|
let raw = this.rawData;
|
|
15881
15940
|
const asnSpki = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.SubjectPublicKeyInfo);
|
|
15882
15941
|
if (asnSpki.algorithm.algorithm === asn1Rsa.id_RSASSA_PSS) {
|
|
@@ -15897,34 +15956,32 @@ var require_x509_cjs = __commonJS({
|
|
|
15897
15956
|
}
|
|
15898
15957
|
}
|
|
15899
15958
|
}
|
|
15900
|
-
async getThumbprint(
|
|
15901
|
-
var _a2;
|
|
15959
|
+
async getThumbprint(arg1, arg2) {
|
|
15902
15960
|
let crypto3;
|
|
15903
15961
|
let algorithm = "SHA-1";
|
|
15904
|
-
if (
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
15962
|
+
if (arg1) {
|
|
15963
|
+
if (typeof arg1 === "object" && "subtle" in arg1) {
|
|
15964
|
+
crypto3 = arg1;
|
|
15965
|
+
} else {
|
|
15966
|
+
algorithm = arg1;
|
|
15967
|
+
crypto3 = arg2;
|
|
15968
|
+
}
|
|
15909
15969
|
}
|
|
15970
|
+
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
15910
15971
|
return await crypto3.subtle.digest(algorithm, this.rawData);
|
|
15911
15972
|
}
|
|
15912
|
-
async getKeyIdentifier(
|
|
15973
|
+
async getKeyIdentifier(arg1, arg2) {
|
|
15913
15974
|
let crypto3;
|
|
15914
15975
|
let algorithm = "SHA-1";
|
|
15915
|
-
if (
|
|
15916
|
-
if (typeof
|
|
15917
|
-
|
|
15918
|
-
crypto3 = cryptoProvider.get();
|
|
15976
|
+
if (arg1) {
|
|
15977
|
+
if (typeof arg1 === "object" && "subtle" in arg1) {
|
|
15978
|
+
crypto3 = arg1;
|
|
15919
15979
|
} else {
|
|
15920
|
-
|
|
15980
|
+
algorithm = arg1;
|
|
15981
|
+
crypto3 = arg2;
|
|
15921
15982
|
}
|
|
15922
|
-
} else if (args.length === 2) {
|
|
15923
|
-
algorithm = args[0];
|
|
15924
|
-
crypto3 = args[1];
|
|
15925
|
-
} else {
|
|
15926
|
-
crypto3 = cryptoProvider.get();
|
|
15927
15983
|
}
|
|
15984
|
+
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
15928
15985
|
const asn = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.SubjectPublicKeyInfo);
|
|
15929
15986
|
return await crypto3.subtle.digest(algorithm, asn.subjectPublicKey);
|
|
15930
15987
|
}
|
|
@@ -16167,9 +16224,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16167
16224
|
} else {
|
|
16168
16225
|
const policies = args[0];
|
|
16169
16226
|
const critical = (_a2 = args[1]) !== null && _a2 !== void 0 ? _a2 : false;
|
|
16170
|
-
const value = new asn1X509__namespace.CertificatePolicies(policies.map((o) => new asn1X509__namespace.PolicyInformation({
|
|
16171
|
-
policyIdentifier: o
|
|
16172
|
-
})));
|
|
16227
|
+
const value = new asn1X509__namespace.CertificatePolicies(policies.map((o) => new asn1X509__namespace.PolicyInformation({ policyIdentifier: o })));
|
|
16173
16228
|
super(asn1X509__namespace.id_ce_certificatePolicies, critical, asn1Schema.AsnConvert.serialize(value));
|
|
16174
16229
|
this.policies = policies;
|
|
16175
16230
|
}
|
|
@@ -16191,9 +16246,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16191
16246
|
const urls = args[0];
|
|
16192
16247
|
const dps = urls.map((url) => {
|
|
16193
16248
|
return new asn1X509__namespace.DistributionPoint({
|
|
16194
|
-
distributionPoint: new asn1X509__namespace.DistributionPointName({
|
|
16195
|
-
fullName: [new asn1X509__namespace.GeneralName({ uniformResourceIdentifier: url })]
|
|
16196
|
-
})
|
|
16249
|
+
distributionPoint: new asn1X509__namespace.DistributionPointName({ fullName: [new asn1X509__namespace.GeneralName({ uniformResourceIdentifier: url })] })
|
|
16197
16250
|
});
|
|
16198
16251
|
});
|
|
16199
16252
|
const value = new asn1X509__namespace.CRLDistributionPoints(dps);
|
|
@@ -16213,9 +16266,9 @@ var require_x509_cjs = __commonJS({
|
|
|
16213
16266
|
const obj = this.toTextObjectWithoutValue();
|
|
16214
16267
|
obj["Distribution Point"] = this.distributionPoints.map((dp) => {
|
|
16215
16268
|
var _a2;
|
|
16216
|
-
const dpObj =
|
|
16217
|
-
if (dp.distributionPoint) {
|
|
16218
|
-
dpObj[""] =
|
|
16269
|
+
const dpObj = new TextObject("");
|
|
16270
|
+
if ((_a2 = dp.distributionPoint) === null || _a2 === void 0 ? void 0 : _a2.fullName) {
|
|
16271
|
+
dpObj[""] = dp.distributionPoint.fullName.map((name) => new GeneralName(name).toString()).join(", ");
|
|
16219
16272
|
}
|
|
16220
16273
|
if (dp.reasons) {
|
|
16221
16274
|
dpObj["Reasons"] = dp.reasons.toString();
|
|
@@ -16357,7 +16410,10 @@ var require_x509_cjs = __commonJS({
|
|
|
16357
16410
|
} else {
|
|
16358
16411
|
const type = args[0];
|
|
16359
16412
|
const values = Array.isArray(args[1]) ? args[1].map((o) => pvtsutils.BufferSourceConverter.toArrayBuffer(o)) : [];
|
|
16360
|
-
raw = asn1Schema.AsnConvert.serialize(new asn1X509.Attribute({
|
|
16413
|
+
raw = asn1Schema.AsnConvert.serialize(new asn1X509.Attribute({
|
|
16414
|
+
type,
|
|
16415
|
+
values
|
|
16416
|
+
}));
|
|
16361
16417
|
}
|
|
16362
16418
|
super(raw, asn1X509.Attribute);
|
|
16363
16419
|
}
|
|
@@ -16385,9 +16441,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16385
16441
|
if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
16386
16442
|
super(args[0]);
|
|
16387
16443
|
} else {
|
|
16388
|
-
const value = new asnPkcs9__namespace.ChallengePassword({
|
|
16389
|
-
printableString: args[0]
|
|
16390
|
-
});
|
|
16444
|
+
const value = new asnPkcs9__namespace.ChallengePassword({ printableString: args[0] });
|
|
16391
16445
|
super(asnPkcs9__namespace.id_pkcs9_at_challengePassword, [asn1Schema.AsnConvert.serialize(value)]);
|
|
16392
16446
|
}
|
|
16393
16447
|
(_a2 = this.password) !== null && _a2 !== void 0 ? _a2 : this.password = "";
|
|
@@ -16501,16 +16555,31 @@ var require_x509_cjs = __commonJS({
|
|
|
16501
16555
|
}
|
|
16502
16556
|
switch (hash.toLowerCase()) {
|
|
16503
16557
|
case "sha-1":
|
|
16504
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16558
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16559
|
+
algorithm: asn1Rsa__namespace.id_sha1WithRSAEncryption,
|
|
16560
|
+
parameters: null
|
|
16561
|
+
});
|
|
16505
16562
|
case "sha-256":
|
|
16506
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16563
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16564
|
+
algorithm: asn1Rsa__namespace.id_sha256WithRSAEncryption,
|
|
16565
|
+
parameters: null
|
|
16566
|
+
});
|
|
16507
16567
|
case "sha-384":
|
|
16508
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16568
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16569
|
+
algorithm: asn1Rsa__namespace.id_sha384WithRSAEncryption,
|
|
16570
|
+
parameters: null
|
|
16571
|
+
});
|
|
16509
16572
|
case "sha-512":
|
|
16510
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16573
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16574
|
+
algorithm: asn1Rsa__namespace.id_sha512WithRSAEncryption,
|
|
16575
|
+
parameters: null
|
|
16576
|
+
});
|
|
16511
16577
|
}
|
|
16512
16578
|
} else {
|
|
16513
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16579
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16580
|
+
algorithm: asn1Rsa__namespace.id_rsaEncryption,
|
|
16581
|
+
parameters: null
|
|
16582
|
+
});
|
|
16514
16583
|
}
|
|
16515
16584
|
break;
|
|
16516
16585
|
case "rsa-pss":
|
|
@@ -16522,9 +16591,15 @@ var require_x509_cjs = __commonJS({
|
|
|
16522
16591
|
if (!pssParams) {
|
|
16523
16592
|
throw new Error("Cannot create PSS parameters");
|
|
16524
16593
|
}
|
|
16525
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16594
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16595
|
+
algorithm: asn1Rsa__namespace.id_RSASSA_PSS,
|
|
16596
|
+
parameters: asn1Schema.AsnConvert.serialize(pssParams)
|
|
16597
|
+
});
|
|
16526
16598
|
} else {
|
|
16527
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16599
|
+
return new asn1X509.AlgorithmIdentifier({
|
|
16600
|
+
algorithm: asn1Rsa__namespace.id_RSASSA_PSS,
|
|
16601
|
+
parameters: null
|
|
16602
|
+
});
|
|
16528
16603
|
}
|
|
16529
16604
|
}
|
|
16530
16605
|
return null;
|
|
@@ -16534,13 +16609,25 @@ var require_x509_cjs = __commonJS({
|
|
|
16534
16609
|
case asn1Rsa__namespace.id_rsaEncryption:
|
|
16535
16610
|
return { name: "RSASSA-PKCS1-v1_5" };
|
|
16536
16611
|
case asn1Rsa__namespace.id_sha1WithRSAEncryption:
|
|
16537
|
-
return {
|
|
16612
|
+
return {
|
|
16613
|
+
name: "RSASSA-PKCS1-v1_5",
|
|
16614
|
+
hash: { name: "SHA-1" }
|
|
16615
|
+
};
|
|
16538
16616
|
case asn1Rsa__namespace.id_sha256WithRSAEncryption:
|
|
16539
|
-
return {
|
|
16617
|
+
return {
|
|
16618
|
+
name: "RSASSA-PKCS1-v1_5",
|
|
16619
|
+
hash: { name: "SHA-256" }
|
|
16620
|
+
};
|
|
16540
16621
|
case asn1Rsa__namespace.id_sha384WithRSAEncryption:
|
|
16541
|
-
return {
|
|
16622
|
+
return {
|
|
16623
|
+
name: "RSASSA-PKCS1-v1_5",
|
|
16624
|
+
hash: { name: "SHA-384" }
|
|
16625
|
+
};
|
|
16542
16626
|
case asn1Rsa__namespace.id_sha512WithRSAEncryption:
|
|
16543
|
-
return {
|
|
16627
|
+
return {
|
|
16628
|
+
name: "RSASSA-PKCS1-v1_5",
|
|
16629
|
+
hash: { name: "SHA-512" }
|
|
16630
|
+
};
|
|
16544
16631
|
case asn1Rsa__namespace.id_RSASSA_PSS:
|
|
16545
16632
|
if (alg.parameters) {
|
|
16546
16633
|
const pssParams = asn1Schema.AsnConvert.parse(alg.parameters, asn1Rsa__namespace.RsaSaPssParams);
|
|
@@ -16678,9 +16765,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16678
16765
|
}
|
|
16679
16766
|
}
|
|
16680
16767
|
if (algorithm) {
|
|
16681
|
-
return new asn1X509.AlgorithmIdentifier({
|
|
16682
|
-
algorithm
|
|
16683
|
-
});
|
|
16768
|
+
return new asn1X509.AlgorithmIdentifier({ algorithm });
|
|
16684
16769
|
}
|
|
16685
16770
|
return null;
|
|
16686
16771
|
}
|
|
@@ -16689,11 +16774,17 @@ var require_x509_cjs = __commonJS({
|
|
|
16689
16774
|
case idEd25519:
|
|
16690
16775
|
return { name: "Ed25519" };
|
|
16691
16776
|
case idEd448:
|
|
16692
|
-
return {
|
|
16777
|
+
return {
|
|
16778
|
+
name: "EdDSA",
|
|
16779
|
+
namedCurve: "Ed448"
|
|
16780
|
+
};
|
|
16693
16781
|
case idX25519:
|
|
16694
16782
|
return { name: "X25519" };
|
|
16695
16783
|
case idX448:
|
|
16696
|
-
return {
|
|
16784
|
+
return {
|
|
16785
|
+
name: "ECDH-ES",
|
|
16786
|
+
namedCurve: "X448"
|
|
16787
|
+
};
|
|
16697
16788
|
}
|
|
16698
16789
|
return null;
|
|
16699
16790
|
}
|
|
@@ -16802,7 +16893,10 @@ var require_x509_cjs = __commonJS({
|
|
|
16802
16893
|
return this.extensions.filter((o) => o.type === type);
|
|
16803
16894
|
}
|
|
16804
16895
|
async verify(crypto3 = cryptoProvider.get()) {
|
|
16805
|
-
const algorithm = {
|
|
16896
|
+
const algorithm = {
|
|
16897
|
+
...this.publicKey.algorithm,
|
|
16898
|
+
...this.signatureAlgorithm
|
|
16899
|
+
};
|
|
16806
16900
|
const publicKey = await this.publicKey.export(algorithm, ["verify"], crypto3);
|
|
16807
16901
|
const signatureFormatters = tsyringe.container.resolveAll(diAsnSignatureFormatter).reverse();
|
|
16808
16902
|
let signature = null;
|
|
@@ -16823,8 +16917,8 @@ var require_x509_cjs = __commonJS({
|
|
|
16823
16917
|
const req = asn1Schema.AsnConvert.parse(this.rawData, asn1Csr.CertificationRequest);
|
|
16824
16918
|
const tbs = req.certificationRequestInfo;
|
|
16825
16919
|
const data = new TextObject("", {
|
|
16826
|
-
|
|
16827
|
-
|
|
16920
|
+
Version: `${asn1X509.Version[tbs.version]} (${tbs.version})`,
|
|
16921
|
+
Subject: this.subject,
|
|
16828
16922
|
"Subject Public Key Info": this.publicKey
|
|
16829
16923
|
});
|
|
16830
16924
|
if (this.attributes.length) {
|
|
@@ -16837,7 +16931,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16837
16931
|
}
|
|
16838
16932
|
obj["Data"] = data;
|
|
16839
16933
|
obj["Signature"] = new TextObject("", {
|
|
16840
|
-
|
|
16934
|
+
Algorithm: TextConverter.serializeAlgorithm(req.signatureAlgorithm),
|
|
16841
16935
|
"": req.signature
|
|
16842
16936
|
});
|
|
16843
16937
|
return obj;
|
|
@@ -16855,9 +16949,7 @@ var require_x509_cjs = __commonJS({
|
|
|
16855
16949
|
}
|
|
16856
16950
|
const spki = await crypto3.subtle.exportKey("spki", params.keys.publicKey);
|
|
16857
16951
|
const asnReq = new asn1Csr.CertificationRequest({
|
|
16858
|
-
certificationRequestInfo: new asn1Csr.CertificationRequestInfo({
|
|
16859
|
-
subjectPKInfo: asn1Schema.AsnConvert.parse(spki, asn1X509.SubjectPublicKeyInfo)
|
|
16860
|
-
})
|
|
16952
|
+
certificationRequestInfo: new asn1Csr.CertificationRequestInfo({ subjectPKInfo: asn1Schema.AsnConvert.parse(spki, asn1X509.SubjectPublicKeyInfo) })
|
|
16861
16953
|
});
|
|
16862
16954
|
if (params.name) {
|
|
16863
16955
|
const name = params.name instanceof Name ? params.name : new Name(params.name);
|
|
@@ -16877,7 +16969,10 @@ var require_x509_cjs = __commonJS({
|
|
|
16877
16969
|
attr.values.push(asn1Schema.AsnConvert.serialize(extensions));
|
|
16878
16970
|
asnReq.certificationRequestInfo.attributes.push(attr);
|
|
16879
16971
|
}
|
|
16880
|
-
const signingAlgorithm = {
|
|
16972
|
+
const signingAlgorithm = {
|
|
16973
|
+
...params.signingAlgorithm,
|
|
16974
|
+
...params.keys.privateKey.algorithm
|
|
16975
|
+
};
|
|
16881
16976
|
const algProv = tsyringe.container.resolve(diAlgorithmProvider);
|
|
16882
16977
|
asnReq.signatureAlgorithm = algProv.toAsnAlgorithm(signingAlgorithm);
|
|
16883
16978
|
const tbs = asn1Schema.AsnConvert.serialize(asnReq.certificationRequestInfo);
|
|
@@ -17047,23 +17142,38 @@ var require_x509_cjs = __commonJS({
|
|
|
17047
17142
|
const paramsKey = params.publicKey;
|
|
17048
17143
|
try {
|
|
17049
17144
|
if (!paramsKey) {
|
|
17050
|
-
keyAlgorithm = {
|
|
17145
|
+
keyAlgorithm = {
|
|
17146
|
+
...this.publicKey.algorithm,
|
|
17147
|
+
...this.signatureAlgorithm
|
|
17148
|
+
};
|
|
17051
17149
|
publicKey = await this.publicKey.export(keyAlgorithm, ["verify"], crypto3);
|
|
17052
17150
|
} else if ("publicKey" in paramsKey) {
|
|
17053
|
-
keyAlgorithm = {
|
|
17151
|
+
keyAlgorithm = {
|
|
17152
|
+
...paramsKey.publicKey.algorithm,
|
|
17153
|
+
...this.signatureAlgorithm
|
|
17154
|
+
};
|
|
17054
17155
|
publicKey = await paramsKey.publicKey.export(keyAlgorithm, ["verify"], crypto3);
|
|
17055
17156
|
} else if (paramsKey instanceof PublicKey) {
|
|
17056
|
-
keyAlgorithm = {
|
|
17157
|
+
keyAlgorithm = {
|
|
17158
|
+
...paramsKey.algorithm,
|
|
17159
|
+
...this.signatureAlgorithm
|
|
17160
|
+
};
|
|
17057
17161
|
publicKey = await paramsKey.export(keyAlgorithm, ["verify"], crypto3);
|
|
17058
17162
|
} else if (pvtsutils.BufferSourceConverter.isBufferSource(paramsKey)) {
|
|
17059
17163
|
const key = new PublicKey(paramsKey);
|
|
17060
|
-
keyAlgorithm = {
|
|
17164
|
+
keyAlgorithm = {
|
|
17165
|
+
...key.algorithm,
|
|
17166
|
+
...this.signatureAlgorithm
|
|
17167
|
+
};
|
|
17061
17168
|
publicKey = await key.export(keyAlgorithm, ["verify"], crypto3);
|
|
17062
17169
|
} else {
|
|
17063
|
-
keyAlgorithm = {
|
|
17170
|
+
keyAlgorithm = {
|
|
17171
|
+
...paramsKey.algorithm,
|
|
17172
|
+
...this.signatureAlgorithm
|
|
17173
|
+
};
|
|
17064
17174
|
publicKey = paramsKey;
|
|
17065
17175
|
}
|
|
17066
|
-
} catch
|
|
17176
|
+
} catch {
|
|
17067
17177
|
return false;
|
|
17068
17178
|
}
|
|
17069
17179
|
const signatureFormatters = tsyringe.container.resolveAll(diAsnSignatureFormatter).reverse();
|
|
@@ -17086,15 +17196,15 @@ var require_x509_cjs = __commonJS({
|
|
|
17086
17196
|
return ok && this.notBefore.getTime() < time && time < this.notAfter.getTime();
|
|
17087
17197
|
}
|
|
17088
17198
|
}
|
|
17089
|
-
async getThumbprint(
|
|
17199
|
+
async getThumbprint(arg1, arg2) {
|
|
17090
17200
|
let crypto3;
|
|
17091
17201
|
let algorithm = "SHA-1";
|
|
17092
|
-
if (
|
|
17093
|
-
if (
|
|
17094
|
-
|
|
17095
|
-
crypto3 = args[1];
|
|
17202
|
+
if (arg1) {
|
|
17203
|
+
if (typeof arg1 === "object" && "subtle" in arg1) {
|
|
17204
|
+
crypto3 = arg1;
|
|
17096
17205
|
} else {
|
|
17097
|
-
|
|
17206
|
+
algorithm = arg1;
|
|
17207
|
+
crypto3 = arg2;
|
|
17098
17208
|
}
|
|
17099
17209
|
}
|
|
17100
17210
|
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
@@ -17108,15 +17218,15 @@ var require_x509_cjs = __commonJS({
|
|
|
17108
17218
|
const cert = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.Certificate);
|
|
17109
17219
|
const tbs = cert.tbsCertificate;
|
|
17110
17220
|
const data = new TextObject("", {
|
|
17111
|
-
|
|
17221
|
+
Version: `${asn1X509.Version[tbs.version]} (${tbs.version})`,
|
|
17112
17222
|
"Serial Number": tbs.serialNumber,
|
|
17113
17223
|
"Signature Algorithm": TextConverter.serializeAlgorithm(tbs.signature),
|
|
17114
|
-
|
|
17115
|
-
|
|
17224
|
+
Issuer: this.issuer,
|
|
17225
|
+
Validity: new TextObject("", {
|
|
17116
17226
|
"Not Before": tbs.validity.notBefore.getTime(),
|
|
17117
17227
|
"Not After": tbs.validity.notAfter.getTime()
|
|
17118
17228
|
}),
|
|
17119
|
-
|
|
17229
|
+
Subject: this.subject,
|
|
17120
17230
|
"Subject Public Key Info": this.publicKey
|
|
17121
17231
|
});
|
|
17122
17232
|
if (tbs.issuerUniqueID) {
|
|
@@ -17135,7 +17245,7 @@ var require_x509_cjs = __commonJS({
|
|
|
17135
17245
|
}
|
|
17136
17246
|
obj["Data"] = data;
|
|
17137
17247
|
obj["Signature"] = new TextObject("", {
|
|
17138
|
-
|
|
17248
|
+
Algorithm: TextConverter.serializeAlgorithm(cert.signatureAlgorithm),
|
|
17139
17249
|
"": cert.signatureValue
|
|
17140
17250
|
});
|
|
17141
17251
|
return obj;
|
|
@@ -17160,12 +17270,8 @@ var require_x509_cjs = __commonJS({
|
|
|
17160
17270
|
const signedData = new asn1Cms__namespace.SignedData();
|
|
17161
17271
|
signedData.version = 1;
|
|
17162
17272
|
signedData.encapContentInfo.eContentType = asn1Cms__namespace.id_data;
|
|
17163
|
-
signedData.encapContentInfo.eContent = new asn1Cms__namespace.EncapsulatedContent({
|
|
17164
|
-
|
|
17165
|
-
});
|
|
17166
|
-
signedData.certificates = new asn1Cms__namespace.CertificateSet(this.map((o) => new asn1Cms__namespace.CertificateChoices({
|
|
17167
|
-
certificate: asn1Schema.AsnConvert.parse(o.rawData, asn1X509.Certificate)
|
|
17168
|
-
})));
|
|
17273
|
+
signedData.encapContentInfo.eContent = new asn1Cms__namespace.EncapsulatedContent({ single: new asn1Schema.OctetString() });
|
|
17274
|
+
signedData.certificates = new asn1Cms__namespace.CertificateSet(this.map((o) => new asn1Cms__namespace.CertificateChoices({ certificate: asn1Schema.AsnConvert.parse(o.rawData, asn1X509.Certificate) })));
|
|
17169
17275
|
const cms = new asn1Cms__namespace.ContentInfo({
|
|
17170
17276
|
contentType: asn1Cms__namespace.id_signedData,
|
|
17171
17277
|
content: asn1Schema.AsnConvert.serialize(signedData)
|
|
@@ -17220,9 +17326,9 @@ var require_x509_cjs = __commonJS({
|
|
|
17220
17326
|
const signedData = asn1Schema.AsnConvert.parse(contentInfo.content, asn1Cms__namespace.SignedData);
|
|
17221
17327
|
const obj = new TextObject("X509Certificates", {
|
|
17222
17328
|
"Content Type": OidSerializer.toString(contentInfo.contentType),
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17329
|
+
Content: new TextObject("", {
|
|
17330
|
+
Version: `${asn1Cms__namespace.CMSVersion[signedData.version]} (${signedData.version})`,
|
|
17331
|
+
Certificates: new TextObject("", { Certificate: this.map((o) => o.toTextObject()) })
|
|
17226
17332
|
})
|
|
17227
17333
|
});
|
|
17228
17334
|
return obj;
|
|
@@ -17271,13 +17377,19 @@ var require_x509_cjs = __commonJS({
|
|
|
17271
17377
|
}
|
|
17272
17378
|
}
|
|
17273
17379
|
try {
|
|
17274
|
-
const algorithm = {
|
|
17380
|
+
const algorithm = {
|
|
17381
|
+
...item.publicKey.algorithm,
|
|
17382
|
+
...cert.signatureAlgorithm
|
|
17383
|
+
};
|
|
17275
17384
|
const publicKey = await item.publicKey.export(algorithm, ["verify"], crypto3);
|
|
17276
|
-
const ok = await cert.verify({
|
|
17385
|
+
const ok = await cert.verify({
|
|
17386
|
+
publicKey,
|
|
17387
|
+
signatureOnly: true
|
|
17388
|
+
}, crypto3);
|
|
17277
17389
|
if (!ok) {
|
|
17278
17390
|
continue;
|
|
17279
17391
|
}
|
|
17280
|
-
} catch
|
|
17392
|
+
} catch {
|
|
17281
17393
|
continue;
|
|
17282
17394
|
}
|
|
17283
17395
|
return item;
|
|
@@ -17337,7 +17449,7 @@ var require_x509_cjs = __commonJS({
|
|
|
17337
17449
|
} else {
|
|
17338
17450
|
spki = await crypto3.subtle.exportKey("spki", params.publicKey);
|
|
17339
17451
|
}
|
|
17340
|
-
const serialNumber = generateCertificateSerialNumber(params.serialNumber);
|
|
17452
|
+
const serialNumber = generateCertificateSerialNumber(params.serialNumber, crypto3);
|
|
17341
17453
|
const notBefore = params.notBefore || /* @__PURE__ */ new Date();
|
|
17342
17454
|
const notAfter = params.notAfter || new Date(notBefore.getTime() + 31536e6);
|
|
17343
17455
|
const asnX509 = new asn1X509__namespace.Certificate({
|
|
@@ -17360,10 +17472,15 @@ var require_x509_cjs = __commonJS({
|
|
|
17360
17472
|
const name = params.issuer instanceof Name ? params.issuer : new Name(params.issuer);
|
|
17361
17473
|
asnX509.tbsCertificate.issuer = asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509__namespace.Name);
|
|
17362
17474
|
}
|
|
17363
|
-
const defaultSigningAlgorithm = {
|
|
17364
|
-
|
|
17475
|
+
const defaultSigningAlgorithm = { hash: "SHA-256" };
|
|
17476
|
+
const signatureAlgorithm = "signingKey" in params ? {
|
|
17477
|
+
...defaultSigningAlgorithm,
|
|
17478
|
+
...params.signingAlgorithm,
|
|
17479
|
+
...params.signingKey.algorithm
|
|
17480
|
+
} : {
|
|
17481
|
+
...defaultSigningAlgorithm,
|
|
17482
|
+
...params.signingAlgorithm
|
|
17365
17483
|
};
|
|
17366
|
-
const signatureAlgorithm = "signingKey" in params ? { ...defaultSigningAlgorithm, ...params.signingAlgorithm, ...params.signingKey.algorithm } : { ...defaultSigningAlgorithm, ...params.signingAlgorithm };
|
|
17367
17484
|
const algProv = tsyringe.container.resolve(diAlgorithmProvider);
|
|
17368
17485
|
asnX509.tbsCertificate.signature = asnX509.signatureAlgorithm = algProv.toAsnAlgorithm(signatureAlgorithm);
|
|
17369
17486
|
const tbs = asn1Schema.AsnConvert.serialize(asnX509.tbsCertificate);
|
|
@@ -17603,13 +17720,19 @@ var require_x509_cjs = __commonJS({
|
|
|
17603
17720
|
};
|
|
17604
17721
|
publicKey = await paramsKey.publicKey.export(keyAlgorithm, ["verify"]);
|
|
17605
17722
|
} else if (paramsKey instanceof PublicKey) {
|
|
17606
|
-
keyAlgorithm = {
|
|
17723
|
+
keyAlgorithm = {
|
|
17724
|
+
...paramsKey.algorithm,
|
|
17725
|
+
...this.signatureAlgorithm
|
|
17726
|
+
};
|
|
17607
17727
|
publicKey = await paramsKey.export(keyAlgorithm, ["verify"]);
|
|
17608
17728
|
} else {
|
|
17609
|
-
keyAlgorithm = {
|
|
17729
|
+
keyAlgorithm = {
|
|
17730
|
+
...paramsKey.algorithm,
|
|
17731
|
+
...this.signatureAlgorithm
|
|
17732
|
+
};
|
|
17610
17733
|
publicKey = paramsKey;
|
|
17611
17734
|
}
|
|
17612
|
-
} catch
|
|
17735
|
+
} catch {
|
|
17613
17736
|
return false;
|
|
17614
17737
|
}
|
|
17615
17738
|
const signatureFormatters = tsyringe.container.resolveAll(diAsnSignatureFormatter).reverse();
|
|
@@ -17625,15 +17748,15 @@ var require_x509_cjs = __commonJS({
|
|
|
17625
17748
|
}
|
|
17626
17749
|
return await crypto3.subtle.verify(this.signatureAlgorithm, publicKey, signature, this.tbs);
|
|
17627
17750
|
}
|
|
17628
|
-
async getThumbprint(
|
|
17751
|
+
async getThumbprint(arg1, arg2) {
|
|
17629
17752
|
let crypto3;
|
|
17630
17753
|
let algorithm = "SHA-1";
|
|
17631
|
-
if (
|
|
17632
|
-
if (
|
|
17633
|
-
|
|
17634
|
-
crypto3 = args[1];
|
|
17754
|
+
if (arg1) {
|
|
17755
|
+
if (typeof arg1 === "object" && "subtle" in arg1) {
|
|
17756
|
+
crypto3 = arg1;
|
|
17635
17757
|
} else {
|
|
17636
|
-
|
|
17758
|
+
algorithm = arg1;
|
|
17759
|
+
crypto3 = arg2;
|
|
17637
17760
|
}
|
|
17638
17761
|
}
|
|
17639
17762
|
crypto3 !== null && crypto3 !== void 0 ? crypto3 : crypto3 = cryptoProvider.get();
|
|
@@ -17712,7 +17835,10 @@ var require_x509_cjs = __commonJS({
|
|
|
17712
17835
|
asnX509Crl.tbsCertList.revokedCertificates.push(revokedCert);
|
|
17713
17836
|
}
|
|
17714
17837
|
}
|
|
17715
|
-
const signingAlgorithm = {
|
|
17838
|
+
const signingAlgorithm = {
|
|
17839
|
+
...params.signingAlgorithm,
|
|
17840
|
+
...params.signingKey.algorithm
|
|
17841
|
+
};
|
|
17716
17842
|
const algProv = tsyringe.container.resolve(diAlgorithmProvider);
|
|
17717
17843
|
asnX509Crl.tbsCertList.signature = asnX509Crl.signatureAlgorithm = algProv.toAsnAlgorithm(signingAlgorithm);
|
|
17718
17844
|
const tbs = asn1Schema.AsnConvert.serialize(asnX509Crl.tbsCertList);
|
|
@@ -17810,6 +17936,7 @@ var require_x509_cjs = __commonJS({
|
|
|
17810
17936
|
});
|
|
17811
17937
|
|
|
17812
17938
|
// lib/lambda-assets/cert-generator/src/index.cjs
|
|
17939
|
+
require_Reflect();
|
|
17813
17940
|
var { webcrypto: crypto2, createHash } = require("node:crypto");
|
|
17814
17941
|
var x509 = require_x509_cjs();
|
|
17815
17942
|
var {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fjall/components-infrastructure",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,20 +50,21 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@aws-sdk/client-elastic-load-balancing-v2": "^3.1045.0",
|
|
53
|
-
"@peculiar/x509": "
|
|
53
|
+
"@peculiar/x509": "2.0.0",
|
|
54
54
|
"@types/aws-lambda": "^8.10.161",
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^26.0.0",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
57
57
|
"@typescript-eslint/parser": "^8.59.1",
|
|
58
58
|
"eslint": "^10.2.1",
|
|
59
59
|
"prettier": "^3.8.3",
|
|
60
|
+
"reflect-metadata": "^0.2.2",
|
|
60
61
|
"typescript": "^6.0.3",
|
|
61
62
|
"vitest": "^4.1.7"
|
|
62
63
|
},
|
|
63
64
|
"dependencies": {
|
|
64
65
|
"@aws-sdk/client-organizations": "^3.1038.0",
|
|
65
|
-
"@fjall/generator": "^2.19.
|
|
66
|
-
"@fjall/util": "^2.19.
|
|
66
|
+
"@fjall/generator": "^2.19.6",
|
|
67
|
+
"@fjall/util": "^2.19.6",
|
|
67
68
|
"constructs": "^10.0.0"
|
|
68
69
|
},
|
|
69
70
|
"overrides": {
|
|
@@ -77,5 +78,5 @@
|
|
|
77
78
|
"engines": {
|
|
78
79
|
"node": ">=18.0.0"
|
|
79
80
|
},
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "f41aae2245b7e82af7e8e7f5cf098b83b22cc198"
|
|
81
82
|
}
|