@cdk8s/awscdk-resolver 0.0.224 → 0.0.226

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,17 +1,18 @@
1
1
  {
2
2
  "name": "@smithy/util-buffer-from",
3
- "version": "3.0.0",
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 util-buffer-from",
7
7
  "build:es": "yarn g:tsc -p tsconfig.es.json",
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
9
+ "build:types:downlevel": "rimraf dist-types/ts3.4 && 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
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
- "test": "yarn g:jest"
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch"
15
16
  },
16
17
  "author": {
17
18
  "name": "AWS SDK for JavaScript Team",
@@ -19,11 +20,11 @@
19
20
  },
20
21
  "license": "Apache-2.0",
21
22
  "dependencies": {
22
- "@smithy/is-array-buffer": "^3.0.0",
23
+ "@smithy/is-array-buffer": "^4.0.0",
23
24
  "tslib": "^2.6.2"
24
25
  },
25
26
  "devDependencies": {
26
- "@types/node": "^16.18.96",
27
+ "@types/node": "^18.11.9",
27
28
  "concurrently": "7.0.0",
28
29
  "downlevel-dts": "0.10.1",
29
30
  "rimraf": "3.0.2",
@@ -33,7 +34,7 @@
33
34
  "module": "./dist-es/index.js",
34
35
  "types": "./dist-types/index.d.ts",
35
36
  "engines": {
36
- "node": ">=16.0.0"
37
+ "node": ">=18.0.0"
37
38
  },
38
39
  "typesVersions": {
39
40
  "<4.0": {
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@smithy/util-config-provider",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Utilities package for configuration providers",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline util-config-provider",
8
8
  "build:es": "yarn g:tsc -p tsconfig.es.json",
9
9
  "build:types": "yarn g:tsc -p tsconfig.types.json",
10
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "build:types:downlevel": "rimraf dist-types/ts3.4 && 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
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
- "test": "yarn g:jest --passWithNoTests"
15
+ "test": "yarn g:vitest run",
16
+ "test:watch": "yarn g:vitest watch"
16
17
  },
17
18
  "author": {
18
19
  "name": "AWS SDK for JavaScript Team",
@@ -27,14 +28,14 @@
27
28
  "tslib": "^2.6.2"
28
29
  },
29
30
  "devDependencies": {
30
- "@types/node": "^16.18.96",
31
+ "@types/node": "^18.11.9",
31
32
  "concurrently": "7.0.0",
32
33
  "downlevel-dts": "0.10.1",
33
34
  "rimraf": "3.0.2",
34
35
  "typedoc": "0.23.23"
35
36
  },
36
37
  "engines": {
37
- "node": ">=16.0.0"
38
+ "node": ">=18.0.0"
38
39
  },
39
40
  "typesVersions": {
40
41
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
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 util-defaults-mode-browser",
@@ -23,21 +23,21 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/property-provider": "^3.1.11",
27
- "@smithy/smithy-client": "^3.7.0",
28
- "@smithy/types": "^3.7.2",
26
+ "@smithy/property-provider": "^4.0.0",
27
+ "@smithy/smithy-client": "^4.0.0",
28
+ "@smithy/types": "^4.0.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^16.18.96",
33
+ "@types/node": "^18.11.9",
34
34
  "concurrently": "7.0.0",
35
35
  "downlevel-dts": "0.10.1",
36
36
  "rimraf": "3.0.2",
37
37
  "typedoc": "0.23.23"
38
38
  },
39
39
  "engines": {
40
- "node": ">= 10.0.0"
40
+ "node": ">=18.0.0"
41
41
  },
42
42
  "typesVersions": {
43
43
  "<4.0": {
@@ -66,7 +66,7 @@ var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({
66
66
  defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS)
67
67
  } = {}) => (0, import_property_provider.memoize)(async () => {
68
68
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
69
- switch (mode == null ? void 0 : mode.toLowerCase()) {
69
+ switch (mode?.toLowerCase()) {
70
70
  case "auto":
71
71
  return resolveNodeDefaultsModeAuto(region);
72
72
  case "in-region":
@@ -74,7 +74,7 @@ var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({
74
74
  case "mobile":
75
75
  case "standard":
76
76
  case "legacy":
77
- return Promise.resolve(mode == null ? void 0 : mode.toLocaleLowerCase());
77
+ return Promise.resolve(mode?.toLocaleLowerCase());
78
78
  case void 0:
79
79
  return Promise.resolve("legacy");
80
80
  default:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
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 util-defaults-mode-node",
@@ -23,23 +23,23 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/config-resolver": "^3.0.13",
27
- "@smithy/credential-provider-imds": "^3.2.8",
28
- "@smithy/node-config-provider": "^3.1.12",
29
- "@smithy/property-provider": "^3.1.11",
30
- "@smithy/smithy-client": "^3.7.0",
31
- "@smithy/types": "^3.7.2",
26
+ "@smithy/config-resolver": "^4.0.0",
27
+ "@smithy/credential-provider-imds": "^4.0.0",
28
+ "@smithy/node-config-provider": "^4.0.0",
29
+ "@smithy/property-provider": "^4.0.0",
30
+ "@smithy/smithy-client": "^4.0.0",
31
+ "@smithy/types": "^4.0.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "^16.18.96",
35
+ "@types/node": "^18.11.9",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
38
38
  "rimraf": "3.0.2",
39
39
  "typedoc": "0.23.23"
40
40
  },
41
41
  "engines": {
42
- "node": ">= 10.0.0"
42
+ "node": ">=18.0.0"
43
43
  },
44
44
  "typesVersions": {
45
45
  "<4.0": {
@@ -30,7 +30,7 @@ __export(src_exports, {
30
30
  module.exports = __toCommonJS(src_exports);
31
31
 
32
32
  // src/cache/EndpointCache.ts
33
- var _EndpointCache = class _EndpointCache {
33
+ var EndpointCache = class {
34
34
  /**
35
35
  * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed
36
36
  * before keys are dropped.
@@ -47,6 +47,9 @@ var _EndpointCache = class _EndpointCache {
47
47
  this.parameters = params;
48
48
  }
49
49
  }
50
+ static {
51
+ __name(this, "EndpointCache");
52
+ }
50
53
  /**
51
54
  * @param endpointParams - query for endpoint.
52
55
  * @param resolver - provider of the value if not present.
@@ -95,8 +98,6 @@ var _EndpointCache = class _EndpointCache {
95
98
  return buffer;
96
99
  }
97
100
  };
98
- __name(_EndpointCache, "EndpointCache");
99
- var EndpointCache = _EndpointCache;
100
101
 
101
102
  // src/lib/isIpAddress.ts
102
103
  var IP_V4_REGEX = new RegExp(
@@ -141,14 +142,15 @@ function toDebugString(input) {
141
142
  __name(toDebugString, "toDebugString");
142
143
 
143
144
  // src/types/EndpointError.ts
144
- var _EndpointError = class _EndpointError extends Error {
145
+ var EndpointError = class extends Error {
146
+ static {
147
+ __name(this, "EndpointError");
148
+ }
145
149
  constructor(message) {
146
150
  super(message);
147
151
  this.name = "EndpointError";
148
152
  }
149
153
  };
150
- __name(_EndpointError, "EndpointError");
151
- var EndpointError = _EndpointError;
152
154
 
153
155
  // src/lib/booleanEquals.ts
154
156
  var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
@@ -343,12 +345,11 @@ var callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {
343
345
 
344
346
  // src/utils/evaluateCondition.ts
345
347
  var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => {
346
- var _a, _b;
347
348
  if (assign && assign in options.referenceRecord) {
348
349
  throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
349
350
  }
350
351
  const value = callFunction(fnArgs, options);
351
- (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
352
+ options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
352
353
  return {
353
354
  result: value === "" ? true : !!value,
354
355
  ...assign != null && { toAssign: { name: assign, value } }
@@ -357,7 +358,6 @@ var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options)
357
358
 
358
359
  // src/utils/evaluateConditions.ts
359
360
  var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => {
360
- var _a, _b;
361
361
  const conditionsReferenceRecord = {};
362
362
  for (const condition of conditions) {
363
363
  const { result, toAssign } = evaluateCondition(condition, {
@@ -372,7 +372,7 @@ var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => {
372
372
  }
373
373
  if (toAssign) {
374
374
  conditionsReferenceRecord[toAssign.name] = toAssign.value;
375
- (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
375
+ options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
376
376
  }
377
377
  }
378
378
  return { result: true, referenceRecord: conditionsReferenceRecord };
@@ -438,7 +438,6 @@ var getEndpointUrl = /* @__PURE__ */ __name((endpointUrl, options) => {
438
438
 
439
439
  // src/utils/evaluateEndpointRule.ts
440
440
  var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => {
441
- var _a, _b;
442
441
  const { conditions, endpoint } = endpointRule;
443
442
  const { result, referenceRecord } = evaluateConditions(conditions, options);
444
443
  if (!result) {
@@ -449,7 +448,7 @@ var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => {
449
448
  referenceRecord: { ...options.referenceRecord, ...referenceRecord }
450
449
  };
451
450
  const { url, properties, headers } = endpoint;
452
- (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
451
+ options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
453
452
  return {
454
453
  ...headers != void 0 && {
455
454
  headers: getEndpointHeaders(headers, endpointRuleOptions)
@@ -513,10 +512,9 @@ var evaluateRules = /* @__PURE__ */ __name((rules, options) => {
513
512
 
514
513
  // src/resolveEndpoint.ts
515
514
  var resolveEndpoint = /* @__PURE__ */ __name((ruleSetObject, options) => {
516
- var _a, _b, _c, _d;
517
515
  const { endpointParams, logger } = options;
518
516
  const { parameters, rules } = ruleSetObject;
519
- (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
517
+ options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
520
518
  const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
521
519
  if (paramsWithDefault.length > 0) {
522
520
  for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
@@ -530,7 +528,7 @@ var resolveEndpoint = /* @__PURE__ */ __name((ruleSetObject, options) => {
530
528
  }
531
529
  }
532
530
  const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
533
- (_d = (_c = options.logger) == null ? void 0 : _c.debug) == null ? void 0 : _d.call(_c, `${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
531
+ options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
534
532
  return endpoint;
535
533
  }, "resolveEndpoint");
536
534
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "2.1.7",
3
+ "version": "3.0.0",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^3.1.12",
32
- "@smithy/types": "^3.7.2",
31
+ "@smithy/node-config-provider": "^4.0.0",
32
+ "@smithy/types": "^4.0.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^16.18.96",
36
+ "@types/node": "^18.11.9",
37
37
  "concurrently": "7.0.0",
38
38
  "downlevel-dts": "0.10.1",
39
39
  "rimraf": "3.0.2",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "types": "./dist-types/index.d.ts",
43
43
  "engines": {
44
- "node": ">=16.0.0"
44
+ "node": ">=18.0.0"
45
45
  },
46
46
  "typesVersions": {
47
47
  "<4.0": {
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@smithy/util-hex-encoding",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Converts binary buffers to and from lowercase hexadecimal encoding",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline util-hex-encoding",
8
8
  "build:es": "yarn g:tsc -p tsconfig.es.json",
9
9
  "build:types": "yarn g:tsc -p tsconfig.types.json",
10
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "build:types:downlevel": "rimraf dist-types/ts3.4 && 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
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
- "test": "yarn g:jest"
15
+ "test": "yarn g:vitest run",
16
+ "test:watch": "yarn g:vitest watch"
16
17
  },
17
18
  "author": {
18
19
  "name": "AWS SDK for JavaScript Team",
@@ -26,7 +27,7 @@
26
27
  },
27
28
  "types": "./dist-types/index.d.ts",
28
29
  "engines": {
29
- "node": ">=16.0.0"
30
+ "node": ">=18.0.0"
30
31
  },
31
32
  "typesVersions": {
32
33
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "3.0.11",
3
+ "version": "4.0.0",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/types": "^3.7.2",
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",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "types": "./dist-types/index.d.ts",
41
41
  "engines": {
42
- "node": ">=16.0.0"
42
+ "node": ">=18.0.0"
43
43
  },
44
44
  "typesVersions": {
45
45
  "<4.0": {
@@ -50,7 +50,7 @@ var DEFAULT_RETRY_MODE = "standard" /* STANDARD */;
50
50
 
51
51
  // src/DefaultRateLimiter.ts
52
52
  var import_service_error_classification = require("@smithy/service-error-classification");
53
- var _DefaultRateLimiter = class _DefaultRateLimiter {
53
+ var DefaultRateLimiter = class _DefaultRateLimiter {
54
54
  constructor(options) {
55
55
  // Pre-set state variables
56
56
  this.currentCapacity = 0;
@@ -60,17 +60,26 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
60
60
  this.requestCount = 0;
61
61
  this.lastTimestamp = 0;
62
62
  this.timeWindow = 0;
63
- this.beta = (options == null ? void 0 : options.beta) ?? 0.7;
64
- this.minCapacity = (options == null ? void 0 : options.minCapacity) ?? 1;
65
- this.minFillRate = (options == null ? void 0 : options.minFillRate) ?? 0.5;
66
- this.scaleConstant = (options == null ? void 0 : options.scaleConstant) ?? 0.4;
67
- this.smooth = (options == null ? void 0 : options.smooth) ?? 0.8;
63
+ this.beta = options?.beta ?? 0.7;
64
+ this.minCapacity = options?.minCapacity ?? 1;
65
+ this.minFillRate = options?.minFillRate ?? 0.5;
66
+ this.scaleConstant = options?.scaleConstant ?? 0.4;
67
+ this.smooth = options?.smooth ?? 0.8;
68
68
  const currentTimeInSeconds = this.getCurrentTimeInSeconds();
69
69
  this.lastThrottleTime = currentTimeInSeconds;
70
70
  this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
71
71
  this.fillRate = this.minFillRate;
72
72
  this.maxCapacity = this.minCapacity;
73
73
  }
74
+ static {
75
+ __name(this, "DefaultRateLimiter");
76
+ }
77
+ static {
78
+ /**
79
+ * Only used in testing.
80
+ */
81
+ this.setTimeoutFn = setTimeout;
82
+ }
74
83
  getCurrentTimeInSeconds() {
75
84
  return Date.now() / 1e3;
76
85
  }
@@ -150,12 +159,6 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
150
159
  return parseFloat(num.toFixed(8));
151
160
  }
152
161
  };
153
- __name(_DefaultRateLimiter, "DefaultRateLimiter");
154
- /**
155
- * Only used in testing.
156
- */
157
- _DefaultRateLimiter.setTimeoutFn = setTimeout;
158
- var DefaultRateLimiter = _DefaultRateLimiter;
159
162
 
160
163
  // src/constants.ts
161
164
  var DEFAULT_RETRY_DELAY_BASE = 100;
@@ -200,7 +203,7 @@ var createDefaultRetryToken = /* @__PURE__ */ __name(({
200
203
  }, "createDefaultRetryToken");
201
204
 
202
205
  // src/StandardRetryStrategy.ts
203
- var _StandardRetryStrategy = class _StandardRetryStrategy {
206
+ var StandardRetryStrategy = class {
204
207
  constructor(maxAttempts) {
205
208
  this.maxAttempts = maxAttempts;
206
209
  this.mode = "standard" /* STANDARD */;
@@ -208,6 +211,9 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
208
211
  this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
209
212
  this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
210
213
  }
214
+ static {
215
+ __name(this, "StandardRetryStrategy");
216
+ }
211
217
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
212
218
  async acquireInitialRetryToken(retryTokenScope) {
213
219
  return createDefaultRetryToken({
@@ -264,11 +270,9 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
264
270
  return errorType === "THROTTLING" || errorType === "TRANSIENT";
265
271
  }
266
272
  };
267
- __name(_StandardRetryStrategy, "StandardRetryStrategy");
268
- var StandardRetryStrategy = _StandardRetryStrategy;
269
273
 
270
274
  // src/AdaptiveRetryStrategy.ts
271
- var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy {
275
+ var AdaptiveRetryStrategy = class {
272
276
  constructor(maxAttemptsProvider, options) {
273
277
  this.maxAttemptsProvider = maxAttemptsProvider;
274
278
  this.mode = "adaptive" /* ADAPTIVE */;
@@ -276,6 +280,9 @@ var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy {
276
280
  this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
277
281
  this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
278
282
  }
283
+ static {
284
+ __name(this, "AdaptiveRetryStrategy");
285
+ }
279
286
  async acquireInitialRetryToken(retryTokenScope) {
280
287
  await this.rateLimiter.getSendToken();
281
288
  return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
@@ -289,11 +296,12 @@ var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy {
289
296
  this.standardRetryStrategy.recordSuccess(token);
290
297
  }
291
298
  };
292
- __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy");
293
- var AdaptiveRetryStrategy = _AdaptiveRetryStrategy;
294
299
 
295
300
  // src/ConfiguredRetryStrategy.ts
296
- var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy {
301
+ var ConfiguredRetryStrategy = class extends StandardRetryStrategy {
302
+ static {
303
+ __name(this, "ConfiguredRetryStrategy");
304
+ }
297
305
  /**
298
306
  * @param maxAttempts - the maximum number of retry attempts allowed.
299
307
  * e.g., if set to 3, then 4 total requests are possible.
@@ -327,8 +335,6 @@ var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRe
327
335
  return token;
328
336
  }
329
337
  };
330
- __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy");
331
- var ConfiguredRetryStrategy = _ConfiguredRetryStrategy;
332
338
  // Annotate the CommonJS export names for ESM import in node:
333
339
 
334
340
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "3.0.11",
3
+ "version": "4.0.0",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/service-error-classification": "^3.0.11",
32
- "@smithy/types": "^3.7.2",
31
+ "@smithy/service-error-classification": "^4.0.0",
32
+ "@smithy/types": "^4.0.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^16.18.96",
36
+ "@types/node": "^18.11.9",
37
37
  "concurrently": "7.0.0",
38
38
  "downlevel-dts": "0.10.1",
39
39
  "rimraf": "3.0.2",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "types": "./dist-types/index.d.ts",
43
43
  "engines": {
44
- "node": ">=16.0.0"
44
+ "node": ">=18.0.0"
45
45
  },
46
46
  "typesVersions": {
47
47
  "<4.0": {
@@ -44,7 +44,10 @@ function transformFromString(str, encoding) {
44
44
  __name(transformFromString, "transformFromString");
45
45
 
46
46
  // src/blob/Uint8ArrayBlobAdapter.ts
47
- var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
47
+ var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
48
+ static {
49
+ __name(this, "Uint8ArrayBlobAdapter");
50
+ }
48
51
  /**
49
52
  * @param source - such as a string or Stream.
50
53
  * @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
@@ -73,8 +76,6 @@ var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
73
76
  return transformToString(this, encoding);
74
77
  }
75
78
  };
76
- __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter");
77
- var Uint8ArrayBlobAdapter = _Uint8ArrayBlobAdapter;
78
79
 
79
80
  // src/index.ts
80
81
  __reExport(src_exports, require("././getAwsChunkedEncodingStream"), module.exports);
@@ -45,7 +45,7 @@ const sdkStreamMixin = (stream) => {
45
45
  throw new Error("The stream has been consumed by other callbacks.");
46
46
  }
47
47
  if (typeof stream_1.Readable.toWeb !== "function") {
48
- throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");
48
+ throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
49
49
  }
50
50
  transformed = true;
51
51
  return stream_1.Readable.toWeb(stream);
@@ -41,7 +41,7 @@ export const sdkStreamMixin = (stream) => {
41
41
  throw new Error("The stream has been consumed by other callbacks.");
42
42
  }
43
43
  if (typeof Readable.toWeb !== "function") {
44
- throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");
44
+ throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
45
45
  }
46
46
  transformed = true;
47
47
  return Readable.toWeb(stream);
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import { Checksum, Encoder } from "@smithy/types";
4
5
  import { Duplex, Readable } from "stream";
5
6
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "3.3.4",
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 util-stream",
@@ -28,25 +28,25 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/fetch-http-handler": "^4.1.3",
32
- "@smithy/node-http-handler": "^3.3.3",
33
- "@smithy/types": "^3.7.2",
34
- "@smithy/util-base64": "^3.0.0",
35
- "@smithy/util-buffer-from": "^3.0.0",
36
- "@smithy/util-hex-encoding": "^3.0.0",
37
- "@smithy/util-utf8": "^3.0.0",
31
+ "@smithy/fetch-http-handler": "^5.0.0",
32
+ "@smithy/node-http-handler": "^4.0.0",
33
+ "@smithy/types": "^4.0.0",
34
+ "@smithy/util-base64": "^4.0.0",
35
+ "@smithy/util-buffer-from": "^4.0.0",
36
+ "@smithy/util-hex-encoding": "^4.0.0",
37
+ "@smithy/util-utf8": "^4.0.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@smithy/util-test": "^0.2.8",
42
- "@types/node": "^16.18.96",
42
+ "@types/node": "^18.11.9",
43
43
  "concurrently": "7.0.0",
44
44
  "downlevel-dts": "0.10.1",
45
45
  "rimraf": "3.0.2",
46
46
  "typedoc": "0.23.23"
47
47
  },
48
48
  "engines": {
49
- "node": ">=16.0.0"
49
+ "node": ">=18.0.0"
50
50
  },
51
51
  "typesVersions": {
52
52
  "<4.0": {