@cdk8s/awscdk-resolver 0.0.225 → 0.0.227

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 (236) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +610 -478
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +1 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +81 -54
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +3 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
  13. package/node_modules/@aws-sdk/client-cloudformation/package.json +44 -44
  14. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +57 -42
  15. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
  16. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +8 -8
  17. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -1
  18. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +15 -5
  19. package/node_modules/@aws-sdk/client-sso/package.json +40 -40
  20. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +295 -92
  21. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
  22. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +58 -28
  23. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
  26. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
  29. package/node_modules/@aws-sdk/client-sso-oidc/package.json +42 -42
  30. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
  31. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +115 -104
  32. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
  33. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +16 -16
  34. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -1
  36. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
  37. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
  38. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
  39. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
  40. package/node_modules/@aws-sdk/client-sts/package.json +42 -42
  41. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +18 -22
  42. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +3 -4
  43. package/node_modules/@aws-sdk/core/package.json +12 -12
  44. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -3
  45. package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
  46. package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
  47. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -17
  48. package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
  49. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +11 -18
  50. package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
  51. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -5
  52. package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
  53. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +5 -6
  54. package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
  55. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -9
  56. package/node_modules/@aws-sdk/middleware-host-header/package.json +6 -6
  57. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -3
  58. package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
  59. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +6 -6
  60. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +13 -17
  61. package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -9
  62. package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
  63. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +5 -7
  64. package/node_modules/@aws-sdk/token-providers/package.json +9 -9
  65. package/node_modules/@aws-sdk/types/package.json +4 -4
  66. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
  67. package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
  68. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  69. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -2
  70. package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -8
  71. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
  72. package/node_modules/@smithy/abort-controller/package.json +3 -3
  73. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +8 -12
  74. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
  75. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
  76. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
  77. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
  78. package/node_modules/@smithy/config-resolver/package.json +6 -6
  79. package/node_modules/@smithy/core/dist-cjs/index.js +19 -16
  80. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -4
  81. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
  82. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -0
  83. package/node_modules/@smithy/core/package.json +10 -10
  84. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +10 -11
  85. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
  86. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  87. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +8 -9
  88. package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
  89. package/node_modules/@smithy/hash-node/dist-cjs/index.js +4 -3
  90. package/node_modules/@smithy/hash-node/package.json +6 -6
  91. package/node_modules/@smithy/invalid-dependency/package.json +5 -2
  92. package/node_modules/@smithy/is-array-buffer/package.json +5 -4
  93. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  94. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -9
  95. package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
  96. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +18 -17
  97. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  98. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -2
  99. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  100. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +4 -12
  101. package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +3 -0
  102. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +3 -0
  103. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  104. package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +9 -0
  105. package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +7 -0
  106. package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +6 -0
  107. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +9 -0
  108. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +7 -0
  109. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +6 -0
  110. package/node_modules/@smithy/node-config-provider/package.json +6 -6
  111. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +36 -36
  112. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
  113. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
  114. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
  115. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
  116. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
  117. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  118. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
  119. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  120. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
  121. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
  122. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
  123. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
  124. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
  125. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
  126. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
  127. package/node_modules/@smithy/node-http-handler/package.json +7 -7
  128. package/node_modules/@smithy/property-provider/dist-cjs/index.js +16 -14
  129. package/node_modules/@smithy/property-provider/package.json +3 -3
  130. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +16 -12
  131. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -2
  132. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +3 -1
  133. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +13 -0
  134. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -2
  135. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +3 -1
  136. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +13 -0
  137. package/node_modules/@smithy/protocol-http/package.json +3 -3
  138. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  139. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  140. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +4 -14
  141. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  142. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +10 -0
  143. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +1 -0
  144. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
  145. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +10 -0
  146. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +7 -0
  147. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +3 -0
  148. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +10 -0
  149. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +1 -0
  150. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
  151. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +10 -0
  152. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +7 -0
  153. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +3 -0
  154. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +6 -3
  155. package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +6 -3
  156. package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -4
  157. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +16 -14
  158. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +9 -0
  159. package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +13 -9
  160. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
  161. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
  162. package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
  163. package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +1 -1
  164. package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +1 -1
  165. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +9 -0
  166. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +13 -9
  167. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +1 -1
  168. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +1 -1
  169. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +1 -1
  170. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +1 -1
  171. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +1 -1
  172. package/node_modules/@smithy/signature-v4/package.json +9 -9
  173. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +27 -21
  174. package/node_modules/@smithy/smithy-client/package.json +9 -9
  175. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +2 -0
  176. package/node_modules/@smithy/types/dist-types/client.d.ts +1 -0
  177. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +3 -0
  178. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +6 -0
  179. package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +8 -0
  180. package/node_modules/@smithy/types/dist-types/encode.d.ts +12 -0
  181. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +12 -0
  182. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +3 -0
  183. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +9 -0
  184. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +6 -0
  185. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +30 -0
  186. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +31 -2
  187. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +3 -0
  188. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +3 -2
  189. package/node_modules/@smithy/types/dist-types/http.d.ts +6 -0
  190. package/node_modules/@smithy/types/dist-types/serde.d.ts +1 -0
  191. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +2 -1
  192. package/node_modules/@smithy/types/dist-types/transfer.d.ts +8 -0
  193. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +1 -0
  194. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +1 -0
  195. package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +3 -0
  196. package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +6 -0
  197. package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +8 -0
  198. package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +12 -0
  199. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +12 -0
  200. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +3 -0
  201. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +9 -0
  202. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +6 -0
  203. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +30 -0
  204. package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +31 -2
  205. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +3 -0
  206. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +3 -2
  207. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +6 -0
  208. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +1 -0
  209. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +1 -1
  210. package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +8 -0
  211. package/node_modules/@smithy/types/package.json +2 -2
  212. package/node_modules/@smithy/url-parser/package.json +6 -3
  213. package/node_modules/@smithy/util-base64/package.json +8 -7
  214. package/node_modules/@smithy/util-body-length-browser/package.json +7 -3
  215. package/node_modules/@smithy/util-body-length-node/package.json +6 -5
  216. package/node_modules/@smithy/util-buffer-from/package.json +7 -6
  217. package/node_modules/@smithy/util-config-provider/package.json +6 -5
  218. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
  219. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +2 -2
  220. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
  221. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +13 -15
  222. package/node_modules/@smithy/util-endpoints/package.json +5 -5
  223. package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
  224. package/node_modules/@smithy/util-middleware/package.json +4 -4
  225. package/node_modules/@smithy/util-retry/dist-cjs/index.js +27 -21
  226. package/node_modules/@smithy/util-retry/package.json +5 -5
  227. package/node_modules/@smithy/util-stream/dist-cjs/index.js +4 -3
  228. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -1
  229. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +1 -1
  230. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
  231. package/node_modules/@smithy/util-stream/package.json +10 -10
  232. package/node_modules/@smithy/util-uri-escape/package.json +5 -4
  233. package/node_modules/@smithy/util-utf8/package.json +6 -5
  234. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +4 -6
  235. package/node_modules/@smithy/util-waiter/package.json +4 -4
  236. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "3.2.8",
3
+ "version": "4.0.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/core": "^2.5.7",
28
- "@smithy/middleware-serde": "^3.0.11",
29
- "@smithy/node-config-provider": "^3.1.12",
30
- "@smithy/shared-ini-file-loader": "^3.1.12",
31
- "@smithy/types": "^3.7.2",
32
- "@smithy/url-parser": "^3.0.11",
33
- "@smithy/util-middleware": "^3.0.11",
27
+ "@smithy/core": "^3.0.0",
28
+ "@smithy/middleware-serde": "^4.0.0",
29
+ "@smithy/node-config-provider": "^4.0.0",
30
+ "@smithy/shared-ini-file-loader": "^4.0.0",
31
+ "@smithy/types": "^4.0.0",
32
+ "@smithy/url-parser": "^4.0.0",
33
+ "@smithy/util-middleware": "^4.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "typedoc": "0.23.23"
41
41
  },
42
42
  "engines": {
43
- "node": ">=16.0.0"
43
+ "node": ">=18.0.0"
44
44
  },
45
45
  "typesVersions": {
46
46
  "<4.0": {
@@ -54,9 +54,9 @@ var import_uuid = require("uuid");
54
54
  var import_util_retry = require("@smithy/util-retry");
55
55
  var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {
56
56
  const MAX_CAPACITY = initialRetryTokens;
57
- const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ?? import_util_retry.NO_RETRY_INCREMENT;
58
- const retryCost = (options == null ? void 0 : options.retryCost) ?? import_util_retry.RETRY_COST;
59
- const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ?? import_util_retry.TIMEOUT_RETRY_COST;
57
+ const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry.NO_RETRY_INCREMENT;
58
+ const retryCost = options?.retryCost ?? import_util_retry.RETRY_COST;
59
+ const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry.TIMEOUT_RETRY_COST;
60
60
  let availableCapacity = initialRetryTokens;
61
61
  const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount");
62
62
  const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, "hasRetryTokens");
@@ -104,13 +104,16 @@ var asSdkError = /* @__PURE__ */ __name((error) => {
104
104
  }, "asSdkError");
105
105
 
106
106
  // src/StandardRetryStrategy.ts
107
- var _StandardRetryStrategy = class _StandardRetryStrategy {
107
+ var StandardRetryStrategy = class {
108
108
  constructor(maxAttemptsProvider, options) {
109
109
  this.maxAttemptsProvider = maxAttemptsProvider;
110
110
  this.mode = import_util_retry.RETRY_MODES.STANDARD;
111
- this.retryDecider = (options == null ? void 0 : options.retryDecider) ?? defaultRetryDecider;
112
- this.delayDecider = (options == null ? void 0 : options.delayDecider) ?? defaultDelayDecider;
113
- this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS);
111
+ this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
112
+ this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
113
+ this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS);
114
+ }
115
+ static {
116
+ __name(this, "StandardRetryStrategy");
114
117
  }
115
118
  shouldRetry(error, attempts, maxAttempts) {
116
119
  return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
@@ -138,11 +141,11 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
138
141
  if (import_protocol_http.HttpRequest.isInstance(request)) {
139
142
  request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
140
143
  }
141
- if (options == null ? void 0 : options.beforeRequest) {
144
+ if (options?.beforeRequest) {
142
145
  await options.beforeRequest();
143
146
  }
144
147
  const { response, output } = await next(args);
145
- if (options == null ? void 0 : options.afterRequest) {
148
+ if (options?.afterRequest) {
146
149
  options.afterRequest(response);
147
150
  }
148
151
  this.retryQuota.releaseRetryTokens(retryTokenAmount);
@@ -174,8 +177,6 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
174
177
  }
175
178
  }
176
179
  };
177
- __name(_StandardRetryStrategy, "StandardRetryStrategy");
178
- var StandardRetryStrategy = _StandardRetryStrategy;
179
180
  var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
180
181
  if (!import_protocol_http.HttpResponse.isInstance(response))
181
182
  return;
@@ -191,7 +192,10 @@ var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
191
192
  }, "getDelayFromRetryAfterHeader");
192
193
 
193
194
  // src/AdaptiveRetryStrategy.ts
194
- var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryStrategy {
195
+ var AdaptiveRetryStrategy = class extends StandardRetryStrategy {
196
+ static {
197
+ __name(this, "AdaptiveRetryStrategy");
198
+ }
195
199
  constructor(maxAttemptsProvider, options) {
196
200
  const { rateLimiter, ...superOptions } = options ?? {};
197
201
  super(maxAttemptsProvider, superOptions);
@@ -209,8 +213,6 @@ var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryS
209
213
  });
210
214
  }
211
215
  };
212
- __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy");
213
- var AdaptiveRetryStrategy = _AdaptiveRetryStrategy;
214
216
 
215
217
  // src/configurations.ts
216
218
  var import_util_middleware = require("@smithy/util-middleware");
@@ -298,7 +300,6 @@ var import_smithy_client = require("@smithy/smithy-client");
298
300
 
299
301
  var import_isStreamingPayload = require("./isStreamingPayload/isStreamingPayload");
300
302
  var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
301
- var _a;
302
303
  let retryStrategy = await options.retryStrategy();
303
304
  const maxAttempts = await options.maxAttempts();
304
305
  if (isRetryStrategyV2(retryStrategy)) {
@@ -326,7 +327,7 @@ var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => asy
326
327
  const retryErrorInfo = getRetryErrorInfo(e);
327
328
  lastError = asSdkError(e);
328
329
  if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) {
329
- (_a = context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger) == null ? void 0 : _a.warn(
330
+ (context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger)?.warn(
330
331
  "An error was encountered in a non-retryable streaming request."
331
332
  );
332
333
  throw lastError;
@@ -349,7 +350,7 @@ var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => asy
349
350
  }
350
351
  } else {
351
352
  retryStrategy = retryStrategy;
352
- if (retryStrategy == null ? void 0 : retryStrategy.mode)
353
+ if (retryStrategy?.mode)
353
354
  context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
354
355
  return retryStrategy.retry(next, args);
355
356
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "3.0.34",
3
+ "version": "4.0.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@smithy/node-config-provider": "^3.1.12",
37
- "@smithy/protocol-http": "^4.1.8",
38
- "@smithy/service-error-classification": "^3.0.11",
39
- "@smithy/smithy-client": "^3.7.0",
40
- "@smithy/types": "^3.7.2",
41
- "@smithy/util-middleware": "^3.0.11",
42
- "@smithy/util-retry": "^3.0.11",
36
+ "@smithy/node-config-provider": "^4.0.0",
37
+ "@smithy/protocol-http": "^5.0.0",
38
+ "@smithy/service-error-classification": "^4.0.0",
39
+ "@smithy/smithy-client": "^4.0.0",
40
+ "@smithy/types": "^4.0.0",
41
+ "@smithy/util-middleware": "^4.0.0",
42
+ "@smithy/util-retry": "^4.0.0",
43
43
  "tslib": "^2.6.2",
44
44
  "uuid": "^9.0.1"
45
45
  },
@@ -52,7 +52,7 @@
52
52
  "typedoc": "0.23.23"
53
53
  },
54
54
  "engines": {
55
- "node": ">=16.0.0"
55
+ "node": ">=18.0.0"
56
56
  },
57
57
  "typesVersions": {
58
58
  "<4.0": {
@@ -56,8 +56,7 @@ var deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (
56
56
 
57
57
  // src/serializerMiddleware.ts
58
58
  var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => {
59
- var _a;
60
- const endpoint = ((_a = context.endpointV2) == null ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;
59
+ const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;
61
60
  if (!endpoint) {
62
61
  throw new Error("No valid endpoint provider available.");
63
62
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "3.0.11",
3
+ "version": "4.0.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-serde",
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@smithy/types": "^3.7.2",
28
+ "@smithy/types": "^4.0.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
32
- "node": ">=16.0.0"
32
+ "node": ">=18.0.0"
33
33
  },
34
34
  "typesVersions": {
35
35
  "<4.0": {
@@ -82,14 +82,13 @@ var constructStack = /* @__PURE__ */ __name(() => {
82
82
  return isRemoved;
83
83
  }, "removeByReference");
84
84
  const cloneTo = /* @__PURE__ */ __name((toStack) => {
85
- var _a;
86
85
  absoluteEntries.forEach((entry) => {
87
86
  toStack.add(entry.middleware, { ...entry });
88
87
  });
89
88
  relativeEntries.forEach((entry) => {
90
89
  toStack.addRelativeTo(entry.middleware, { ...entry });
91
90
  });
92
- (_a = toStack.identifyOnResolve) == null ? void 0 : _a.call(toStack, stack.identifyOnResolve());
91
+ toStack.identifyOnResolve?.(stack.identifyOnResolve());
93
92
  return toStack;
94
93
  }, "cloneTo");
95
94
  const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => {
@@ -181,10 +180,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
181
180
  throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
182
181
  for (const alias of aliases) {
183
182
  const toOverrideIndex = absoluteEntries.findIndex(
184
- (entry2) => {
185
- var _a;
186
- return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias));
187
- }
183
+ (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
188
184
  );
189
185
  if (toOverrideIndex === -1) {
190
186
  continue;
@@ -217,10 +213,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
217
213
  throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
218
214
  for (const alias of aliases) {
219
215
  const toOverrideIndex = relativeEntries.findIndex(
220
- (entry2) => {
221
- var _a;
222
- return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias));
223
- }
216
+ (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
224
217
  );
225
218
  if (toOverrideIndex === -1) {
226
219
  continue;
@@ -269,11 +262,10 @@ var constructStack = /* @__PURE__ */ __name(() => {
269
262
  return isRemoved;
270
263
  },
271
264
  concat: (from) => {
272
- var _a;
273
265
  const cloned = cloneTo(constructStack());
274
266
  cloned.use(from);
275
267
  cloned.identifyOnResolve(
276
- identifyOnResolve || cloned.identifyOnResolve() || (((_a = from.identifyOnResolve) == null ? void 0 : _a.call(from)) ?? false)
268
+ identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)
277
269
  );
278
270
  return cloned;
279
271
  },
@@ -1,2 +1,5 @@
1
1
  import { MiddlewareStack } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare const constructStack: <Input extends object, Output extends object>() => MiddlewareStack<Input, Output>;
@@ -1,2 +1,5 @@
1
1
  import { MiddlewareStack } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare const constructStack: <Input extends object, Output extends object>() => MiddlewareStack<Input, Output>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "3.0.11",
3
+ "version": "4.0.0",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -26,7 +26,7 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/types": "^3.7.2",
29
+ "@smithy/types": "^4.0.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -36,7 +36,7 @@
36
36
  "typedoc": "0.23.23"
37
37
  },
38
38
  "engines": {
39
- "node": ">=16.0.0"
39
+ "node": ">=18.0.0"
40
40
  },
41
41
  "typesVersions": {
42
42
  "<4.0": {
@@ -2,7 +2,13 @@ import { Provider } from "@smithy/types";
2
2
  import { GetterFromEnv } from "./fromEnv";
3
3
  import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
4
4
  import { FromStaticConfig } from "./fromStatic";
5
+ /**
6
+ * @internal
7
+ */
5
8
  export type LocalConfigOptions = SharedConfigInit;
9
+ /**
10
+ * @internal
11
+ */
6
12
  export interface LoadedConfigSelectors<T> {
7
13
  /**
8
14
  * A getter function getting the config values from all the environment
@@ -19,4 +25,7 @@ export interface LoadedConfigSelectors<T> {
19
25
  */
20
26
  default: FromStaticConfig<T>;
21
27
  }
28
+ /**
29
+ * @internal
30
+ */
22
31
  export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
@@ -1,5 +1,8 @@
1
1
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
2
  import { ParsedIniData, Profile, Provider } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export interface SharedConfigInit extends SourceProfileInit {
4
7
  /**
5
8
  * The preferred shared ini file to load the config. "config" option refers to
@@ -8,8 +11,12 @@ export interface SharedConfigInit extends SourceProfileInit {
8
11
  */
9
12
  preferredFile?: "config" | "credentials";
10
13
  }
14
+ /**
15
+ * @internal
16
+ */
11
17
  export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
12
18
  /**
13
19
  * Get config value from the shared config files with inferred profile name.
20
+ * @internal
14
21
  */
15
22
  export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
@@ -1,3 +1,9 @@
1
1
  import { Provider } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export type FromStaticConfig<T> = T | (() => T) | Provider<T>;
6
+ /**
7
+ * @internal
8
+ */
3
9
  export declare const fromStatic: <T>(defaultValue: FromStaticConfig<T>) => Provider<T>;
@@ -2,7 +2,13 @@ import { Provider } from "@smithy/types";
2
2
  import { GetterFromEnv } from "./fromEnv";
3
3
  import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
4
4
  import { FromStaticConfig } from "./fromStatic";
5
+ /**
6
+ * @internal
7
+ */
5
8
  export type LocalConfigOptions = SharedConfigInit;
9
+ /**
10
+ * @internal
11
+ */
6
12
  export interface LoadedConfigSelectors<T> {
7
13
  /**
8
14
  * A getter function getting the config values from all the environment
@@ -19,4 +25,7 @@ export interface LoadedConfigSelectors<T> {
19
25
  */
20
26
  default: FromStaticConfig<T>;
21
27
  }
28
+ /**
29
+ * @internal
30
+ */
22
31
  export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
@@ -1,5 +1,8 @@
1
1
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
2
  import { ParsedIniData, Profile, Provider } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export interface SharedConfigInit extends SourceProfileInit {
4
7
  /**
5
8
  * The preferred shared ini file to load the config. "config" option refers to
@@ -8,8 +11,12 @@ export interface SharedConfigInit extends SourceProfileInit {
8
11
  */
9
12
  preferredFile?: "config" | "credentials";
10
13
  }
14
+ /**
15
+ * @internal
16
+ */
11
17
  export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
12
18
  /**
13
19
  * Get config value from the shared config files with inferred profile name.
20
+ * @internal
14
21
  */
15
22
  export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
@@ -1,3 +1,9 @@
1
1
  import { Provider } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export type FromStaticConfig<T> = T | (() => T) | Provider<T>;
6
+ /**
7
+ * @internal
8
+ */
3
9
  export declare const fromStatic: <T>(defaultValue: FromStaticConfig<T>) => Provider<T>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "3.1.12",
3
+ "version": "4.0.0",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -25,20 +25,20 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/property-provider": "^3.1.11",
29
- "@smithy/shared-ini-file-loader": "^3.1.12",
30
- "@smithy/types": "^3.7.2",
28
+ "@smithy/property-provider": "^4.0.0",
29
+ "@smithy/shared-ini-file-loader": "^4.0.0",
30
+ "@smithy/types": "^4.0.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "^16.18.96",
34
+ "@types/node": "^18.11.9",
35
35
  "concurrently": "7.0.0",
36
36
  "downlevel-dts": "0.10.1",
37
37
  "rimraf": "3.0.2",
38
38
  "typedoc": "0.23.23"
39
39
  },
40
40
  "engines": {
41
- "node": ">=16.0.0"
41
+ "node": ">=18.0.0"
42
42
  },
43
43
  "typesVersions": {
44
44
  "<4.0": {