@cdk8s/awscdk-resolver 0.0.358 → 0.0.360

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.
Files changed (51) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
  4. package/node_modules/@aws/lambda-invoke-store/README.md +182 -0
  5. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.d.ts +52 -0
  6. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.js +90 -0
  7. package/node_modules/@aws/lambda-invoke-store/package.json +36 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +38 -38
  9. package/node_modules/@aws-sdk/client-sso/package.json +36 -36
  10. package/node_modules/@aws-sdk/core/package.json +12 -12
  11. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
  13. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  18. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  19. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  20. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +14 -32
  21. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +32 -0
  22. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
  23. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
  24. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
  25. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
  26. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
  27. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +28 -0
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
  29. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
  30. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
  31. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
  32. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
  33. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
  34. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
  35. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
  36. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
  37. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
  38. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
  39. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
  40. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
  41. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +10 -5
  42. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  43. package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
  44. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  45. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  46. package/node_modules/@aws-sdk/types/package.json +2 -2
  47. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  48. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  49. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  50. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  51. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.883.0",
4
+ "version": "3.887.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.883.0",
24
- "@aws-sdk/middleware-host-header": "3.873.0",
25
- "@aws-sdk/middleware-logger": "3.876.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.873.0",
27
- "@aws-sdk/middleware-user-agent": "3.883.0",
28
- "@aws-sdk/region-config-resolver": "3.873.0",
29
- "@aws-sdk/types": "3.862.0",
30
- "@aws-sdk/util-endpoints": "3.879.0",
31
- "@aws-sdk/util-user-agent-browser": "3.873.0",
32
- "@aws-sdk/util-user-agent-node": "3.883.0",
33
- "@smithy/config-resolver": "^4.1.5",
34
- "@smithy/core": "^3.9.2",
35
- "@smithy/fetch-http-handler": "^5.1.1",
36
- "@smithy/hash-node": "^4.0.5",
37
- "@smithy/invalid-dependency": "^4.0.5",
38
- "@smithy/middleware-content-length": "^4.0.5",
39
- "@smithy/middleware-endpoint": "^4.1.21",
40
- "@smithy/middleware-retry": "^4.1.22",
41
- "@smithy/middleware-serde": "^4.0.9",
42
- "@smithy/middleware-stack": "^4.0.5",
43
- "@smithy/node-config-provider": "^4.1.4",
44
- "@smithy/node-http-handler": "^4.1.1",
45
- "@smithy/protocol-http": "^5.1.3",
46
- "@smithy/smithy-client": "^4.5.2",
47
- "@smithy/types": "^4.3.2",
48
- "@smithy/url-parser": "^4.0.5",
49
- "@smithy/util-base64": "^4.0.0",
50
- "@smithy/util-body-length-browser": "^4.0.0",
51
- "@smithy/util-body-length-node": "^4.0.0",
52
- "@smithy/util-defaults-mode-browser": "^4.0.29",
53
- "@smithy/util-defaults-mode-node": "^4.0.29",
54
- "@smithy/util-endpoints": "^3.0.7",
55
- "@smithy/util-middleware": "^4.0.5",
56
- "@smithy/util-retry": "^4.0.7",
57
- "@smithy/util-utf8": "^4.0.0",
23
+ "@aws-sdk/core": "3.887.0",
24
+ "@aws-sdk/middleware-host-header": "3.887.0",
25
+ "@aws-sdk/middleware-logger": "3.887.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.887.0",
27
+ "@aws-sdk/middleware-user-agent": "3.887.0",
28
+ "@aws-sdk/region-config-resolver": "3.887.0",
29
+ "@aws-sdk/types": "3.887.0",
30
+ "@aws-sdk/util-endpoints": "3.887.0",
31
+ "@aws-sdk/util-user-agent-browser": "3.887.0",
32
+ "@aws-sdk/util-user-agent-node": "3.887.0",
33
+ "@smithy/config-resolver": "^4.2.1",
34
+ "@smithy/core": "^3.11.0",
35
+ "@smithy/fetch-http-handler": "^5.2.1",
36
+ "@smithy/hash-node": "^4.1.1",
37
+ "@smithy/invalid-dependency": "^4.1.1",
38
+ "@smithy/middleware-content-length": "^4.1.1",
39
+ "@smithy/middleware-endpoint": "^4.2.1",
40
+ "@smithy/middleware-retry": "^4.2.1",
41
+ "@smithy/middleware-serde": "^4.1.1",
42
+ "@smithy/middleware-stack": "^4.1.1",
43
+ "@smithy/node-config-provider": "^4.2.1",
44
+ "@smithy/node-http-handler": "^4.2.1",
45
+ "@smithy/protocol-http": "^5.2.1",
46
+ "@smithy/smithy-client": "^4.6.1",
47
+ "@smithy/types": "^4.5.0",
48
+ "@smithy/url-parser": "^4.1.1",
49
+ "@smithy/util-base64": "^4.1.0",
50
+ "@smithy/util-body-length-browser": "^4.1.0",
51
+ "@smithy/util-body-length-node": "^4.1.0",
52
+ "@smithy/util-defaults-mode-browser": "^4.1.1",
53
+ "@smithy/util-defaults-mode-node": "^4.1.1",
54
+ "@smithy/util-endpoints": "^3.1.1",
55
+ "@smithy/util-middleware": "^4.1.1",
56
+ "@smithy/util-retry": "^4.1.1",
57
+ "@smithy/util-utf8": "^4.1.0",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.883.0",
3
+ "version": "3.887.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -81,19 +81,19 @@
81
81
  },
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
- "@aws-sdk/types": "3.862.0",
85
- "@aws-sdk/xml-builder": "3.873.0",
86
- "@smithy/core": "^3.9.2",
87
- "@smithy/node-config-provider": "^4.1.4",
84
+ "@aws-sdk/types": "3.887.0",
85
+ "@aws-sdk/xml-builder": "3.887.0",
86
+ "@smithy/core": "^3.11.0",
87
+ "@smithy/node-config-provider": "^4.2.1",
88
88
  "@smithy/property-provider": "^4.0.5",
89
- "@smithy/protocol-http": "^5.1.3",
89
+ "@smithy/protocol-http": "^5.2.1",
90
90
  "@smithy/signature-v4": "^5.1.3",
91
- "@smithy/smithy-client": "^4.5.2",
92
- "@smithy/types": "^4.3.2",
93
- "@smithy/util-base64": "^4.0.0",
94
- "@smithy/util-body-length-browser": "^4.0.0",
95
- "@smithy/util-middleware": "^4.0.5",
96
- "@smithy/util-utf8": "^4.0.0",
91
+ "@smithy/smithy-client": "^4.6.1",
92
+ "@smithy/types": "^4.5.0",
93
+ "@smithy/util-base64": "^4.1.0",
94
+ "@smithy/util-body-length-browser": "^4.1.0",
95
+ "@smithy/util-middleware": "^4.1.1",
96
+ "@smithy/util-utf8": "^4.1.0",
97
97
  "fast-xml-parser": "5.2.5",
98
98
  "tslib": "^2.6.2"
99
99
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.883.0",
3
+ "version": "3.887.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
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/core": "3.883.0",
29
- "@aws-sdk/types": "3.862.0",
28
+ "@aws-sdk/core": "3.887.0",
29
+ "@aws-sdk/types": "3.887.0",
30
30
  "@smithy/property-provider": "^4.0.5",
31
- "@smithy/types": "^4.3.2",
31
+ "@smithy/types": "^4.5.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.883.0",
3
+ "version": "3.887.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,15 +27,15 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.883.0",
31
- "@aws-sdk/types": "3.862.0",
32
- "@smithy/fetch-http-handler": "^5.1.1",
33
- "@smithy/node-http-handler": "^4.1.1",
30
+ "@aws-sdk/core": "3.887.0",
31
+ "@aws-sdk/types": "3.887.0",
32
+ "@smithy/fetch-http-handler": "^5.2.1",
33
+ "@smithy/node-http-handler": "^4.2.1",
34
34
  "@smithy/property-provider": "^4.0.5",
35
- "@smithy/protocol-http": "^5.1.3",
36
- "@smithy/smithy-client": "^4.5.2",
37
- "@smithy/types": "^4.3.2",
38
- "@smithy/util-stream": "^4.2.4",
35
+ "@smithy/protocol-http": "^5.2.1",
36
+ "@smithy/smithy-client": "^4.6.1",
37
+ "@smithy/types": "^4.5.0",
38
+ "@smithy/util-stream": "^4.3.1",
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.883.0",
3
+ "version": "3.887.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,18 +27,18 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.883.0",
31
- "@aws-sdk/credential-provider-env": "3.883.0",
32
- "@aws-sdk/credential-provider-http": "3.883.0",
33
- "@aws-sdk/credential-provider-process": "3.883.0",
34
- "@aws-sdk/credential-provider-sso": "3.883.0",
35
- "@aws-sdk/credential-provider-web-identity": "3.883.0",
36
- "@aws-sdk/nested-clients": "3.883.0",
37
- "@aws-sdk/types": "3.862.0",
30
+ "@aws-sdk/core": "3.887.0",
31
+ "@aws-sdk/credential-provider-env": "3.887.0",
32
+ "@aws-sdk/credential-provider-http": "3.887.0",
33
+ "@aws-sdk/credential-provider-process": "3.887.0",
34
+ "@aws-sdk/credential-provider-sso": "3.887.0",
35
+ "@aws-sdk/credential-provider-web-identity": "3.887.0",
36
+ "@aws-sdk/nested-clients": "3.887.0",
37
+ "@aws-sdk/types": "3.887.0",
38
38
  "@smithy/credential-provider-imds": "^4.0.7",
39
39
  "@smithy/property-provider": "^4.0.5",
40
40
  "@smithy/shared-ini-file-loader": "^4.0.5",
41
- "@smithy/types": "^4.3.2",
41
+ "@smithy/types": "^4.5.0",
42
42
  "tslib": "^2.6.2"
43
43
  },
44
44
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.883.0",
3
+ "version": "3.887.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,17 +29,17 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/credential-provider-env": "3.883.0",
33
- "@aws-sdk/credential-provider-http": "3.883.0",
34
- "@aws-sdk/credential-provider-ini": "3.883.0",
35
- "@aws-sdk/credential-provider-process": "3.883.0",
36
- "@aws-sdk/credential-provider-sso": "3.883.0",
37
- "@aws-sdk/credential-provider-web-identity": "3.883.0",
38
- "@aws-sdk/types": "3.862.0",
32
+ "@aws-sdk/credential-provider-env": "3.887.0",
33
+ "@aws-sdk/credential-provider-http": "3.887.0",
34
+ "@aws-sdk/credential-provider-ini": "3.887.0",
35
+ "@aws-sdk/credential-provider-process": "3.887.0",
36
+ "@aws-sdk/credential-provider-sso": "3.887.0",
37
+ "@aws-sdk/credential-provider-web-identity": "3.887.0",
38
+ "@aws-sdk/types": "3.887.0",
39
39
  "@smithy/credential-provider-imds": "^4.0.7",
40
40
  "@smithy/property-provider": "^4.0.5",
41
41
  "@smithy/shared-ini-file-loader": "^4.0.5",
42
- "@smithy/types": "^4.3.2",
42
+ "@smithy/types": "^4.5.0",
43
43
  "tslib": "^2.6.2"
44
44
  },
45
45
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.883.0",
3
+ "version": "3.887.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,11 +25,11 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.883.0",
29
- "@aws-sdk/types": "3.862.0",
28
+ "@aws-sdk/core": "3.887.0",
29
+ "@aws-sdk/types": "3.887.0",
30
30
  "@smithy/property-provider": "^4.0.5",
31
31
  "@smithy/shared-ini-file-loader": "^4.0.5",
32
- "@smithy/types": "^4.3.2",
32
+ "@smithy/types": "^4.5.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.883.0",
3
+ "version": "3.887.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,13 +25,13 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso": "3.883.0",
29
- "@aws-sdk/core": "3.883.0",
30
- "@aws-sdk/token-providers": "3.883.0",
31
- "@aws-sdk/types": "3.862.0",
28
+ "@aws-sdk/client-sso": "3.887.0",
29
+ "@aws-sdk/core": "3.887.0",
30
+ "@aws-sdk/token-providers": "3.887.0",
31
+ "@aws-sdk/types": "3.887.0",
32
32
  "@smithy/property-provider": "^4.0.5",
33
33
  "@smithy/shared-ini-file-loader": "^4.0.5",
34
- "@smithy/types": "^4.3.2",
34
+ "@smithy/types": "^4.5.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.883.0",
3
+ "version": "3.887.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,11 +33,11 @@
33
33
  },
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@aws-sdk/core": "3.883.0",
37
- "@aws-sdk/nested-clients": "3.883.0",
38
- "@aws-sdk/types": "3.862.0",
36
+ "@aws-sdk/core": "3.887.0",
37
+ "@aws-sdk/nested-clients": "3.887.0",
38
+ "@aws-sdk/types": "3.887.0",
39
39
  "@smithy/property-provider": "^4.0.5",
40
- "@smithy/types": "^4.3.2",
40
+ "@smithy/types": "^4.5.0",
41
41
  "tslib": "^2.6.2"
42
42
  },
43
43
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.873.0",
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.862.0",
28
- "@smithy/protocol-http": "^5.1.3",
29
- "@smithy/types": "^4.3.2",
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-logger",
3
- "version": "3.876.0",
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.862.0",
28
- "@smithy/types": "^4.3.2",
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
- addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions,
25
- getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
26
- recursionDetectionMiddleware: () => recursionDetectionMiddleware
25
+ getRecursionDetectionPlugin: () => getRecursionDetectionPlugin
27
26
  });
28
27
  module.exports = __toCommonJS(index_exports);
29
- var import_protocol_http = require("@smithy/protocol-http");
30
- var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
31
- var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
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(options), addRecursionDetectionMiddlewareOptions);
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
- recursionDetectionMiddleware,
69
- addRecursionDetectionMiddlewareOptions,
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;
@@ -0,0 +1,7 @@
1
+ export const recursionDetectionMiddlewareOptions = {
2
+ step: "build",
3
+ tags: ["RECURSION_DETECTION"],
4
+ name: "recursionDetectionMiddleware",
5
+ override: true,
6
+ priority: "low",
7
+ };
@@ -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
- import { HttpRequest } from "@smithy/protocol-http";
2
- const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
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);
@@ -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);
@@ -0,0 +1,5 @@
1
+ import { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const recursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
@@ -0,0 +1,5 @@
1
+ import { Pluggable } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRecursionDetectionPlugin: (options: any) => Pluggable<any, any>;
@@ -1,18 +1,2 @@
1
- import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types";
2
- interface PreviouslyResolved {
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";
@@ -0,0 +1,6 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ /**
3
+ * No-op middleware for runtimes outside of Node.js
4
+ * @internal
5
+ */
6
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;
@@ -0,0 +1,6 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ /**
3
+ * Inject to trace ID to request header to detect recursion invocation in Lambda.
4
+ * @internal
5
+ */
6
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;