@servicevic-oss/cdk-cleanup-certificate-validation-records 1.3.128 → 1.3.129
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/.jsii +4 -4
- package/lib/index.js +2 -2
- package/node_modules/@aws-sdk/client-acm/dist-cjs/index.js +9 -6
- package/node_modules/@aws-sdk/client-acm/dist-es/endpoint/bdd.js +8 -5
- package/node_modules/@aws-sdk/client-acm/package.json +3 -3
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-route-53/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/package.json +4 -4
package/.jsii
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"bundled": {
|
|
10
|
-
"@aws-sdk/client-acm": "^3.
|
|
11
|
-
"@aws-sdk/client-route-53": "^3.
|
|
10
|
+
"@aws-sdk/client-acm": "^3.1159.0",
|
|
11
|
+
"@aws-sdk/client-route-53": "^3.1159.0",
|
|
12
12
|
"@types/aws-lambda": "^8.10.164",
|
|
13
13
|
"async-await-retry": "^2.1.0"
|
|
14
14
|
},
|
|
@@ -8899,6 +8899,6 @@
|
|
|
8899
8899
|
"symbolId": "src/index:CertificateWithCleanup"
|
|
8900
8900
|
}
|
|
8901
8901
|
},
|
|
8902
|
-
"version": "1.3.
|
|
8903
|
-
"fingerprint": "
|
|
8902
|
+
"version": "1.3.129",
|
|
8903
|
+
"fingerprint": "nXN7l+dTNui+PQMYIaG+XPOeg4HY25ujhz4aOkKhWwg="
|
|
8904
8904
|
}
|
package/lib/index.js
CHANGED
|
@@ -43,7 +43,7 @@ const constructs_1 = require("constructs");
|
|
|
43
43
|
* leave behind when deleting a DNS validated certificate
|
|
44
44
|
*/
|
|
45
45
|
class CertificateValidationRecordCleanup extends constructs_1.Construct {
|
|
46
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateValidationRecordCleanup", version: "1.3.
|
|
46
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateValidationRecordCleanup", version: "1.3.129" };
|
|
47
47
|
static HANDLER_UID = 'CertRecordsCleanupHandler-2B663BAB-7981';
|
|
48
48
|
static PROVIDER_UID = 'CertRecordsCleanupProvider-57EBF059-2E26';
|
|
49
49
|
static LOG_GROUP_UID = 'CertRecordsCleanupLogGroup-57ABF051-1E25';
|
|
@@ -109,7 +109,7 @@ exports.CertificateValidationRecordCleanup = CertificateValidationRecordCleanup;
|
|
|
109
109
|
* A wrapper class for a vanilla `Certificate` object with automatic cleanup attached
|
|
110
110
|
*/
|
|
111
111
|
class CertificateWithCleanup extends cdk.aws_certificatemanager.Certificate {
|
|
112
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateWithCleanup", version: "1.3.
|
|
112
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateWithCleanup", version: "1.3.129" };
|
|
113
113
|
constructor(scope, id, props) {
|
|
114
114
|
super(scope, id, props);
|
|
115
115
|
if (props.validation && props.validation.props.hostedZone && props.validation?.method == cdk.aws_certificatemanager.ValidationMethod.DNS) {
|
|
@@ -71,7 +71,7 @@ const commonParams = {
|
|
|
71
71
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
var version = "3.
|
|
74
|
+
var version = "3.1158.0";
|
|
75
75
|
var packageInfo = {
|
|
76
76
|
version: version};
|
|
77
77
|
|
|
@@ -81,8 +81,8 @@ const _data = {
|
|
|
81
81
|
["isSet", [{ ref: "Endpoint" }]],
|
|
82
82
|
["aws.partition", [{ ref: "Region" }], a],
|
|
83
83
|
[b, [{ ref: "ServiceType" }, "ACM-ACME"]],
|
|
84
|
-
[b, [d, "aws"]],
|
|
85
84
|
[c, [{ ref: "UseFIPS" }, true]],
|
|
85
|
+
[b, [d, "aws"]],
|
|
86
86
|
[c, [{ ref: "UseDualStack" }, true]],
|
|
87
87
|
[b, [d, "aws-us-gov"]]
|
|
88
88
|
],
|
|
@@ -91,7 +91,7 @@ const _data = {
|
|
|
91
91
|
["{Endpoint}", e],
|
|
92
92
|
[-1, "FIPS endpoints are not available for ACME operations"],
|
|
93
93
|
["https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
|
|
94
|
-
[-1, "ACME operations are only available in
|
|
94
|
+
[-1, "ACME operations are only available in the aws and aws-us-gov partitions"],
|
|
95
95
|
["https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
|
|
96
96
|
["https://acm.{Region}.amazonaws.com", e],
|
|
97
97
|
["https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", e],
|
|
@@ -107,12 +107,15 @@ const nodes = new Int32Array([
|
|
|
107
107
|
0, r + 1, 3,
|
|
108
108
|
1, 4, r + 10,
|
|
109
109
|
2, 9, 5,
|
|
110
|
-
|
|
110
|
+
3, 7, 6,
|
|
111
111
|
5, r + 8, r + 9,
|
|
112
112
|
5, r + 5, 8,
|
|
113
113
|
6, r + 6, r + 7,
|
|
114
|
-
3,
|
|
115
|
-
4, r +
|
|
114
|
+
3, 12, 10,
|
|
115
|
+
4, r + 3, 11,
|
|
116
|
+
6, r + 3, r + 4,
|
|
117
|
+
4, r + 2, 13,
|
|
118
|
+
6, r + 2, r + 4,
|
|
116
119
|
]);
|
|
117
120
|
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
118
121
|
|
|
@@ -5,8 +5,8 @@ const _data = {
|
|
|
5
5
|
["isSet", [{ ref: "Endpoint" }]],
|
|
6
6
|
["aws.partition", [{ ref: "Region" }], a],
|
|
7
7
|
[b, [{ ref: "ServiceType" }, "ACM-ACME"]],
|
|
8
|
-
[b, [d, "aws"]],
|
|
9
8
|
[c, [{ ref: "UseFIPS" }, true]],
|
|
9
|
+
[b, [d, "aws"]],
|
|
10
10
|
[c, [{ ref: "UseDualStack" }, true]],
|
|
11
11
|
[b, [d, "aws-us-gov"]]
|
|
12
12
|
],
|
|
@@ -15,7 +15,7 @@ const _data = {
|
|
|
15
15
|
["{Endpoint}", e],
|
|
16
16
|
[-1, "FIPS endpoints are not available for ACME operations"],
|
|
17
17
|
["https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
|
|
18
|
-
[-1, "ACME operations are only available in
|
|
18
|
+
[-1, "ACME operations are only available in the aws and aws-us-gov partitions"],
|
|
19
19
|
["https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
|
|
20
20
|
["https://acm.{Region}.amazonaws.com", e],
|
|
21
21
|
["https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", e],
|
|
@@ -31,11 +31,14 @@ const nodes = new Int32Array([
|
|
|
31
31
|
0, r + 1, 3,
|
|
32
32
|
1, 4, r + 10,
|
|
33
33
|
2, 9, 5,
|
|
34
|
-
|
|
34
|
+
3, 7, 6,
|
|
35
35
|
5, r + 8, r + 9,
|
|
36
36
|
5, r + 5, 8,
|
|
37
37
|
6, r + 6, r + 7,
|
|
38
|
-
3,
|
|
39
|
-
4, r +
|
|
38
|
+
3, 12, 10,
|
|
39
|
+
4, r + 3, 11,
|
|
40
|
+
6, r + 3, r + 4,
|
|
41
|
+
4, r + 2, 13,
|
|
42
|
+
6, r + 2, r + 4,
|
|
40
43
|
]);
|
|
41
44
|
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-acm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.978.
|
|
52
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
+
"@aws-sdk/core": "^3.978.7",
|
|
52
|
+
"@aws-sdk/credential-provider-node": "^3.972.90",
|
|
53
53
|
"@aws-sdk/types": "^3.975.0",
|
|
54
54
|
"@smithy/core": "^3.37.0",
|
|
55
55
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route-53",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.978.7",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.90",
|
|
57
57
|
"@aws-sdk/middleware-sdk-route53": "^3.972.28",
|
|
58
58
|
"@aws-sdk/types": "^3.975.0",
|
|
59
59
|
"@smithy/core": "^3.37.0",
|
|
@@ -91,8 +91,9 @@ function resolveHostHeaderConfig(input) {
|
|
|
91
91
|
return input;
|
|
92
92
|
}
|
|
93
93
|
const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
94
|
-
if (!HttpRequest.isInstance(args.request))
|
|
94
|
+
if (!HttpRequest.isInstance(args.request)) {
|
|
95
95
|
return next(args);
|
|
96
|
+
}
|
|
96
97
|
const { request } = args;
|
|
97
98
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
98
99
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -101,8 +102,9 @@ const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
|
101
102
|
}
|
|
102
103
|
else if (!request.headers["host"]) {
|
|
103
104
|
let host = request.hostname;
|
|
104
|
-
if (request.port != null)
|
|
105
|
+
if (request.port != null) {
|
|
105
106
|
host += `:${request.port}`;
|
|
107
|
+
}
|
|
106
108
|
request.headers["host"] = host;
|
|
107
109
|
}
|
|
108
110
|
return next(args);
|
|
@@ -813,27 +815,36 @@ const createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => a
|
|
|
813
815
|
|
|
814
816
|
const fallback = {
|
|
815
817
|
os(ua) {
|
|
816
|
-
if (/iPhone|iPad|iPod/.test(ua))
|
|
818
|
+
if (/iPhone|iPad|iPod/.test(ua)) {
|
|
817
819
|
return "iOS";
|
|
818
|
-
|
|
820
|
+
}
|
|
821
|
+
if (/Macintosh|Mac OS X/.test(ua)) {
|
|
819
822
|
return "macOS";
|
|
820
|
-
|
|
823
|
+
}
|
|
824
|
+
if (/Windows NT/.test(ua)) {
|
|
821
825
|
return "Windows";
|
|
822
|
-
|
|
826
|
+
}
|
|
827
|
+
if (/Android/.test(ua)) {
|
|
823
828
|
return "Android";
|
|
824
|
-
|
|
829
|
+
}
|
|
830
|
+
if (/Linux/.test(ua)) {
|
|
825
831
|
return "Linux";
|
|
832
|
+
}
|
|
826
833
|
return undefined;
|
|
827
834
|
},
|
|
828
835
|
browser(ua) {
|
|
829
|
-
if (/EdgiOS|EdgA|Edg\//.test(ua))
|
|
836
|
+
if (/EdgiOS|EdgA|Edg\//.test(ua)) {
|
|
830
837
|
return "Microsoft Edge";
|
|
831
|
-
|
|
838
|
+
}
|
|
839
|
+
if (/Firefox\//.test(ua)) {
|
|
832
840
|
return "Firefox";
|
|
833
|
-
|
|
841
|
+
}
|
|
842
|
+
if (/Chrome\//.test(ua)) {
|
|
834
843
|
return "Chrome";
|
|
835
|
-
|
|
844
|
+
}
|
|
845
|
+
if (/Safari\//.test(ua)) {
|
|
836
846
|
return "Safari";
|
|
847
|
+
}
|
|
837
848
|
return undefined;
|
|
838
849
|
},
|
|
839
850
|
};
|
|
@@ -866,11 +877,13 @@ const ARN_DELIMITER = ":";
|
|
|
866
877
|
const RESOURCE_DELIMITER = "/";
|
|
867
878
|
const parseArn = (value) => {
|
|
868
879
|
const segments = value.split(ARN_DELIMITER);
|
|
869
|
-
if (segments.length < 6)
|
|
880
|
+
if (segments.length < 6) {
|
|
870
881
|
return null;
|
|
882
|
+
}
|
|
871
883
|
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
872
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
884
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") {
|
|
873
885
|
return null;
|
|
886
|
+
}
|
|
874
887
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
875
888
|
return {
|
|
876
889
|
partition,
|
|
@@ -157,16 +157,19 @@ const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
157
157
|
environmentVariableSelector: (env, options) => {
|
|
158
158
|
if (options?.signingName) {
|
|
159
159
|
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
160
|
-
if (bearerTokenKey in env)
|
|
160
|
+
if (bearerTokenKey in env) {
|
|
161
161
|
return ["httpBearerAuth"];
|
|
162
|
+
}
|
|
162
163
|
}
|
|
163
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
|
|
164
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
|
|
164
165
|
return undefined;
|
|
166
|
+
}
|
|
165
167
|
return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
166
168
|
},
|
|
167
169
|
configFileSelector: (profile) => {
|
|
168
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
170
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
|
|
169
171
|
return undefined;
|
|
172
|
+
}
|
|
170
173
|
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
171
174
|
},
|
|
172
175
|
default: [],
|
|
@@ -3,8 +3,9 @@ const { buildQueryString } = require("@smithy/core/protocols");
|
|
|
3
3
|
const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
4
4
|
const parse = (arn) => {
|
|
5
5
|
const segments = arn.split(":");
|
|
6
|
-
if (segments.length < 6 || segments[0] !== "arn")
|
|
6
|
+
if (segments.length < 6 || segments[0] !== "arn") {
|
|
7
7
|
throw new Error("Malformed ARN");
|
|
8
|
+
}
|
|
8
9
|
const [, partition, service, region, accountId, ...resource] = segments;
|
|
9
10
|
return {
|
|
10
11
|
partition,
|
|
@@ -3,8 +3,9 @@ export function resolveHostHeaderConfig(input) {
|
|
|
3
3
|
return input;
|
|
4
4
|
}
|
|
5
5
|
export const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
6
|
-
if (!HttpRequest.isInstance(args.request))
|
|
6
|
+
if (!HttpRequest.isInstance(args.request)) {
|
|
7
7
|
return next(args);
|
|
8
|
+
}
|
|
8
9
|
const { request } = args;
|
|
9
10
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
10
11
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -13,8 +14,9 @@ export const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
|
13
14
|
}
|
|
14
15
|
else if (!request.headers["host"]) {
|
|
15
16
|
let host = request.hostname;
|
|
16
|
-
if (request.port != null)
|
|
17
|
+
if (request.port != null) {
|
|
17
18
|
host += `:${request.port}`;
|
|
19
|
+
}
|
|
18
20
|
request.headers["host"] = host;
|
|
19
21
|
}
|
|
20
22
|
return next(args);
|
package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
CHANGED
|
@@ -2,11 +2,13 @@ const ARN_DELIMITER = ":";
|
|
|
2
2
|
const RESOURCE_DELIMITER = "/";
|
|
3
3
|
export const parseArn = (value) => {
|
|
4
4
|
const segments = value.split(ARN_DELIMITER);
|
|
5
|
-
if (segments.length < 6)
|
|
5
|
+
if (segments.length < 6) {
|
|
6
6
|
return null;
|
|
7
|
+
}
|
|
7
8
|
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
8
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
9
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") {
|
|
9
10
|
return null;
|
|
11
|
+
}
|
|
10
12
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
11
13
|
return {
|
|
12
14
|
partition,
|
|
@@ -26,27 +26,36 @@ export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) =>
|
|
|
26
26
|
};
|
|
27
27
|
export const fallback = {
|
|
28
28
|
os(ua) {
|
|
29
|
-
if (/iPhone|iPad|iPod/.test(ua))
|
|
29
|
+
if (/iPhone|iPad|iPod/.test(ua)) {
|
|
30
30
|
return "iOS";
|
|
31
|
-
|
|
31
|
+
}
|
|
32
|
+
if (/Macintosh|Mac OS X/.test(ua)) {
|
|
32
33
|
return "macOS";
|
|
33
|
-
|
|
34
|
+
}
|
|
35
|
+
if (/Windows NT/.test(ua)) {
|
|
34
36
|
return "Windows";
|
|
35
|
-
|
|
37
|
+
}
|
|
38
|
+
if (/Android/.test(ua)) {
|
|
36
39
|
return "Android";
|
|
37
|
-
|
|
40
|
+
}
|
|
41
|
+
if (/Linux/.test(ua)) {
|
|
38
42
|
return "Linux";
|
|
43
|
+
}
|
|
39
44
|
return undefined;
|
|
40
45
|
},
|
|
41
46
|
browser(ua) {
|
|
42
|
-
if (/EdgiOS|EdgA|Edg\//.test(ua))
|
|
47
|
+
if (/EdgiOS|EdgA|Edg\//.test(ua)) {
|
|
43
48
|
return "Microsoft Edge";
|
|
44
|
-
|
|
49
|
+
}
|
|
50
|
+
if (/Firefox\//.test(ua)) {
|
|
45
51
|
return "Firefox";
|
|
46
|
-
|
|
52
|
+
}
|
|
53
|
+
if (/Chrome\//.test(ua)) {
|
|
47
54
|
return "Chrome";
|
|
48
|
-
|
|
55
|
+
}
|
|
56
|
+
if (/Safari\//.test(ua)) {
|
|
49
57
|
return "Safari";
|
|
58
|
+
}
|
|
50
59
|
return undefined;
|
|
51
60
|
},
|
|
52
61
|
};
|
|
@@ -6,16 +6,19 @@ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
6
6
|
environmentVariableSelector: (env, options) => {
|
|
7
7
|
if (options?.signingName) {
|
|
8
8
|
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
9
|
-
if (bearerTokenKey in env)
|
|
9
|
+
if (bearerTokenKey in env) {
|
|
10
10
|
return ["httpBearerAuth"];
|
|
11
|
+
}
|
|
11
12
|
}
|
|
12
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
|
|
13
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
|
|
13
14
|
return undefined;
|
|
15
|
+
}
|
|
14
16
|
return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
15
17
|
},
|
|
16
18
|
configFileSelector: (profile) => {
|
|
17
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
19
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
|
|
18
20
|
return undefined;
|
|
21
|
+
}
|
|
19
22
|
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
20
23
|
},
|
|
21
24
|
default: [],
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
2
2
|
export const parse = (arn) => {
|
|
3
3
|
const segments = arn.split(":");
|
|
4
|
-
if (segments.length < 6 || segments[0] !== "arn")
|
|
4
|
+
if (segments.length < 6 || segments[0] !== "arn") {
|
|
5
5
|
throw new Error("Malformed ARN");
|
|
6
|
+
}
|
|
6
7
|
const [, partition, service, region, accountId, ...resource] = segments;
|
|
7
8
|
return {
|
|
8
9
|
partition,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.978.
|
|
3
|
+
"version": "3.978.7",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
127
|
"@aws-sdk/types": "^3.975.0",
|
|
128
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
128
|
+
"@aws-sdk/xml-builder": "^3.972.42",
|
|
129
129
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
130
130
|
"@smithy/core": "^3.37.0",
|
|
131
131
|
"@smithy/signature-v4": "^5.7.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.78",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test:watch": "yarn g:vitest watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.978.
|
|
46
|
+
"@aws-sdk/core": "^3.978.7",
|
|
47
47
|
"@aws-sdk/types": "^3.975.0",
|
|
48
48
|
"@smithy/core": "^3.37.0",
|
|
49
49
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.80",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
+
"@aws-sdk/core": "^3.978.7",
|
|
57
57
|
"@aws-sdk/types": "^3.975.0",
|
|
58
58
|
"@smithy/core": "^3.37.0",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.23",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
50
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
51
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
52
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
53
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
54
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
55
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
48
|
+
"@aws-sdk/core": "^3.978.7",
|
|
49
|
+
"@aws-sdk/credential-provider-env": "^3.972.78",
|
|
50
|
+
"@aws-sdk/credential-provider-http": "^3.972.80",
|
|
51
|
+
"@aws-sdk/credential-provider-login": "^3.972.85",
|
|
52
|
+
"@aws-sdk/credential-provider-process": "^3.972.78",
|
|
53
|
+
"@aws-sdk/credential-provider-sso": "^3.973.22",
|
|
54
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.84",
|
|
55
|
+
"@aws-sdk/nested-clients": "^3.997.52",
|
|
56
56
|
"@aws-sdk/types": "^3.975.0",
|
|
57
57
|
"@smithy/core": "^3.37.0",
|
|
58
58
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.85",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"test:watch": "yarn g:vitest watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
48
|
+
"@aws-sdk/core": "^3.978.7",
|
|
49
|
+
"@aws-sdk/nested-clients": "^3.997.52",
|
|
50
50
|
"@aws-sdk/types": "^3.975.0",
|
|
51
51
|
"@smithy/core": "^3.37.0",
|
|
52
52
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.90",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
49
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
50
|
-
"@aws-sdk/credential-provider-ini": "^3.973.
|
|
51
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
52
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
53
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
48
|
+
"@aws-sdk/credential-provider-env": "^3.972.78",
|
|
49
|
+
"@aws-sdk/credential-provider-http": "^3.972.80",
|
|
50
|
+
"@aws-sdk/credential-provider-ini": "^3.973.23",
|
|
51
|
+
"@aws-sdk/credential-provider-process": "^3.972.78",
|
|
52
|
+
"@aws-sdk/credential-provider-sso": "^3.973.22",
|
|
53
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.84",
|
|
54
54
|
"@aws-sdk/types": "^3.975.0",
|
|
55
55
|
"@smithy/core": "^3.37.0",
|
|
56
56
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.78",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test:watch": "yarn g:vitest watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.978.
|
|
46
|
+
"@aws-sdk/core": "^3.978.7",
|
|
47
47
|
"@aws-sdk/types": "^3.975.0",
|
|
48
48
|
"@smithy/core": "^3.37.0",
|
|
49
49
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.22",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
50
|
-
"@aws-sdk/token-providers": "3.
|
|
48
|
+
"@aws-sdk/core": "^3.978.7",
|
|
49
|
+
"@aws-sdk/nested-clients": "^3.997.52",
|
|
50
|
+
"@aws-sdk/token-providers": "3.1159.0",
|
|
51
51
|
"@aws-sdk/types": "^3.975.0",
|
|
52
52
|
"@smithy/core": "^3.37.0",
|
|
53
53
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.84",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test:watch": "yarn g:vitest watch"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/core": "^3.978.
|
|
54
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
53
|
+
"@aws-sdk/core": "^3.978.7",
|
|
54
|
+
"@aws-sdk/nested-clients": "^3.997.52",
|
|
55
55
|
"@aws-sdk/types": "^3.975.0",
|
|
56
56
|
"@smithy/core": "^3.37.0",
|
|
57
57
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.52",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"test:watch": "yarn g:vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/core": "^3.978.
|
|
104
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
103
|
+
"@aws-sdk/core": "^3.978.7",
|
|
104
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.50",
|
|
105
105
|
"@aws-sdk/types": "^3.975.0",
|
|
106
106
|
"@smithy/core": "^3.37.0",
|
|
107
107
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.978.
|
|
52
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
51
|
+
"@aws-sdk/core": "^3.978.7",
|
|
52
|
+
"@aws-sdk/nested-clients": "^3.997.52",
|
|
53
53
|
"@aws-sdk/types": "^3.975.0",
|
|
54
54
|
"@smithy/core": "^3.37.0",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jsii-docgen": "^10.5.0",
|
|
54
54
|
"jsii-pacmak": "^1.142.0",
|
|
55
55
|
"jsii-rosetta": "~5.9.0",
|
|
56
|
-
"projen": "^0.104.
|
|
56
|
+
"projen": "^0.104.19",
|
|
57
57
|
"ts-jest": "^29.4.15",
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
59
|
"typescript": "~5.7.3"
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"constructs": "^10.5.1"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@aws-sdk/client-acm": "^3.
|
|
67
|
-
"@aws-sdk/client-route-53": "^3.
|
|
66
|
+
"@aws-sdk/client-acm": "^3.1159.0",
|
|
67
|
+
"@aws-sdk/client-route-53": "^3.1159.0",
|
|
68
68
|
"@types/aws-lambda": "^8.10.164",
|
|
69
69
|
"async-await-retry": "^2.1.0"
|
|
70
70
|
},
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
|
-
"version": "1.3.
|
|
95
|
+
"version": "1.3.129",
|
|
96
96
|
"jest": {
|
|
97
97
|
"coverageProvider": "v8",
|
|
98
98
|
"testMatch": [
|