@mavogel/awscdk-rootmail 0.0.238 → 0.0.240
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 +8 -8
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/CloudWatchLogsClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/CloudWatchLogsClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +14 -14
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-route-53/dist-types/Route53Client.d.ts +18 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53Client.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/package.json +15 -15
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +23 -46
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +16 -11
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketAclCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketCorsCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketEncryptionCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLoggingCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketPolicyCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketReplicationCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketTaggingCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketVersioningCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketWebsiteCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutPublicAccessBlockCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +16 -11
- package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +18 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/package.json +22 -22
- package/node_modules/@aws-sdk/client-ses/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-ses/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-ses/dist-types/SESClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/SESClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +31 -8
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/flexibleChecksumsMiddleware.js +5 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/hasHeaderWithPrefix.js +9 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/selectChecksumAlgorithmFunction.js +16 -7
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsMiddleware.d.ts +12 -7
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/hasHeaderWithPrefix.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/flexibleChecksumsMiddleware.d.ts +4 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/hasHeaderWithPrefix.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-ssec/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +10 -10
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -10
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/package.json +8 -8
|
@@ -257,17 +257,21 @@ var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, op
|
|
|
257
257
|
var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
258
258
|
var _a;
|
|
259
259
|
const init = {
|
|
260
|
-
..._init
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
init.parentClientConfig = {
|
|
264
|
-
region: callerClientConfig.region,
|
|
260
|
+
..._init,
|
|
261
|
+
parentClientConfig: {
|
|
262
|
+
...callerClientConfig,
|
|
265
263
|
..._init.parentClientConfig
|
|
266
|
-
}
|
|
267
|
-
}
|
|
264
|
+
}
|
|
265
|
+
};
|
|
268
266
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
269
267
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
270
|
-
return resolveProfileData(
|
|
268
|
+
return resolveProfileData(
|
|
269
|
+
(0, import_shared_ini_file_loader.getProfileName)({
|
|
270
|
+
profile: _init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
271
|
+
}),
|
|
272
|
+
profiles,
|
|
273
|
+
init
|
|
274
|
+
);
|
|
271
275
|
}, "fromIni");
|
|
272
276
|
// Annotate the CommonJS export names for ESM import in node:
|
|
273
277
|
|
|
@@ -3,14 +3,14 @@ import { resolveProfileData } from "./resolveProfileData";
|
|
|
3
3
|
export const fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
4
4
|
const init = {
|
|
5
5
|
..._init,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
init.parentClientConfig = {
|
|
9
|
-
region: callerClientConfig.region,
|
|
6
|
+
parentClientConfig: {
|
|
7
|
+
...callerClientConfig,
|
|
10
8
|
..._init.parentClientConfig,
|
|
11
|
-
}
|
|
12
|
-
}
|
|
9
|
+
},
|
|
10
|
+
};
|
|
13
11
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
14
12
|
const profiles = await parseKnownFiles(init);
|
|
15
|
-
return resolveProfileData(getProfileName(
|
|
13
|
+
return resolveProfileData(getProfileName({
|
|
14
|
+
profile: _init.profile ?? callerClientConfig?.profile,
|
|
15
|
+
}), profiles, init);
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/core": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
34
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
35
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
36
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/core": "3.714.0",
|
|
31
|
+
"@aws-sdk/credential-provider-env": "3.714.0",
|
|
32
|
+
"@aws-sdk/credential-provider-http": "3.714.0",
|
|
33
|
+
"@aws-sdk/credential-provider-process": "3.714.0",
|
|
34
|
+
"@aws-sdk/credential-provider-sso": "3.714.0",
|
|
35
|
+
"@aws-sdk/credential-provider-web-identity": "3.714.0",
|
|
36
|
+
"@aws-sdk/types": "3.714.0",
|
|
37
37
|
"@smithy/credential-provider-imds": "^3.2.8",
|
|
38
38
|
"@smithy/property-provider": "^3.1.11",
|
|
39
39
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "~4.9.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@aws-sdk/client-sts": "^3.
|
|
52
|
+
"@aws-sdk/client-sts": "^3.714.0"
|
|
53
53
|
},
|
|
54
54
|
"types": "./dist-types/index.d.ts",
|
|
55
55
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
34
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
38
|
-
"@aws-sdk/types": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-env": "3.714.0",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "3.714.0",
|
|
34
|
+
"@aws-sdk/credential-provider-ini": "3.714.0",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "3.714.0",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "3.714.0",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "3.714.0",
|
|
38
|
+
"@aws-sdk/types": "3.714.0",
|
|
39
39
|
"@smithy/credential-provider-imds": "^3.2.8",
|
|
40
40
|
"@smithy/property-provider": "^3.1.11",
|
|
41
41
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
@@ -96,11 +96,17 @@ var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profi
|
|
|
96
96
|
}, "resolveProcessCredentials");
|
|
97
97
|
|
|
98
98
|
// src/fromProcess.ts
|
|
99
|
-
var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
99
|
+
var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
100
100
|
var _a;
|
|
101
101
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
102
102
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
103
|
-
return resolveProcessCredentials(
|
|
103
|
+
return resolveProcessCredentials(
|
|
104
|
+
(0, import_shared_ini_file_loader.getProfileName)({
|
|
105
|
+
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
106
|
+
}),
|
|
107
|
+
profiles,
|
|
108
|
+
init.logger
|
|
109
|
+
);
|
|
104
110
|
}, "fromProcess");
|
|
105
111
|
// Annotate the CommonJS export names for ESM import in node:
|
|
106
112
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
|
2
2
|
import { resolveProcessCredentials } from "./resolveProcessCredentials";
|
|
3
|
-
export const fromProcess = (init = {}) => async () => {
|
|
3
|
+
export const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
4
4
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
5
5
|
const profiles = await parseKnownFiles(init);
|
|
6
|
-
return resolveProcessCredentials(getProfileName(
|
|
6
|
+
return resolveProcessCredentials(getProfileName({
|
|
7
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
8
|
+
}), profiles, init.logger);
|
|
7
9
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
3
|
/**
|
|
5
4
|
* @internal
|
|
6
5
|
*/
|
|
@@ -12,4 +11,4 @@ export interface FromProcessInit extends SourceProfileInit, CredentialProviderOp
|
|
|
12
11
|
* Creates a credential provider that will read from a credential_process specified
|
|
13
12
|
* in ini files.
|
|
14
13
|
*/
|
|
15
|
-
export declare const fromProcess: (init?: FromProcessInit) =>
|
|
14
|
+
export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
2
5
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
6
|
export interface FromProcessInit
|
|
5
7
|
extends SourceProfileInit,
|
|
6
8
|
CredentialProviderOptions {}
|
|
7
9
|
export declare const fromProcess: (
|
|
8
10
|
init?: FromProcessInit
|
|
9
|
-
) =>
|
|
11
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/core": "3.714.0",
|
|
29
|
+
"@aws-sdk/types": "3.714.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.11",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
32
32
|
"@smithy/types": "^3.7.2",
|
|
@@ -165,12 +165,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
165
165
|
}, "validateSsoProfile");
|
|
166
166
|
|
|
167
167
|
// src/fromSSO.ts
|
|
168
|
-
var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
168
|
+
var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
169
169
|
var _a;
|
|
170
170
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
171
171
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
172
172
|
const { ssoClient } = init;
|
|
173
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(
|
|
173
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
|
174
|
+
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
175
|
+
});
|
|
174
176
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
175
177
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
176
178
|
const profile = profiles[profileName];
|
|
@@ -3,11 +3,13 @@ import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/sha
|
|
|
3
3
|
import { isSsoProfile } from "./isSsoProfile";
|
|
4
4
|
import { resolveSSOCredentials } from "./resolveSSOCredentials";
|
|
5
5
|
import { validateSsoProfile } from "./validateSsoProfile";
|
|
6
|
-
export const fromSSO = (init = {}) => async () => {
|
|
6
|
+
export const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
7
7
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
8
8
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
9
9
|
const { ssoClient } = init;
|
|
10
|
-
const profileName = getProfileName(
|
|
10
|
+
const profileName = getProfileName({
|
|
11
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
12
|
+
});
|
|
11
13
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
12
14
|
const profiles = await parseKnownFiles(init);
|
|
13
15
|
const profile = profiles[profileName];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
3
|
import type { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
4
|
/**
|
|
6
5
|
* @internal
|
|
@@ -66,4 +65,4 @@ export interface FromSSOInit extends SourceProfileInit, CredentialProviderOption
|
|
|
66
65
|
* sso_start_url = https://www.....com/start
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
|
-
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) =>
|
|
68
|
+
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
2
5
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
6
|
import { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
7
|
export interface SsoCredentialsParameters {
|
|
6
8
|
ssoStartUrl: string;
|
|
@@ -17,4 +19,4 @@ export interface FromSSOInit
|
|
|
17
19
|
}
|
|
18
20
|
export declare const fromSSO: (
|
|
19
21
|
init?: FromSSOInit & Partial<SsoCredentialsParameters>
|
|
20
|
-
) =>
|
|
22
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso": "3.
|
|
29
|
-
"@aws-sdk/core": "3.
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/client-sso": "3.714.0",
|
|
29
|
+
"@aws-sdk/core": "3.714.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.714.0",
|
|
31
|
+
"@aws-sdk/types": "3.714.0",
|
|
32
32
|
"@smithy/property-provider": "^3.1.11",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
34
34
|
"@smithy/types": "^3.7.2",
|
|
@@ -33,14 +33,10 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
33
33
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
34
34
|
...init.clientConfig,
|
|
35
35
|
credentialProviderLogger: init.logger,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...init.parentClientConfig,
|
|
41
|
-
},
|
|
42
|
-
}
|
|
43
|
-
: {}),
|
|
36
|
+
parentClientConfig: {
|
|
37
|
+
...awsIdentityProperties?.callerClientConfig,
|
|
38
|
+
...init.parentClientConfig,
|
|
39
|
+
},
|
|
44
40
|
}, init.clientPlugins);
|
|
45
41
|
}
|
|
46
42
|
return roleAssumerWithWebIdentity({
|
|
@@ -7,14 +7,10 @@ export const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
7
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
8
8
|
...init.clientConfig,
|
|
9
9
|
credentialProviderLogger: init.logger,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...init.parentClientConfig,
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
: {}),
|
|
10
|
+
parentClientConfig: {
|
|
11
|
+
...awsIdentityProperties?.callerClientConfig,
|
|
12
|
+
...init.parentClientConfig,
|
|
13
|
+
},
|
|
18
14
|
}, init.clientPlugins);
|
|
19
15
|
}
|
|
20
16
|
return roleAssumerWithWebIdentity({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aws-sdk/core": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
36
|
+
"@aws-sdk/core": "3.714.0",
|
|
37
|
+
"@aws-sdk/types": "3.714.0",
|
|
38
38
|
"@smithy/property-provider": "^3.1.11",
|
|
39
39
|
"@smithy/types": "^3.7.2",
|
|
40
40
|
"tslib": "^2.6.2"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "~4.9.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@aws-sdk/client-sts": "^3.
|
|
51
|
+
"@aws-sdk/client-sts": "^3.714.0"
|
|
52
52
|
},
|
|
53
53
|
"types": "./dist-types/index.d.ts",
|
|
54
54
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-bucket-endpoint",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.714.0",
|
|
26
26
|
"@aws-sdk/util-arn-parser": "3.693.0",
|
|
27
27
|
"@smithy/node-config-provider": "^3.1.12",
|
|
28
28
|
"@smithy/protocol-http": "^4.1.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-expect-continue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-expect-continue",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.714.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -169,6 +169,17 @@ var hasHeader = /* @__PURE__ */ __name((header, headers) => {
|
|
|
169
169
|
return false;
|
|
170
170
|
}, "hasHeader");
|
|
171
171
|
|
|
172
|
+
// src/hasHeaderWithPrefix.ts
|
|
173
|
+
var hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => {
|
|
174
|
+
const soughtHeaderPrefix = headerPrefix.toLowerCase();
|
|
175
|
+
for (const headerName of Object.keys(headers)) {
|
|
176
|
+
if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) {
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return false;
|
|
181
|
+
}, "hasHeaderWithPrefix");
|
|
182
|
+
|
|
172
183
|
// src/isStreaming.ts
|
|
173
184
|
var import_is_array_buffer = require("@smithy/is-array-buffer");
|
|
174
185
|
var isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, import_is_array_buffer.isArrayBuffer)(body), "isStreaming");
|
|
@@ -176,13 +187,22 @@ var isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof bod
|
|
|
176
187
|
// src/selectChecksumAlgorithmFunction.ts
|
|
177
188
|
var import_crc32c = require("@aws-crypto/crc32c");
|
|
178
189
|
var import_getCrc32ChecksumAlgorithmFunction = require("././getCrc32ChecksumAlgorithmFunction");
|
|
179
|
-
var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) =>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
190
|
+
var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => {
|
|
191
|
+
switch (checksumAlgorithm) {
|
|
192
|
+
case "MD5" /* MD5 */:
|
|
193
|
+
return config.md5;
|
|
194
|
+
case "CRC32" /* CRC32 */:
|
|
195
|
+
return (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)();
|
|
196
|
+
case "CRC32C" /* CRC32C */:
|
|
197
|
+
return import_crc32c.AwsCrc32c;
|
|
198
|
+
case "SHA1" /* SHA1 */:
|
|
199
|
+
return config.sha1;
|
|
200
|
+
case "SHA256" /* SHA256 */:
|
|
201
|
+
return config.sha256;
|
|
202
|
+
default:
|
|
203
|
+
throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
|
|
204
|
+
}
|
|
205
|
+
}, "selectChecksumAlgorithmFunction");
|
|
186
206
|
|
|
187
207
|
// src/stringHasher.ts
|
|
188
208
|
var import_util_utf8 = require("@smithy/util-utf8");
|
|
@@ -203,6 +223,9 @@ var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConf
|
|
|
203
223
|
if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
|
|
204
224
|
return next(args);
|
|
205
225
|
}
|
|
226
|
+
if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
|
|
227
|
+
return next(args);
|
|
228
|
+
}
|
|
206
229
|
const { request, input } = args;
|
|
207
230
|
const { body: requestBody, headers } = request;
|
|
208
231
|
const { base64Encoder, streamHasher } = config;
|
|
@@ -211,7 +234,7 @@ var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConf
|
|
|
211
234
|
input,
|
|
212
235
|
{
|
|
213
236
|
requestChecksumRequired,
|
|
214
|
-
requestAlgorithmMember
|
|
237
|
+
requestAlgorithmMember: requestAlgorithmMember == null ? void 0 : requestAlgorithmMember.name
|
|
215
238
|
},
|
|
216
239
|
!!context.isS3ExpressBucket
|
|
217
240
|
);
|
package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/flexibleChecksumsMiddleware.js
CHANGED
|
@@ -4,6 +4,7 @@ import { ChecksumAlgorithm } from "./constants";
|
|
|
4
4
|
import { getChecksumAlgorithmForRequest } from "./getChecksumAlgorithmForRequest";
|
|
5
5
|
import { getChecksumLocationName } from "./getChecksumLocationName";
|
|
6
6
|
import { hasHeader } from "./hasHeader";
|
|
7
|
+
import { hasHeaderWithPrefix } from "./hasHeaderWithPrefix";
|
|
7
8
|
import { isStreaming } from "./isStreaming";
|
|
8
9
|
import { selectChecksumAlgorithmFunction } from "./selectChecksumAlgorithmFunction";
|
|
9
10
|
import { stringHasher } from "./stringHasher";
|
|
@@ -17,13 +18,16 @@ export const flexibleChecksumsMiddleware = (config, middlewareConfig) => (next,
|
|
|
17
18
|
if (!HttpRequest.isInstance(args.request)) {
|
|
18
19
|
return next(args);
|
|
19
20
|
}
|
|
21
|
+
if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
|
|
22
|
+
return next(args);
|
|
23
|
+
}
|
|
20
24
|
const { request, input } = args;
|
|
21
25
|
const { body: requestBody, headers } = request;
|
|
22
26
|
const { base64Encoder, streamHasher } = config;
|
|
23
27
|
const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig;
|
|
24
28
|
const checksumAlgorithm = getChecksumAlgorithmForRequest(input, {
|
|
25
29
|
requestChecksumRequired,
|
|
26
|
-
requestAlgorithmMember,
|
|
30
|
+
requestAlgorithmMember: requestAlgorithmMember?.name,
|
|
27
31
|
}, !!context.isS3ExpressBucket);
|
|
28
32
|
let updatedBody = requestBody;
|
|
29
33
|
let updatedHeaders = headers;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const hasHeaderWithPrefix = (headerPrefix, headers) => {
|
|
2
|
+
const soughtHeaderPrefix = headerPrefix.toLowerCase();
|
|
3
|
+
for (const headerName of Object.keys(headers)) {
|
|
4
|
+
if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return false;
|
|
9
|
+
};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { AwsCrc32c } from "@aws-crypto/crc32c";
|
|
2
2
|
import { ChecksumAlgorithm } from "./constants";
|
|
3
3
|
import { getCrc32ChecksumAlgorithmFunction } from "./getCrc32ChecksumAlgorithmFunction";
|
|
4
|
-
export const selectChecksumAlgorithmFunction = (checksumAlgorithm, config) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
export const selectChecksumAlgorithmFunction = (checksumAlgorithm, config) => {
|
|
5
|
+
switch (checksumAlgorithm) {
|
|
6
|
+
case ChecksumAlgorithm.MD5:
|
|
7
|
+
return config.md5;
|
|
8
|
+
case ChecksumAlgorithm.CRC32:
|
|
9
|
+
return getCrc32ChecksumAlgorithmFunction();
|
|
10
|
+
case ChecksumAlgorithm.CRC32C:
|
|
11
|
+
return AwsCrc32c;
|
|
12
|
+
case ChecksumAlgorithm.SHA1:
|
|
13
|
+
return config.sha1;
|
|
14
|
+
case ChecksumAlgorithm.SHA256:
|
|
15
|
+
return config.sha256;
|
|
16
|
+
default:
|
|
17
|
+
throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -7,14 +7,19 @@ export interface FlexibleChecksumsRequestMiddlewareConfig {
|
|
|
7
7
|
*/
|
|
8
8
|
requestChecksumRequired: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Member that is used to configure request checksum behavior.
|
|
11
11
|
*/
|
|
12
|
-
requestAlgorithmMember?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
requestAlgorithmMember?: {
|
|
13
|
+
/**
|
|
14
|
+
* Defines a top-level operation input member that is used to configure request checksum behavior.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* The {@link httpHeader} value, if present.
|
|
19
|
+
* {@link https://smithy.io/2.0/spec/http-bindings.html#httpheader-trait httpHeader}
|
|
20
|
+
*/
|
|
21
|
+
httpHeader?: string;
|
|
22
|
+
};
|
|
18
23
|
}
|
|
19
24
|
export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions;
|
|
20
25
|
/**
|
|
@@ -2,8 +2,10 @@ import { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
|
|
|
2
2
|
import { PreviouslyResolved } from "./configuration";
|
|
3
3
|
export interface FlexibleChecksumsRequestMiddlewareConfig {
|
|
4
4
|
requestChecksumRequired: boolean;
|
|
5
|
-
requestAlgorithmMember?:
|
|
6
|
-
|
|
5
|
+
requestAlgorithmMember?: {
|
|
6
|
+
name: string;
|
|
7
|
+
httpHeader?: string;
|
|
8
|
+
};
|
|
7
9
|
}
|
|
8
10
|
export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions;
|
|
9
11
|
export declare const flexibleChecksumsMiddleware: (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.715.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-flexible-checksums",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@aws-crypto/crc32": "5.2.0",
|
|
37
37
|
"@aws-crypto/crc32c": "5.2.0",
|
|
38
38
|
"@aws-crypto/util": "5.2.0",
|
|
39
|
-
"@aws-sdk/core": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
39
|
+
"@aws-sdk/core": "3.714.0",
|
|
40
|
+
"@aws-sdk/types": "3.714.0",
|
|
41
41
|
"@smithy/is-array-buffer": "^3.0.0",
|
|
42
42
|
"@smithy/node-config-provider": "^3.1.12",
|
|
43
43
|
"@smithy/protocol-http": "^4.1.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.714.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|