@mavogel/awscdk-rootmail 0.0.297 → 0.0.299
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 +3 -3
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +16 -23
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/FilterLogEventsCommand.d.ts +28 -6
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/GetLogEventsCommand.d.ts +17 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +4 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +7 -7
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +9 -5
- package/node_modules/@aws-sdk/client-route-53/dist-es/models/models_0.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHostedZoneCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHealthCheckCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthChecksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHealthCheckCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/package.json +7 -7
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +41 -59
- package/node_modules/@aws-sdk/client-s3/package.json +11 -11
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/client-ses/package.json +7 -7
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +208 -202
- package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +5 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +4 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +34 -22
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +60 -69
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +83 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +9 -5
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +9 -4
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ssm/package.json +7 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/client-sso/package.json +6 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +9 -9
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +2 -2
- package/node_modules/@aws-sdk/core/dist-types/api-extractor-type-index.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +0 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +5 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +5 -0
- package/node_modules/@aws-sdk/core/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +3 -3
- 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/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +10 -11
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/configuration.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/constants.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/crc64-nvme-crt-container.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsInputMiddleware.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsMiddleware.d.ts +6 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsResponseMiddleware.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getFlexibleChecksumsPlugin.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/resolveFlexibleChecksumsConfig.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +7 -9
- package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +15 -0
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +10 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +6 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +23 -23
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +7 -7
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/axios/CHANGELOG.md +25 -0
- package/node_modules/axios/README.md +6 -0
- package/node_modules/axios/dist/axios.js +4 -4
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +4 -4
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +4 -4
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +4 -4
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +1 -0
- package/node_modules/axios/index.d.ts +1 -0
- package/node_modules/axios/lib/core/buildFullPath.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
- package/node_modules/axios/package.json +4 -4
- package/node_modules/cdk-nag/.jsii +3 -3
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/package.json +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -29,12 +29,12 @@
|
|
|
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.
|
|
32
|
+
"@aws-sdk/credential-provider-env": "3.774.0",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "3.774.0",
|
|
34
|
+
"@aws-sdk/credential-provider-ini": "3.774.0",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "3.774.0",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "3.774.0",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "3.774.0",
|
|
38
38
|
"@aws-sdk/types": "3.734.0",
|
|
39
39
|
"@smithy/credential-provider-imds": "^4.0.1",
|
|
40
40
|
"@smithy/property-provider": "^4.0.1",
|
|
@@ -19,11 +19,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
fromProcess: () => fromProcess
|
|
25
25
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
27
|
|
|
28
28
|
// src/fromProcess.ts
|
|
29
29
|
var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.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,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
28
|
+
"@aws-sdk/core": "3.774.0",
|
|
29
29
|
"@aws-sdk/types": "3.734.0",
|
|
30
30
|
"@smithy/property-provider": "^4.0.1",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^4.0.1",
|
|
@@ -36,13 +36,13 @@ var init_loadSso = __esm({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// src/index.ts
|
|
39
|
-
var
|
|
40
|
-
__export(
|
|
39
|
+
var index_exports = {};
|
|
40
|
+
__export(index_exports, {
|
|
41
41
|
fromSSO: () => fromSSO,
|
|
42
42
|
isSsoProfile: () => isSsoProfile,
|
|
43
43
|
validateSsoProfile: () => validateSsoProfile
|
|
44
44
|
});
|
|
45
|
-
module.exports = __toCommonJS(
|
|
45
|
+
module.exports = __toCommonJS(index_exports);
|
|
46
46
|
|
|
47
47
|
// src/fromSSO.ts
|
|
48
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.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,9 +25,9 @@
|
|
|
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.
|
|
28
|
+
"@aws-sdk/client-sso": "3.774.0",
|
|
29
|
+
"@aws-sdk/core": "3.774.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.774.0",
|
|
31
31
|
"@aws-sdk/types": "3.734.0",
|
|
32
32
|
"@smithy/property-provider": "^4.0.1",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^4.0.1",
|
|
@@ -15,10 +15,10 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
|
-
var
|
|
19
|
-
module.exports = __toCommonJS(
|
|
20
|
-
__reExport(
|
|
21
|
-
__reExport(
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("././fromTokenFile"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("././fromWebToken"), module.exports);
|
|
22
22
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
23
|
|
|
24
24
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.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/nested-clients": "3.
|
|
36
|
+
"@aws-sdk/core": "3.774.0",
|
|
37
|
+
"@aws-sdk/nested-clients": "3.774.0",
|
|
38
38
|
"@aws-sdk/types": "3.734.0",
|
|
39
39
|
"@smithy/property-provider": "^4.0.1",
|
|
40
40
|
"@smithy/types": "^4.1.0",
|
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
CONFIG_REQUEST_CHECKSUM_CALCULATION: () => CONFIG_REQUEST_CHECKSUM_CALCULATION,
|
|
25
25
|
CONFIG_RESPONSE_CHECKSUM_VALIDATION: () => CONFIG_RESPONSE_CHECKSUM_VALIDATION,
|
|
26
26
|
ChecksumAlgorithm: () => ChecksumAlgorithm,
|
|
@@ -40,7 +40,7 @@ __export(src_exports, {
|
|
|
40
40
|
getFlexibleChecksumsPlugin: () => getFlexibleChecksumsPlugin,
|
|
41
41
|
resolveFlexibleChecksumsConfig: () => resolveFlexibleChecksumsConfig
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(index_exports);
|
|
44
44
|
|
|
45
45
|
// src/constants.ts
|
|
46
46
|
var RequestChecksumCalculation = {
|
|
@@ -95,8 +95,7 @@ var DEFAULT_CHECKSUM_ALGORITHM = "CRC32" /* CRC32 */;
|
|
|
95
95
|
|
|
96
96
|
// src/stringUnionSelector.ts
|
|
97
97
|
var stringUnionSelector = /* @__PURE__ */ __name((obj, key, union, type) => {
|
|
98
|
-
if (!(key in obj))
|
|
99
|
-
return void 0;
|
|
98
|
+
if (!(key in obj)) return void 0;
|
|
100
99
|
const value = obj[key].toUpperCase();
|
|
101
100
|
if (!Object.values(union).includes(value)) {
|
|
102
101
|
throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union)}, got '${obj[key]}'.`);
|
|
@@ -108,8 +107,8 @@ var stringUnionSelector = /* @__PURE__ */ __name((obj, key, union, type) => {
|
|
|
108
107
|
var ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
|
|
109
108
|
var CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
|
|
110
109
|
var NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
|
|
111
|
-
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "env" /* ENV */),
|
|
112
|
-
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "shared config entry" /* CONFIG */),
|
|
110
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => stringUnionSelector(env, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "env" /* ENV */), "environmentVariableSelector"),
|
|
111
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "shared config entry" /* CONFIG */), "configFileSelector"),
|
|
113
112
|
default: DEFAULT_REQUEST_CHECKSUM_CALCULATION
|
|
114
113
|
};
|
|
115
114
|
|
|
@@ -117,8 +116,8 @@ var NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
|
|
|
117
116
|
var ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
|
|
118
117
|
var CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
|
|
119
118
|
var NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
|
|
120
|
-
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "env" /* ENV */),
|
|
121
|
-
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "shared config entry" /* CONFIG */),
|
|
119
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "env" /* ENV */), "environmentVariableSelector"),
|
|
120
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "shared config entry" /* CONFIG */), "configFileSelector"),
|
|
122
121
|
default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION
|
|
123
122
|
};
|
|
124
123
|
|
|
@@ -478,7 +477,7 @@ var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middle
|
|
|
478
477
|
|
|
479
478
|
// src/getFlexibleChecksumsPlugin.ts
|
|
480
479
|
var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config, middlewareConfig) => ({
|
|
481
|
-
applyToStack: (clientStack) => {
|
|
480
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
482
481
|
clientStack.add(flexibleChecksumsMiddleware(config, middlewareConfig), flexibleChecksumsMiddlewareOptions);
|
|
483
482
|
clientStack.addRelativeTo(
|
|
484
483
|
flexibleChecksumsInputMiddleware(config, middlewareConfig),
|
|
@@ -488,7 +487,7 @@ var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config, middlewareConfi
|
|
|
488
487
|
flexibleChecksumsResponseMiddleware(config, middlewareConfig),
|
|
489
488
|
flexibleChecksumsResponseMiddlewareOptions
|
|
490
489
|
);
|
|
491
|
-
}
|
|
490
|
+
}, "applyToStack")
|
|
492
491
|
}), "getFlexibleChecksumsPlugin");
|
|
493
492
|
|
|
494
493
|
// src/resolveFlexibleChecksumsConfig.ts
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
2
|
import { RequestChecksumCalculation } from "./constants";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare const ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
4
10
|
export declare const CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
5
14
|
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<RequestChecksumCalculation>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
2
|
import { ResponseChecksumValidation } from "./constants";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare const ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
4
10
|
export declare const CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
5
14
|
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<ResponseChecksumValidation>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BodyLengthCalculator, ChecksumConstructor, Encoder, GetAwsChunkedEncodingStream, HashConstructor, Provider, StreamCollector, StreamHasher } from "@smithy/types";
|
|
2
2
|
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface PreviouslyResolved {
|
|
4
7
|
/**
|
|
5
8
|
* The function that will be used to convert binary data to a base64-encoded string.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines when a checksum will be calculated for request payloads.
|
|
3
|
+
* @public
|
|
3
4
|
*/
|
|
4
5
|
export declare const RequestChecksumCalculation: {
|
|
5
6
|
/**
|
|
@@ -17,10 +18,17 @@ export declare const RequestChecksumCalculation: {
|
|
|
17
18
|
*/
|
|
18
19
|
readonly WHEN_REQUIRED: "WHEN_REQUIRED";
|
|
19
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
20
24
|
export type RequestChecksumCalculation = (typeof RequestChecksumCalculation)[keyof typeof RequestChecksumCalculation];
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
21
28
|
export declare const DEFAULT_REQUEST_CHECKSUM_CALCULATION: "WHEN_SUPPORTED";
|
|
22
29
|
/**
|
|
23
30
|
* Determines when checksum validation will be performed on response payloads.
|
|
31
|
+
* @public
|
|
24
32
|
*/
|
|
25
33
|
export declare const ResponseChecksumValidation: {
|
|
26
34
|
/**
|
|
@@ -38,10 +46,17 @@ export declare const ResponseChecksumValidation: {
|
|
|
38
46
|
*/
|
|
39
47
|
readonly WHEN_REQUIRED: "WHEN_REQUIRED";
|
|
40
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
41
52
|
export type ResponseChecksumValidation = (typeof ResponseChecksumValidation)[keyof typeof ResponseChecksumValidation];
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
42
56
|
export declare const DEFAULT_RESPONSE_CHECKSUM_VALIDATION: "WHEN_SUPPORTED";
|
|
43
57
|
/**
|
|
44
58
|
* Checksum Algorithms supported by the SDK.
|
|
59
|
+
* @public
|
|
45
60
|
*/
|
|
46
61
|
export declare enum ChecksumAlgorithm {
|
|
47
62
|
/**
|
|
@@ -56,6 +71,7 @@ export declare enum ChecksumAlgorithm {
|
|
|
56
71
|
}
|
|
57
72
|
/**
|
|
58
73
|
* Location when the checksum is stored in the request body.
|
|
74
|
+
* @internal
|
|
59
75
|
*/
|
|
60
76
|
export declare enum ChecksumLocation {
|
|
61
77
|
HEADER = "header",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
|
|
2
2
|
import { PreviouslyResolved } from "./configuration";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface FlexibleChecksumsInputMiddlewareConfig {
|
|
4
7
|
/**
|
|
5
8
|
* Defines a top-level operation input member used to opt-in to best-effort validation
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
|
|
2
2
|
import { PreviouslyResolved } from "./configuration";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface FlexibleChecksumsRequestMiddlewareConfig {
|
|
4
|
-
/**
|
|
5
7
|
/**
|
|
6
8
|
* Indicates an operation requires a checksum in its HTTP request.
|
|
7
9
|
*/
|
|
@@ -21,6 +23,9 @@ export interface FlexibleChecksumsRequestMiddlewareConfig {
|
|
|
21
23
|
httpHeader?: string;
|
|
22
24
|
};
|
|
23
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
24
29
|
export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions;
|
|
25
30
|
/**
|
|
26
31
|
* @internal
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
|
|
2
2
|
import { PreviouslyResolved } from "./configuration";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface FlexibleChecksumsResponseMiddlewareConfig {
|
|
4
7
|
/**
|
|
5
8
|
* Defines a top-level operation input member used to opt-in to best-effort validation
|
|
@@ -3,6 +3,12 @@ import { PreviouslyResolved } from "./configuration";
|
|
|
3
3
|
import { FlexibleChecksumsInputMiddlewareConfig } from "./flexibleChecksumsInputMiddleware";
|
|
4
4
|
import { FlexibleChecksumsRequestMiddlewareConfig } from "./flexibleChecksumsMiddleware";
|
|
5
5
|
import { FlexibleChecksumsResponseMiddlewareConfig } from "./flexibleChecksumsResponseMiddleware";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
6
9
|
export interface FlexibleChecksumsMiddlewareConfig extends FlexibleChecksumsRequestMiddlewareConfig, FlexibleChecksumsInputMiddlewareConfig, FlexibleChecksumsResponseMiddlewareConfig {
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
8
14
|
export declare const getFlexibleChecksumsPlugin: (config: PreviouslyResolved, middlewareConfig: FlexibleChecksumsMiddlewareConfig) => Pluggable<any, any>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Provider } from "@smithy/types";
|
|
2
2
|
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
3
6
|
export interface FlexibleChecksumsInputConfig {
|
|
4
7
|
/**
|
|
5
8
|
* Determines when a checksum will be calculated for request payloads.
|
|
@@ -26,9 +29,15 @@ export interface FlexibleChecksumsInputConfig {
|
|
|
26
29
|
*/
|
|
27
30
|
requestStreamBufferSize?: number | false;
|
|
28
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
29
35
|
export interface FlexibleChecksumsResolvedConfig {
|
|
30
36
|
requestChecksumCalculation: Provider<RequestChecksumCalculation>;
|
|
31
37
|
responseChecksumValidation: Provider<ResponseChecksumValidation>;
|
|
32
38
|
requestStreamBufferSize: number;
|
|
33
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
34
43
|
export declare const resolveFlexibleChecksumsConfig: <T>(input: T & FlexibleChecksumsInputConfig) => T & FlexibleChecksumsResolvedConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.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",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
|
+
"extract:docs": "api-extractor run --local",
|
|
12
13
|
"test": "yarn g:vitest run",
|
|
13
14
|
"test:watch": "yarn g:vitest watch",
|
|
14
15
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"@aws-crypto/crc32": "5.2.0",
|
|
36
37
|
"@aws-crypto/crc32c": "5.2.0",
|
|
37
38
|
"@aws-crypto/util": "5.2.0",
|
|
38
|
-
"@aws-sdk/core": "3.
|
|
39
|
+
"@aws-sdk/core": "3.774.0",
|
|
39
40
|
"@aws-sdk/types": "3.734.0",
|
|
40
41
|
"@smithy/is-array-buffer": "^4.0.0",
|
|
41
42
|
"@smithy/node-config-provider": "^4.0.1",
|
|
@@ -19,22 +19,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
getHostHeaderPlugin: () => getHostHeaderPlugin,
|
|
25
25
|
hostHeaderMiddleware: () => hostHeaderMiddleware,
|
|
26
26
|
hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
|
|
27
27
|
resolveHostHeaderConfig: () => resolveHostHeaderConfig
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
31
31
|
function resolveHostHeaderConfig(input) {
|
|
32
32
|
return input;
|
|
33
33
|
}
|
|
34
34
|
__name(resolveHostHeaderConfig, "resolveHostHeaderConfig");
|
|
35
35
|
var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
|
|
36
|
-
if (!import_protocol_http.HttpRequest.isInstance(args.request))
|
|
37
|
-
return next(args);
|
|
36
|
+
if (!import_protocol_http.HttpRequest.isInstance(args.request)) return next(args);
|
|
38
37
|
const { request } = args;
|
|
39
38
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
40
39
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -42,8 +41,7 @@ var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (
|
|
|
42
41
|
request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
|
|
43
42
|
} else if (!request.headers["host"]) {
|
|
44
43
|
let host = request.hostname;
|
|
45
|
-
if (request.port != null)
|
|
46
|
-
host += `:${request.port}`;
|
|
44
|
+
if (request.port != null) host += `:${request.port}`;
|
|
47
45
|
request.headers["host"] = host;
|
|
48
46
|
}
|
|
49
47
|
return next(args);
|
|
@@ -56,9 +54,9 @@ var hostHeaderMiddlewareOptions = {
|
|
|
56
54
|
override: true
|
|
57
55
|
};
|
|
58
56
|
var getHostHeaderPlugin = /* @__PURE__ */ __name((options) => ({
|
|
59
|
-
applyToStack: (clientStack) => {
|
|
57
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
60
58
|
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
61
|
-
}
|
|
59
|
+
}, "applyToStack")
|
|
62
60
|
}), "getHostHeaderPlugin");
|
|
63
61
|
// Annotate the CommonJS export names for ESM import in node:
|
|
64
62
|
|
|
@@ -7,14 +7,29 @@ export interface HostHeaderInputConfig {
|
|
|
7
7
|
interface PreviouslyResolved {
|
|
8
8
|
requestHandler: RequestHandler<any, any>;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
10
13
|
export interface HostHeaderResolvedConfig {
|
|
11
14
|
/**
|
|
12
15
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
13
16
|
*/
|
|
14
17
|
requestHandler: RequestHandler<any, any>;
|
|
15
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
16
22
|
export declare function resolveHostHeaderConfig<T>(input: T & PreviouslyResolved & HostHeaderInputConfig): T & HostHeaderResolvedConfig;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
17
26
|
export declare const hostHeaderMiddleware: <Input extends object, Output extends object>(options: HostHeaderResolvedConfig) => BuildMiddleware<Input, Output>;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
18
30
|
export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
19
34
|
export declare const getHostHeaderPlugin: (options: HostHeaderResolvedConfig) => Pluggable<any, any>;
|
|
20
35
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.774.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",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
|
+
"extract:docs": "api-extractor run --local",
|
|
12
13
|
"test": "yarn g:vitest run",
|
|
13
14
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
14
15
|
"test:watch": "yarn g:vitest watch",
|
|
@@ -19,20 +19,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions,
|
|
25
25
|
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
|
|
26
26
|
recursionDetectionMiddleware: () => recursionDetectionMiddleware
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
30
30
|
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
31
31
|
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
32
32
|
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
33
33
|
var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
|
|
34
34
|
const { request } = args;
|
|
35
|
-
if (!import_protocol_http.HttpRequest.isInstance(request) || options.runtime !== "node"
|
|
35
|
+
if (!import_protocol_http.HttpRequest.isInstance(request) || options.runtime !== "node") {
|
|
36
|
+
return next(args);
|
|
37
|
+
}
|
|
38
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
|
|
39
|
+
if (request.headers.hasOwnProperty(traceIdHeader)) {
|
|
36
40
|
return next(args);
|
|
37
41
|
}
|
|
38
42
|
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
@@ -54,9 +58,9 @@ var addRecursionDetectionMiddlewareOptions = {
|
|
|
54
58
|
priority: "low"
|
|
55
59
|
};
|
|
56
60
|
var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({
|
|
57
|
-
applyToStack: (clientStack) => {
|
|
61
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
58
62
|
clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
|
|
59
|
-
}
|
|
63
|
+
}, "applyToStack")
|
|
60
64
|
}), "getRecursionDetectionPlugin");
|
|
61
65
|
// Annotate the CommonJS export names for ESM import in node:
|
|
62
66
|
|
|
@@ -4,9 +4,12 @@ const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
|
4
4
|
const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
5
5
|
export const recursionDetectionMiddleware = (options) => (next) => async (args) => {
|
|
6
6
|
const { request } = args;
|
|
7
|
-
if (!HttpRequest.isInstance(request) ||
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
|
|
8
|
+
return next(args);
|
|
9
|
+
}
|
|
10
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
|
|
11
|
+
TRACE_ID_HEADER_NAME;
|
|
12
|
+
if (request.headers.hasOwnProperty(traceIdHeader)) {
|
|
10
13
|
return next(args);
|
|
11
14
|
}
|
|
12
15
|
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.772.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-recursion-detection",
|