@jjrawlins/cdk-ami-builder 0.0.7 → 0.0.9
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 +11 -11
- package/.mergify.yml +3 -3
- package/cdk-ami-builder/go.mod +4 -4
- package/cdk-ami-builder/jsii/jsii.go +2 -2
- package/cdk-ami-builder/version +1 -1
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
- package/node_modules/@aws/lambda-invoke-store/README.md +182 -0
- package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.d.ts +52 -0
- package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.js +90 -0
- package/node_modules/@aws/lambda-invoke-store/package.json +36 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +39 -39
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +115 -4
- package/node_modules/@aws-sdk/client-ecs/dist-es/protocols/Aws_json1_1.js +119 -4
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateServiceCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteServiceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeServicesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateServiceCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +10 -4
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_1.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/package.json +38 -38
- package/node_modules/@aws-sdk/client-kms/package.json +37 -37
- package/node_modules/@aws-sdk/client-s3/package.json +54 -54
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +37 -37
- package/node_modules/@aws-sdk/client-sfn/package.json +37 -37
- package/node_modules/@aws-sdk/client-sns/package.json +37 -37
- package/node_modules/@aws-sdk/client-sqs/package.json +39 -39
- package/node_modules/@aws-sdk/client-ssm/package.json +38 -38
- package/node_modules/@aws-sdk/client-sso/package.json +36 -36
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +14 -32
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +32 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +28 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +10 -5
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +14 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +155 -221
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +12 -10
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -22
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +9 -20
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +10 -21
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +76 -87
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +11 -12
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +16 -3
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +9 -20
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +10 -27
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +3 -5
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +3 -9
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +3 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +3 -6
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +3 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +3 -9
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +3 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +3 -9
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +9 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +13 -3
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.887.0",
|
|
26
26
|
"@aws-sdk/util-arn-parser": "3.873.0",
|
|
27
|
-
"@smithy/node-config-provider": "^4.1
|
|
28
|
-
"@smithy/protocol-http": "^5.1
|
|
29
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/node-config-provider": "^4.2.1",
|
|
28
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
29
|
+
"@smithy/types": "^4.5.0",
|
|
30
30
|
"@smithy/util-config-provider": "^4.0.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-expect-continue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@smithy/protocol-http": "^5.1
|
|
28
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.887.0",
|
|
27
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
28
|
+
"@smithy/types": "^4.5.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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,19 +36,19 @@
|
|
|
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.887.0",
|
|
40
|
+
"@aws-sdk/types": "3.887.0",
|
|
41
41
|
"@smithy/is-array-buffer": "^4.0.0",
|
|
42
|
-
"@smithy/node-config-provider": "^4.1
|
|
43
|
-
"@smithy/protocol-http": "^5.1
|
|
44
|
-
"@smithy/types": "^4.
|
|
45
|
-
"@smithy/util-middleware": "^4.
|
|
46
|
-
"@smithy/util-stream": "^4.
|
|
47
|
-
"@smithy/util-utf8": "^4.
|
|
42
|
+
"@smithy/node-config-provider": "^4.2.1",
|
|
43
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
44
|
+
"@smithy/types": "^4.5.0",
|
|
45
|
+
"@smithy/util-middleware": "^4.1.1",
|
|
46
|
+
"@smithy/util-stream": "^4.3.1",
|
|
47
|
+
"@smithy/util-utf8": "^4.1.0",
|
|
48
48
|
"tslib": "^2.6.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@smithy/node-http-handler": "^4.
|
|
51
|
+
"@smithy/node-http-handler": "^4.2.1",
|
|
52
52
|
"concurrently": "7.0.0",
|
|
53
53
|
"downlevel-dts": "0.10.1",
|
|
54
54
|
"rimraf": "3.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
28
|
-
"@smithy/protocol-http": "^5.1
|
|
29
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@aws-sdk/types": "3.887.0",
|
|
28
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
29
|
+
"@smithy/types": "^4.5.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-location-constraint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-location-constraint",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.887.0",
|
|
27
|
+
"@smithy/types": "^4.5.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-logger",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
28
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@aws-sdk/types": "3.887.0",
|
|
28
|
+
"@smithy/types": "^4.5.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -16,57 +16,39 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
21
|
|
|
21
22
|
// src/index.ts
|
|
22
23
|
var index_exports = {};
|
|
23
24
|
__export(index_exports, {
|
|
24
|
-
|
|
25
|
-
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
|
|
26
|
-
recursionDetectionMiddleware: () => recursionDetectionMiddleware
|
|
25
|
+
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin
|
|
27
26
|
});
|
|
28
27
|
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
33
|
-
var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
|
|
34
|
-
const { request } = args;
|
|
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)) {
|
|
40
|
-
return next(args);
|
|
41
|
-
}
|
|
42
|
-
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
43
|
-
const traceId = process.env[ENV_TRACE_ID];
|
|
44
|
-
const nonEmptyString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0, "nonEmptyString");
|
|
45
|
-
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
46
|
-
request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
47
|
-
}
|
|
48
|
-
return next({
|
|
49
|
-
...args,
|
|
50
|
-
request
|
|
51
|
-
});
|
|
52
|
-
}, "recursionDetectionMiddleware");
|
|
53
|
-
var addRecursionDetectionMiddlewareOptions = {
|
|
28
|
+
|
|
29
|
+
// src/configuration.ts
|
|
30
|
+
var recursionDetectionMiddlewareOptions = {
|
|
54
31
|
step: "build",
|
|
55
32
|
tags: ["RECURSION_DETECTION"],
|
|
56
33
|
name: "recursionDetectionMiddleware",
|
|
57
34
|
override: true,
|
|
58
35
|
priority: "low"
|
|
59
36
|
};
|
|
37
|
+
|
|
38
|
+
// src/getRecursionDetectionPlugin.ts
|
|
39
|
+
var import_recursionDetectionMiddleware = require("././recursionDetectionMiddleware");
|
|
60
40
|
var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({
|
|
61
41
|
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
62
|
-
clientStack.add(recursionDetectionMiddleware(
|
|
42
|
+
clientStack.add((0, import_recursionDetectionMiddleware.recursionDetectionMiddleware)(), recursionDetectionMiddlewareOptions);
|
|
63
43
|
}, "applyToStack")
|
|
64
44
|
}), "getRecursionDetectionPlugin");
|
|
45
|
+
|
|
46
|
+
// src/index.ts
|
|
47
|
+
__reExport(index_exports, require("././recursionDetectionMiddleware"), module.exports);
|
|
65
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66
49
|
|
|
67
50
|
0 && (module.exports = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
getRecursionDetectionPlugin
|
|
51
|
+
getRecursionDetectionPlugin,
|
|
52
|
+
recursionDetectionMiddleware
|
|
71
53
|
});
|
|
72
54
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recursionDetectionMiddleware = void 0;
|
|
4
|
+
const lambda_invoke_store_1 = require("@aws/lambda-invoke-store");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
7
|
+
const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
8
|
+
const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
9
|
+
const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
10
|
+
const { request } = args;
|
|
11
|
+
if (!protocol_http_1.HttpRequest.isInstance(request)) {
|
|
12
|
+
return next(args);
|
|
13
|
+
}
|
|
14
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
|
|
15
|
+
TRACE_ID_HEADER_NAME;
|
|
16
|
+
if (request.headers.hasOwnProperty(traceIdHeader)) {
|
|
17
|
+
return next(args);
|
|
18
|
+
}
|
|
19
|
+
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
20
|
+
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
21
|
+
const traceIdFromInvokeStore = lambda_invoke_store_1.InvokeStore.getXRayTraceId();
|
|
22
|
+
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
23
|
+
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
24
|
+
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
25
|
+
request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
26
|
+
}
|
|
27
|
+
return next({
|
|
28
|
+
...args,
|
|
29
|
+
request,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recursionDetectionMiddleware = void 0;
|
|
4
|
+
const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
|
|
5
|
+
exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { recursionDetectionMiddlewareOptions } from "./configuration";
|
|
2
|
+
import { recursionDetectionMiddleware } from "./recursionDetectionMiddleware";
|
|
3
|
+
export const getRecursionDetectionPlugin = (options) => ({
|
|
4
|
+
applyToStack: (clientStack) => {
|
|
5
|
+
clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
|
|
6
|
+
},
|
|
7
|
+
});
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
4
|
-
const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
5
|
-
export const recursionDetectionMiddleware = (options) => (next) => async (args) => {
|
|
6
|
-
const { request } = args;
|
|
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)) {
|
|
13
|
-
return next(args);
|
|
14
|
-
}
|
|
15
|
-
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
16
|
-
const traceId = process.env[ENV_TRACE_ID];
|
|
17
|
-
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
18
|
-
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
19
|
-
request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
20
|
-
}
|
|
21
|
-
return next({
|
|
22
|
-
...args,
|
|
23
|
-
request,
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
export const addRecursionDetectionMiddlewareOptions = {
|
|
27
|
-
step: "build",
|
|
28
|
-
tags: ["RECURSION_DETECTION"],
|
|
29
|
-
name: "recursionDetectionMiddleware",
|
|
30
|
-
override: true,
|
|
31
|
-
priority: "low",
|
|
32
|
-
};
|
|
33
|
-
export const getRecursionDetectionPlugin = (options) => ({
|
|
34
|
-
applyToStack: (clientStack) => {
|
|
35
|
-
clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
|
|
36
|
-
},
|
|
37
|
-
});
|
|
1
|
+
export * from "./getRecursionDetectionPlugin";
|
|
2
|
+
export * from "./recursionDetectionMiddleware";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
|
package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InvokeStore } from "@aws/lambda-invoke-store";
|
|
2
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
3
|
+
const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
4
|
+
const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
5
|
+
const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
6
|
+
export const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
7
|
+
const { request } = args;
|
|
8
|
+
if (!HttpRequest.isInstance(request)) {
|
|
9
|
+
return next(args);
|
|
10
|
+
}
|
|
11
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
|
|
12
|
+
TRACE_ID_HEADER_NAME;
|
|
13
|
+
if (request.headers.hasOwnProperty(traceIdHeader)) {
|
|
14
|
+
return next(args);
|
|
15
|
+
}
|
|
16
|
+
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
17
|
+
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
18
|
+
const traceIdFromInvokeStore = InvokeStore.getXRayTraceId();
|
|
19
|
+
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
20
|
+
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
21
|
+
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
22
|
+
request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
23
|
+
}
|
|
24
|
+
return next({
|
|
25
|
+
...args,
|
|
26
|
+
request,
|
|
27
|
+
});
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
runtime: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Inject to trace ID to request header to detect recursion invocation in Lambda.
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare const recursionDetectionMiddleware: (options: PreviouslyResolved) => BuildMiddleware<any, any>;
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare const getRecursionDetectionPlugin: (options: PreviouslyResolved) => Pluggable<any, any>;
|
|
18
|
-
export {};
|
|
1
|
+
export * from "./getRecursionDetectionPlugin";
|
|
2
|
+
export * from "./recursionDetectionMiddleware";
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
BuildHandlerOptions,
|
|
4
|
-
BuildMiddleware,
|
|
5
|
-
Pluggable,
|
|
6
|
-
} from "@smithy/types";
|
|
7
|
-
interface PreviouslyResolved {
|
|
8
|
-
runtime: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const recursionDetectionMiddleware: (
|
|
11
|
-
options: PreviouslyResolved
|
|
12
|
-
) => BuildMiddleware<any, any>;
|
|
13
|
-
export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions &
|
|
14
|
-
AbsoluteLocation;
|
|
15
|
-
export declare const getRecursionDetectionPlugin: (
|
|
16
|
-
options: PreviouslyResolved
|
|
17
|
-
) => Pluggable<any, any>;
|
|
18
|
-
export {};
|
|
1
|
+
export * from "./getRecursionDetectionPlugin";
|
|
2
|
+
export * from "./recursionDetectionMiddleware";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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",
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@
|
|
28
|
-
"@smithy/
|
|
26
|
+
"@aws-sdk/types": "3.887.0",
|
|
27
|
+
"@aws/lambda-invoke-store": "^0.0.1",
|
|
28
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
29
|
+
"@smithy/types": "^4.5.0",
|
|
29
30
|
"tslib": "^2.6.2"
|
|
30
31
|
},
|
|
31
32
|
"engines": {
|
|
@@ -53,5 +54,9 @@
|
|
|
53
54
|
"downlevel-dts": "0.10.1",
|
|
54
55
|
"rimraf": "3.0.2",
|
|
55
56
|
"typescript": "~5.8.3"
|
|
56
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"browser": {
|
|
59
|
+
"./dist-es/recursionDetectionMiddleware": "./dist-es/recursionDetectionMiddleware.browser"
|
|
60
|
+
},
|
|
61
|
+
"react-native": {}
|
|
57
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-ec2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-sdk-ec2",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"@aws-sdk/util-format-url": "3.
|
|
30
|
-
"@smithy/middleware-endpoint": "^4.1
|
|
31
|
-
"@smithy/protocol-http": "^5.1
|
|
28
|
+
"@aws-sdk/types": "3.887.0",
|
|
29
|
+
"@aws-sdk/util-format-url": "3.887.0",
|
|
30
|
+
"@smithy/middleware-endpoint": "^4.2.1",
|
|
31
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
32
32
|
"@smithy/signature-v4": "^5.1.3",
|
|
33
|
-
"@smithy/smithy-client": "^4.
|
|
34
|
-
"@smithy/types": "^4.
|
|
33
|
+
"@smithy/smithy-client": "^4.6.1",
|
|
34
|
+
"@smithy/types": "^4.5.0",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-sdk-s3",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/core": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/core": "3.887.0",
|
|
31
|
+
"@aws-sdk/types": "3.887.0",
|
|
32
32
|
"@aws-sdk/util-arn-parser": "3.873.0",
|
|
33
|
-
"@smithy/core": "^3.
|
|
34
|
-
"@smithy/node-config-provider": "^4.1
|
|
35
|
-
"@smithy/protocol-http": "^5.1
|
|
33
|
+
"@smithy/core": "^3.11.0",
|
|
34
|
+
"@smithy/node-config-provider": "^4.2.1",
|
|
35
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
36
36
|
"@smithy/signature-v4": "^5.1.3",
|
|
37
|
-
"@smithy/smithy-client": "^4.
|
|
38
|
-
"@smithy/types": "^4.
|
|
37
|
+
"@smithy/smithy-client": "^4.6.1",
|
|
38
|
+
"@smithy/types": "^4.5.0",
|
|
39
39
|
"@smithy/util-config-provider": "^4.0.0",
|
|
40
|
-
"@smithy/util-middleware": "^4.
|
|
41
|
-
"@smithy/util-stream": "^4.
|
|
42
|
-
"@smithy/util-utf8": "^4.
|
|
40
|
+
"@smithy/util-middleware": "^4.1.1",
|
|
41
|
+
"@smithy/util-stream": "^4.3.1",
|
|
42
|
+
"@smithy/util-utf8": "^4.1.0",
|
|
43
43
|
"tslib": "^2.6.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-sqs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-sdk-sqs",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@smithy/smithy-client": "^4.
|
|
28
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.887.0",
|
|
27
|
+
"@smithy/smithy-client": "^4.6.1",
|
|
28
|
+
"@smithy/types": "^4.5.0",
|
|
29
29
|
"@smithy/util-hex-encoding": "^4.0.0",
|
|
30
|
-
"@smithy/util-utf8": "^4.
|
|
30
|
+
"@smithy/util-utf8": "^4.1.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-ssec",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-ssec",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.887.0",
|
|
27
|
+
"@smithy/types": "^4.5.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.887.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-user-agent",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
|
30
|
-
"@smithy/core": "^3.
|
|
31
|
-
"@smithy/protocol-http": "^5.1
|
|
32
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@aws-sdk/core": "3.887.0",
|
|
28
|
+
"@aws-sdk/types": "3.887.0",
|
|
29
|
+
"@aws-sdk/util-endpoints": "3.887.0",
|
|
30
|
+
"@smithy/core": "^3.11.0",
|
|
31
|
+
"@smithy/protocol-http": "^5.2.1",
|
|
32
|
+
"@smithy/types": "^4.5.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|