@cdk8s/awscdk-resolver 0.0.39 → 0.0.40

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 (101) hide show
  1. package/.jsii +2 -2
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackCreateComplete.js +136 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackCreateComplete.js +136 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +3 -3
  6. package/node_modules/@aws-sdk/client-cloudformation/package.json +35 -35
  7. package/node_modules/@aws-sdk/client-sso/package.json +31 -31
  8. package/node_modules/@aws-sdk/client-sts/package.json +34 -34
  9. package/node_modules/@aws-sdk/core/CHANGELOG.md +8 -0
  10. package/node_modules/@aws-sdk/core/package.json +2 -2
  11. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  12. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  13. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  14. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
  16. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  17. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  19. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  20. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  21. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  22. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  23. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +4 -4
  24. package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
  25. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  26. package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
  27. package/node_modules/@aws-sdk/token-providers/package.json +30 -30
  28. package/node_modules/@aws-sdk/types/package.json +2 -2
  29. package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
  30. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  31. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  32. package/node_modules/@smithy/abort-controller/package.json +3 -3
  33. package/node_modules/@smithy/config-resolver/package.json +5 -5
  34. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  35. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  36. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +6 -0
  37. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +6 -0
  38. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +8 -22
  39. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +8 -22
  40. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  41. package/node_modules/@smithy/hash-node/package.json +3 -3
  42. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  43. package/node_modules/@smithy/middleware-content-length/package.json +5 -5
  44. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  45. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +5 -0
  46. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
  47. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +10 -2
  48. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.browser.js +1 -0
  49. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js +3 -0
  50. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +9 -2
  51. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  52. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  53. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  54. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  55. package/node_modules/@smithy/middleware-retry/package.json +17 -9
  56. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  57. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  58. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  59. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +6 -0
  60. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +6 -0
  61. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +6 -0
  62. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  63. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +7 -30
  64. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +5 -0
  65. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +7 -29
  66. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +5 -0
  67. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  68. package/node_modules/@smithy/property-provider/package.json +3 -3
  69. package/node_modules/@smithy/protocol-http/package.json +3 -3
  70. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  71. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  72. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  73. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +6 -5
  74. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +6 -5
  75. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  76. package/node_modules/@smithy/signature-v4/README.md +7 -0
  77. package/node_modules/@smithy/signature-v4/package.json +6 -6
  78. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -1
  79. package/node_modules/@smithy/smithy-client/dist-es/serde-json.js +1 -1
  80. package/node_modules/@smithy/smithy-client/package.json +5 -5
  81. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +2 -0
  82. package/node_modules/@smithy/types/dist-cjs/index.js +1 -0
  83. package/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  84. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  85. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +65 -0
  86. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  87. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +64 -0
  88. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  89. package/node_modules/@smithy/types/package.json +2 -2
  90. package/node_modules/@smithy/url-parser/package.json +4 -4
  91. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +4 -0
  92. package/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js +4 -0
  93. package/node_modules/@smithy/util-body-length-browser/package.json +7 -9
  94. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  95. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  96. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  97. package/node_modules/@smithy/util-middleware/package.json +3 -3
  98. package/node_modules/@smithy/util-retry/package.json +4 -4
  99. package/node_modules/@smithy/util-stream/package.json +6 -6
  100. package/node_modules/@smithy/util-waiter/package.json +4 -4
  101. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.465.0",
3
+ "version": "3.468.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,39 +29,39 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "3.0.0",
31
31
  "@aws-crypto/sha256-js": "3.0.0",
32
- "@aws-sdk/middleware-host-header": "3.465.0",
33
- "@aws-sdk/middleware-logger": "3.465.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.465.0",
35
- "@aws-sdk/middleware-user-agent": "3.465.0",
36
- "@aws-sdk/region-config-resolver": "3.465.0",
37
- "@aws-sdk/types": "3.465.0",
38
- "@aws-sdk/util-endpoints": "3.465.0",
39
- "@aws-sdk/util-user-agent-browser": "3.465.0",
40
- "@aws-sdk/util-user-agent-node": "3.465.0",
41
- "@smithy/config-resolver": "^2.0.18",
42
- "@smithy/fetch-http-handler": "^2.2.6",
43
- "@smithy/hash-node": "^2.0.15",
44
- "@smithy/invalid-dependency": "^2.0.13",
45
- "@smithy/middleware-content-length": "^2.0.15",
46
- "@smithy/middleware-endpoint": "^2.2.0",
47
- "@smithy/middleware-retry": "^2.0.20",
48
- "@smithy/middleware-serde": "^2.0.13",
49
- "@smithy/middleware-stack": "^2.0.7",
50
- "@smithy/node-config-provider": "^2.1.5",
51
- "@smithy/node-http-handler": "^2.1.9",
32
+ "@aws-sdk/middleware-host-header": "3.468.0",
33
+ "@aws-sdk/middleware-logger": "3.468.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.468.0",
35
+ "@aws-sdk/middleware-user-agent": "3.468.0",
36
+ "@aws-sdk/region-config-resolver": "3.468.0",
37
+ "@aws-sdk/types": "3.468.0",
38
+ "@aws-sdk/util-endpoints": "3.468.0",
39
+ "@aws-sdk/util-user-agent-browser": "3.468.0",
40
+ "@aws-sdk/util-user-agent-node": "3.468.0",
41
+ "@smithy/config-resolver": "^2.0.20",
42
+ "@smithy/fetch-http-handler": "^2.3.1",
43
+ "@smithy/hash-node": "^2.0.17",
44
+ "@smithy/invalid-dependency": "^2.0.15",
45
+ "@smithy/middleware-content-length": "^2.0.17",
46
+ "@smithy/middleware-endpoint": "^2.2.2",
47
+ "@smithy/middleware-retry": "^2.0.23",
48
+ "@smithy/middleware-serde": "^2.0.15",
49
+ "@smithy/middleware-stack": "^2.0.9",
50
+ "@smithy/node-config-provider": "^2.1.7",
51
+ "@smithy/node-http-handler": "^2.2.1",
52
52
  "@smithy/property-provider": "^2.0.0",
53
- "@smithy/protocol-http": "^3.0.9",
53
+ "@smithy/protocol-http": "^3.0.11",
54
54
  "@smithy/shared-ini-file-loader": "^2.0.6",
55
- "@smithy/smithy-client": "^2.1.15",
56
- "@smithy/types": "^2.5.0",
57
- "@smithy/url-parser": "^2.0.13",
55
+ "@smithy/smithy-client": "^2.1.18",
56
+ "@smithy/types": "^2.7.0",
57
+ "@smithy/url-parser": "^2.0.15",
58
58
  "@smithy/util-base64": "^2.0.1",
59
- "@smithy/util-body-length-browser": "^2.0.0",
59
+ "@smithy/util-body-length-browser": "^2.0.1",
60
60
  "@smithy/util-body-length-node": "^2.1.0",
61
- "@smithy/util-defaults-mode-browser": "^2.0.19",
62
- "@smithy/util-defaults-mode-node": "^2.0.25",
63
- "@smithy/util-endpoints": "^1.0.4",
64
- "@smithy/util-retry": "^2.0.6",
61
+ "@smithy/util-defaults-mode-browser": "^2.0.22",
62
+ "@smithy/util-defaults-mode-node": "^2.0.28",
63
+ "@smithy/util-endpoints": "^1.0.6",
64
+ "@smithy/util-retry": "^2.0.8",
65
65
  "@smithy/util-utf8": "^2.0.2",
66
66
  "tslib": "^2.5.0"
67
67
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.465.0",
3
+ "version": "3.468.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "directory": "packages/types"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^2.5.0",
44
+ "@smithy/types": "^2.7.0",
45
45
  "tslib": "^2.5.0"
46
46
  },
47
47
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.465.0",
3
+ "version": "3.468.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.465.0",
26
- "@smithy/util-endpoints": "^1.0.4",
25
+ "@aws-sdk/types": "3.468.0",
26
+ "@smithy/util-endpoints": "^1.0.6",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.465.0",
3
+ "version": "3.468.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,8 +22,8 @@
22
22
  "license": "Apache-2.0",
23
23
  "react-native": "dist-es/index.native.js",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.465.0",
26
- "@smithy/types": "^2.5.0",
25
+ "@aws-sdk/types": "3.468.0",
26
+ "@smithy/types": "^2.7.0",
27
27
  "bowser": "^2.11.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.465.0",
3
+ "version": "3.468.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.465.0",
24
- "@smithy/node-config-provider": "^2.1.5",
25
- "@smithy/types": "^2.5.0",
23
+ "@aws-sdk/types": "3.468.0",
24
+ "@smithy/node-config-provider": "^2.1.7",
25
+ "@smithy/types": "^2.7.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -12,7 +12,7 @@
12
12
  "build:types": "yarn g:tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
14
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
15
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
15
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
16
16
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
17
17
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
18
18
  "extract:docs": "api-extractor run --local",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/types": "^2.6.0",
27
+ "@smithy/types": "^2.7.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:jest",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/node-config-provider": "^2.1.6",
27
- "@smithy/types": "^2.6.0",
26
+ "@smithy/node-config-provider": "^2.1.8",
27
+ "@smithy/types": "^2.7.0",
28
28
  "@smithy/util-config-provider": "^2.0.0",
29
- "@smithy/util-middleware": "^2.0.7",
29
+ "@smithy/util-middleware": "^2.0.8",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -11,7 +11,7 @@
11
11
  "build:types": "yarn g:tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
16
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "test": "yarn g:jest"
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@smithy/node-config-provider": "^2.1.6",
30
- "@smithy/property-provider": "^2.0.15",
31
- "@smithy/types": "^2.6.0",
32
- "@smithy/url-parser": "^2.0.14",
29
+ "@smithy/node-config-provider": "^2.1.8",
30
+ "@smithy/property-provider": "^2.0.16",
31
+ "@smithy/types": "^2.7.0",
32
+ "@smithy/url-parser": "^2.0.15",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/eventstream-codec",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:jest --coverage"
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@aws-crypto/crc32": "3.0.0",
26
- "@smithy/types": "^2.6.0",
26
+ "@smithy/types": "^2.7.0",
27
27
  "@smithy/util-hex-encoding": "^2.0.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
@@ -8,6 +8,12 @@ exports.keepAliveSupport = {
8
8
  supported: Boolean(typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]")),
9
9
  };
10
10
  class FetchHttpHandler {
11
+ static create(instanceOrOptions) {
12
+ if (typeof (instanceOrOptions === null || instanceOrOptions === void 0 ? void 0 : instanceOrOptions.handle) === "function") {
13
+ return instanceOrOptions;
14
+ }
15
+ return new FetchHttpHandler(instanceOrOptions);
16
+ }
11
17
  constructor(options) {
12
18
  if (typeof options === "function") {
13
19
  this.configProvider = options().then((opts) => opts || {});
@@ -5,6 +5,12 @@ export const keepAliveSupport = {
5
5
  supported: Boolean(typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]")),
6
6
  };
7
7
  export class FetchHttpHandler {
8
+ static create(instanceOrOptions) {
9
+ if (typeof instanceOrOptions?.handle === "function") {
10
+ return instanceOrOptions;
11
+ }
12
+ return new FetchHttpHandler(instanceOrOptions);
13
+ }
8
14
  constructor(options) {
9
15
  if (typeof options === "function") {
10
16
  this.configProvider = options().then((opts) => opts || {});
@@ -1,25 +1,7 @@
1
1
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
+ import type { FetchHttpHandlerOptions } from "@smithy/types";
2
3
  import { HttpHandlerOptions, Provider } from "@smithy/types";
3
- /**
4
- * Represents the http options that can be passed to a browser http client.
5
- */
6
- export interface FetchHttpHandlerOptions {
7
- /**
8
- * The number of milliseconds a request can take before being automatically
9
- * terminated.
10
- */
11
- requestTimeout?: number;
12
- /**
13
- * Whether to allow the request to outlive the page. Default value is false.
14
- *
15
- * There may be limitations to the payload size, number of concurrent requests,
16
- * request duration etc. when using keepalive in browsers.
17
- *
18
- * These may change over time, so look for up to date information about
19
- * these limitations before enabling keepalive.
20
- */
21
- keepAlive?: boolean;
22
- }
4
+ export { FetchHttpHandlerOptions };
23
5
  type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
24
6
  /**
25
7
  * @internal
@@ -36,7 +18,12 @@ export declare const keepAliveSupport: {
36
18
  export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
37
19
  private config?;
38
20
  private configProvider;
39
- constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | undefined>);
21
+ /**
22
+ * @returns the input if it is an HttpHandler of any class,
23
+ * or instantiates a new instance of this handler.
24
+ */
25
+ static create(instanceOrOptions?: HttpHandler<any> | FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>): FetchHttpHandler | HttpHandler<any>;
26
+ constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>);
40
27
  destroy(): void;
41
28
  handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
42
29
  response: HttpResponse;
@@ -44,4 +31,3 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerCon
44
31
  updateHttpClientConfig(key: keyof FetchHttpHandlerConfig, value: FetchHttpHandlerConfig[typeof key]): void;
45
32
  httpHandlerConfigs(): FetchHttpHandlerConfig;
46
33
  }
47
- export {};
@@ -1,25 +1,7 @@
1
1
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
+ import { FetchHttpHandlerOptions } from "@smithy/types";
2
3
  import { HttpHandlerOptions, Provider } from "@smithy/types";
3
- /**
4
- * Represents the http options that can be passed to a browser http client.
5
- */
6
- export interface FetchHttpHandlerOptions {
7
- /**
8
- * The number of milliseconds a request can take before being automatically
9
- * terminated.
10
- */
11
- requestTimeout?: number;
12
- /**
13
- * Whether to allow the request to outlive the page. Default value is false.
14
- *
15
- * There may be limitations to the payload size, number of concurrent requests,
16
- * request duration etc. when using keepalive in browsers.
17
- *
18
- * These may change over time, so look for up to date information about
19
- * these limitations before enabling keepalive.
20
- */
21
- keepAlive?: boolean;
22
- }
4
+ export { FetchHttpHandlerOptions };
23
5
  type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
24
6
  /**
25
7
  * @internal
@@ -36,7 +18,12 @@ export declare const keepAliveSupport: {
36
18
  export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
37
19
  private config?;
38
20
  private configProvider;
39
- constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | undefined>);
21
+ /**
22
+ * @returns the input if it is an HttpHandler of any class,
23
+ * or instantiates a new instance of this handler.
24
+ */
25
+ static create(instanceOrOptions?: HttpHandler<any> | FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>): FetchHttpHandler | HttpHandler<any>;
26
+ constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>);
40
27
  destroy(): void;
41
28
  handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
42
29
  response: HttpResponse;
@@ -44,4 +31,3 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerCon
44
31
  updateHttpClientConfig(key: keyof FetchHttpHandlerConfig, value: FetchHttpHandlerConfig[typeof key]): void;
45
32
  httpHandlerConfigs(): FetchHttpHandlerConfig;
46
33
  }
47
- export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "2.2.7",
3
+ "version": "2.3.1",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -9,7 +9,7 @@
9
9
  "build:types": "yarn g:tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
14
14
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
15
15
  "extract:docs": "api-extractor run --local",
@@ -24,14 +24,14 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/protocol-http": "^3.0.10",
28
- "@smithy/querystring-builder": "^2.0.14",
29
- "@smithy/types": "^2.6.0",
27
+ "@smithy/protocol-http": "^3.0.11",
28
+ "@smithy/querystring-builder": "^2.0.15",
29
+ "@smithy/types": "^2.7.0",
30
30
  "@smithy/util-base64": "^2.0.1",
31
31
  "tslib": "^2.5.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^2.0.14",
34
+ "@smithy/abort-controller": "^2.0.15",
35
35
  "@tsconfig/recommended": "1.0.1",
36
36
  "@types/chai-as-promised": "^7.1.2",
37
37
  "chai": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:jest"
@@ -31,7 +31,7 @@
31
31
  "typedoc": "0.23.23"
32
32
  },
33
33
  "dependencies": {
34
- "@smithy/types": "^2.6.0",
34
+ "@smithy/types": "^2.7.0",
35
35
  "@smithy/util-buffer-from": "^2.0.0",
36
36
  "@smithy/util-utf8": "^2.0.2",
37
37
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:jest"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.6.0",
25
+ "@smithy/types": "^2.7.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "exit 0",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/protocol-http": "^3.0.10",
27
- "@smithy/types": "^2.6.0",
26
+ "@smithy/protocol-http": "^3.0.11",
27
+ "@smithy/types": "^2.7.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -47,7 +47,7 @@
47
47
  "directory": "packages/middleware-content-length"
48
48
  },
49
49
  "devDependencies": {
50
- "@smithy/util-test": "^0.1.10",
50
+ "@smithy/util-test": "^0.1.11",
51
51
  "@tsconfig/recommended": "1.0.1",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:jest --passWithNoTests",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/middleware-serde": "^2.0.14",
27
- "@smithy/node-config-provider": "^2.1.6",
28
- "@smithy/shared-ini-file-loader": "^2.2.5",
29
- "@smithy/types": "^2.6.0",
30
- "@smithy/url-parser": "^2.0.14",
31
- "@smithy/util-middleware": "^2.0.7",
26
+ "@smithy/middleware-serde": "^2.0.15",
27
+ "@smithy/node-config-provider": "^2.1.8",
28
+ "@smithy/shared-ini-file-loader": "^2.2.7",
29
+ "@smithy/types": "^2.7.0",
30
+ "@smithy/url-parser": "^2.0.15",
31
+ "@smithy/util-middleware": "^2.0.8",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStreamingPayload = void 0;
4
+ const isStreamingPayload = (request) => (request === null || request === void 0 ? void 0 : request.body) instanceof ReadableStream;
5
+ exports.isStreamingPayload = isStreamingPayload;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStreamingPayload = void 0;
4
+ const stream_1 = require("stream");
5
+ const isStreamingPayload = (request) => (request === null || request === void 0 ? void 0 : request.body) instanceof stream_1.Readable ||
6
+ (typeof ReadableStream !== "undefined" && (request === null || request === void 0 ? void 0 : request.body) instanceof ReadableStream);
7
+ exports.isStreamingPayload = isStreamingPayload;
@@ -3,10 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRetryAfterHint = exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0;
4
4
  const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const service_error_classification_1 = require("@smithy/service-error-classification");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const util_retry_1 = require("@smithy/util-retry");
7
8
  const uuid_1 = require("uuid");
9
+ const isStreamingPayload_1 = require("./isStreamingPayload/isStreamingPayload");
8
10
  const util_1 = require("./util");
9
11
  const retryMiddleware = (options) => (next, context) => async (args) => {
12
+ var _a;
10
13
  let retryStrategy = await options.retryStrategy();
11
14
  const maxAttempts = await options.maxAttempts();
12
15
  if (isRetryStrategyV2(retryStrategy)) {
@@ -16,12 +19,13 @@ const retryMiddleware = (options) => (next, context) => async (args) => {
16
19
  let attempts = 0;
17
20
  let totalRetryDelay = 0;
18
21
  const { request } = args;
19
- if (protocol_http_1.HttpRequest.isInstance(request)) {
22
+ const isRequest = protocol_http_1.HttpRequest.isInstance(request);
23
+ if (isRequest) {
20
24
  request.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)();
21
25
  }
22
26
  while (true) {
23
27
  try {
24
- if (protocol_http_1.HttpRequest.isInstance(request)) {
28
+ if (isRequest) {
25
29
  request.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
26
30
  }
27
31
  const { response, output } = await next(args);
@@ -33,6 +37,10 @@ const retryMiddleware = (options) => (next, context) => async (args) => {
33
37
  catch (e) {
34
38
  const retryErrorInfo = getRetryErrorInfo(e);
35
39
  lastError = (0, util_1.asSdkError)(e);
40
+ if (isRequest && (0, isStreamingPayload_1.isStreamingPayload)(request)) {
41
+ (_a = (context.logger instanceof smithy_client_1.NoOpLogger ? console : context.logger)) === null || _a === void 0 ? void 0 : _a.warn("An error was encountered in a non-retryable streaming request.");
42
+ throw lastError;
43
+ }
36
44
  try {
37
45
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
38
46
  }
@@ -0,0 +1 @@
1
+ export const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
@@ -0,0 +1,3 @@
1
+ import { Readable } from "stream";
2
+ export const isStreamingPayload = (request) => request?.body instanceof Readable ||
3
+ (typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream);