@mavogel/awscdk-rootmail 0.1.33 → 0.1.34
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 +7 -7
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js +2 -1
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js +2 -1
- package/node_modules/@aws-sdk/checksums/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/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/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +7 -7
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ses/package.json +3 -3
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/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/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +34 -16
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +6 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js +6 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js +8 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js +18 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js +2 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.js +4 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.js +2 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/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 +6 -6
package/.jsii
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"bundled": {
|
|
11
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
12
|
-
"@aws-sdk/client-route-53": "^3.
|
|
13
|
-
"@aws-sdk/client-s3": "^3.
|
|
14
|
-
"@aws-sdk/client-ses": "^3.
|
|
15
|
-
"@aws-sdk/client-ssm": "^3.
|
|
11
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.1159.0",
|
|
12
|
+
"@aws-sdk/client-route-53": "^3.1159.0",
|
|
13
|
+
"@aws-sdk/client-s3": "^3.1159.0",
|
|
14
|
+
"@aws-sdk/client-ses": "^3.1159.0",
|
|
15
|
+
"@aws-sdk/client-ssm": "^3.1159.0",
|
|
16
16
|
"cdk-nag": "^3.0.1",
|
|
17
17
|
"mailparser": "^3.12.4",
|
|
18
18
|
"uuid": "^14.0.3"
|
|
@@ -9620,6 +9620,6 @@
|
|
|
9620
9620
|
"symbolId": "src/ses-receive:SESReceiveProps"
|
|
9621
9621
|
}
|
|
9622
9622
|
},
|
|
9623
|
-
"version": "0.1.
|
|
9624
|
-
"fingerprint": "
|
|
9623
|
+
"version": "0.1.34",
|
|
9624
|
+
"fingerprint": "ZWCj7B4w1DAAsKHv5L9AD+VuwnAMewxBa9d0mqPufac="
|
|
9625
9625
|
}
|
package/lib/rootmail.js
CHANGED
|
@@ -11,7 +11,7 @@ const ses_receive_1 = require("./ses-receive");
|
|
|
11
11
|
* Rootmail construct
|
|
12
12
|
*/
|
|
13
13
|
class Rootmail extends constructs_1.Construct {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.34" };
|
|
15
15
|
/**
|
|
16
16
|
* The name parameter in SSM to store the domain name server.
|
|
17
17
|
*/
|
package/lib/ses-receive.js
CHANGED
|
@@ -11,7 +11,7 @@ const ses_receipt_ruleset_activation_1 = require("./ses-receipt-ruleset-activati
|
|
|
11
11
|
* SES Receive construct
|
|
12
12
|
*/
|
|
13
13
|
class SESReceive extends constructs_1.Construct {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.34" };
|
|
15
15
|
constructor(scope, id, props) {
|
|
16
16
|
super(scope, id);
|
|
17
17
|
const filteredEmailSubjects = props.filteredEmailSubjects || [];
|
|
@@ -36,8 +36,9 @@ var SelectorType;
|
|
|
36
36
|
SelectorType["CONFIG"] = "shared config entry";
|
|
37
37
|
})(SelectorType || (SelectorType = {}));
|
|
38
38
|
const stringUnionSelector = (obj, key, union, type) => {
|
|
39
|
-
if (!(key in obj))
|
|
39
|
+
if (!(key in obj)) {
|
|
40
40
|
return undefined;
|
|
41
|
+
}
|
|
41
42
|
const value = obj[key].toUpperCase();
|
|
42
43
|
if (!Object.values(union).includes(value)) {
|
|
43
44
|
throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union)}, got '${obj[key]}'.`);
|
package/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js
CHANGED
|
@@ -4,8 +4,9 @@ export var SelectorType;
|
|
|
4
4
|
SelectorType["CONFIG"] = "shared config entry";
|
|
5
5
|
})(SelectorType || (SelectorType = {}));
|
|
6
6
|
export const stringUnionSelector = (obj, key, union, type) => {
|
|
7
|
-
if (!(key in obj))
|
|
7
|
+
if (!(key in obj)) {
|
|
8
8
|
return undefined;
|
|
9
|
+
}
|
|
9
10
|
const value = obj[key].toUpperCase();
|
|
10
11
|
if (!Object.values(union).includes(value)) {
|
|
11
12
|
throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union)}, got '${obj[key]}'.`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/checksums",
|
|
3
|
-
"version": "3.1001.
|
|
3
|
+
"version": "3.1001.7",
|
|
4
4
|
"description": "Checksum algorithms and flexible checksums middleware for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/checksums",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@aws-sdk/core": "^3.978.
|
|
116
|
+
"@aws-sdk/core": "^3.978.7",
|
|
117
117
|
"@aws-sdk/types": "^3.975.0",
|
|
118
118
|
"@smithy/core": "^3.37.0",
|
|
119
119
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
|
|
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/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/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",
|
|
@@ -4779,7 +4779,7 @@ var WriteGetObjectResponse$ = [9, n0, _WGOR,
|
|
|
4779
4779
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
4780
4780
|
}
|
|
4781
4781
|
|
|
4782
|
-
var version = "3.
|
|
4782
|
+
var version = "3.1158.0";
|
|
4783
4783
|
var packageInfo = {
|
|
4784
4784
|
version: version};
|
|
4785
4785
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aws-sdk/checksums": "^3.1001.
|
|
58
|
-
"@aws-sdk/core": "^3.978.
|
|
59
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
60
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.
|
|
61
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
57
|
+
"@aws-sdk/checksums": "^3.1001.7",
|
|
58
|
+
"@aws-sdk/core": "^3.978.7",
|
|
59
|
+
"@aws-sdk/credential-provider-node": "^3.972.90",
|
|
60
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.83",
|
|
61
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.50",
|
|
62
62
|
"@aws-sdk/types": "^3.975.0",
|
|
63
63
|
"@smithy/core": "^3.37.0",
|
|
64
64
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
70
|
+
"@aws-sdk/signature-v4-crt": "3.1159.0",
|
|
71
71
|
"@smithy/snapshot-testing": "^2.4.0",
|
|
72
72
|
"@tsconfig/node20": "20.1.8",
|
|
73
73
|
"@types/node": "^20.14.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ses",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ses Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ses",
|
|
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/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/client-ssm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1159.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
|
|
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",
|
|
@@ -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",
|