@cdk8s/awscdk-resolver 0.0.225 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "3.0.13",
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 config-resolver",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/node-config-provider": "^3.1.12",
28
- "@smithy/types": "^3.7.2",
29
- "@smithy/util-config-provider": "^3.0.0",
30
- "@smithy/util-middleware": "^3.0.11",
27
+ "@smithy/node-config-provider": "^4.0.0",
28
+ "@smithy/types": "^4.0.0",
29
+ "@smithy/util-config-provider": "^4.0.0",
30
+ "@smithy/util-middleware": "^4.0.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -37,7 +37,7 @@
37
37
  "typedoc": "0.23.23"
38
38
  },
39
39
  "engines": {
40
- "node": ">=16.0.0"
40
+ "node": ">=18.0.0"
41
41
  },
42
42
  "typesVersions": {
43
43
  "<4.0": {
@@ -60,7 +60,6 @@ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
60
60
  }
61
61
  __name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap");
62
62
  var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (next, context) => async (args) => {
63
- var _a;
64
63
  const options = config.httpAuthSchemeProvider(
65
64
  await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)
66
65
  );
@@ -78,7 +77,7 @@ var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (ne
78
77
  failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
79
78
  continue;
80
79
  }
81
- const { identityProperties = {}, signingProperties = {} } = ((_a = option.propertiesExtractor) == null ? void 0 : _a.call(option, config, context)) || {};
80
+ const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
82
81
  option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
83
82
  option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
84
83
  smithyContext.selectedHttpAuthScheme = {
@@ -254,7 +253,7 @@ function setFeature(context, feature, value) {
254
253
  __name(setFeature, "setFeature");
255
254
 
256
255
  // src/util-identity-and-auth/DefaultIdentityProviderConfig.ts
257
- var _DefaultIdentityProviderConfig = class _DefaultIdentityProviderConfig {
256
+ var DefaultIdentityProviderConfig = class {
258
257
  /**
259
258
  * Creates an IdentityProviderConfig with a record of scheme IDs to identity providers.
260
259
  *
@@ -268,17 +267,21 @@ var _DefaultIdentityProviderConfig = class _DefaultIdentityProviderConfig {
268
267
  }
269
268
  }
270
269
  }
270
+ static {
271
+ __name(this, "DefaultIdentityProviderConfig");
272
+ }
271
273
  getIdentityProvider(schemeId) {
272
274
  return this.authSchemes.get(schemeId);
273
275
  }
274
276
  };
275
- __name(_DefaultIdentityProviderConfig, "DefaultIdentityProviderConfig");
276
- var DefaultIdentityProviderConfig = _DefaultIdentityProviderConfig;
277
277
 
278
278
  // src/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.ts
279
279
 
280
280
 
281
- var _HttpApiKeyAuthSigner = class _HttpApiKeyAuthSigner {
281
+ var HttpApiKeyAuthSigner = class {
282
+ static {
283
+ __name(this, "HttpApiKeyAuthSigner");
284
+ }
282
285
  async sign(httpRequest, identity, signingProperties) {
283
286
  if (!signingProperties) {
284
287
  throw new Error(
@@ -307,12 +310,13 @@ var _HttpApiKeyAuthSigner = class _HttpApiKeyAuthSigner {
307
310
  return clonedRequest;
308
311
  }
309
312
  };
310
- __name(_HttpApiKeyAuthSigner, "HttpApiKeyAuthSigner");
311
- var HttpApiKeyAuthSigner = _HttpApiKeyAuthSigner;
312
313
 
313
314
  // src/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.ts
314
315
 
315
- var _HttpBearerAuthSigner = class _HttpBearerAuthSigner {
316
+ var HttpBearerAuthSigner = class {
317
+ static {
318
+ __name(this, "HttpBearerAuthSigner");
319
+ }
316
320
  async sign(httpRequest, identity, signingProperties) {
317
321
  const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
318
322
  if (!identity.token) {
@@ -322,17 +326,16 @@ var _HttpBearerAuthSigner = class _HttpBearerAuthSigner {
322
326
  return clonedRequest;
323
327
  }
324
328
  };
325
- __name(_HttpBearerAuthSigner, "HttpBearerAuthSigner");
326
- var HttpBearerAuthSigner = _HttpBearerAuthSigner;
327
329
 
328
330
  // src/util-identity-and-auth/httpAuthSchemes/noAuth.ts
329
- var _NoAuthSigner = class _NoAuthSigner {
331
+ var NoAuthSigner = class {
332
+ static {
333
+ __name(this, "NoAuthSigner");
334
+ }
330
335
  async sign(httpRequest, identity, signingProperties) {
331
336
  return httpRequest;
332
337
  }
333
338
  };
334
- __name(_NoAuthSigner, "NoAuthSigner");
335
- var NoAuthSigner = _NoAuthSigner;
336
339
 
337
340
  // src/util-identity-and-auth/memoizeIdentityProvider.ts
338
341
  var createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs, "createIsIdentityExpiredFunction");
@@ -363,14 +366,14 @@ var memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requi
363
366
  }, "coalesceProvider");
364
367
  if (isExpired === void 0) {
365
368
  return async (options) => {
366
- if (!hasResult || (options == null ? void 0 : options.forceRefresh)) {
369
+ if (!hasResult || options?.forceRefresh) {
367
370
  resolved = await coalesceProvider(options);
368
371
  }
369
372
  return resolved;
370
373
  };
371
374
  }
372
375
  return async (options) => {
373
- if (!hasResult || (options == null ? void 0 : options.forceRefresh)) {
376
+ if (!hasResult || options?.forceRefresh) {
374
377
  resolved = await coalesceProvider(options);
375
378
  }
376
379
  if (isConstant) {
@@ -164,8 +164,7 @@ function decode(at, to) {
164
164
  }
165
165
  }
166
166
  function bytesToUtf8(bytes, at, to) {
167
- var _a;
168
- if (USE_BUFFER && ((_a = bytes.constructor) == null ? void 0 : _a.name) === "Buffer") {
167
+ if (USE_BUFFER && bytes.constructor?.name === "Buffer") {
169
168
  return bytes.toString("utf-8", at, to);
170
169
  }
171
170
  if (textDecoder) {
@@ -492,7 +491,6 @@ function encodeHeader(major, value) {
492
491
  }
493
492
  }
494
493
  function encode(_input) {
495
- var _a;
496
494
  const encodeStack = [_input];
497
495
  while (encodeStack.length) {
498
496
  const input = encodeStack.pop();
@@ -602,7 +600,7 @@ function encode(_input) {
602
600
  encodeHeader(majorMap, keys.length);
603
601
  continue;
604
602
  }
605
- throw new Error(`data type ${((_a = input == null ? void 0 : input.constructor) == null ? void 0 : _a.name) ?? typeof input} not compatible for encoding.`);
603
+ throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`);
606
604
  }
607
605
  }
608
606
 
@@ -112,7 +112,7 @@ var RequestBuilder = class {
112
112
  */
113
113
  bp(uriLabel) {
114
114
  this.resolvePathStack.push((basePath) => {
115
- this.path = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
115
+ this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
116
116
  });
117
117
  return this;
118
118
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  export type CborItemType = undefined | boolean | number | bigint | [CborUnstructuredByteStringType, Uint64] | string | CborTagType;
3
4
  export type CborTagType = {
4
5
  tag: Uint64 | number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "2.5.7",
3
+ "version": "3.0.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -54,17 +54,17 @@
54
54
  },
55
55
  "license": "Apache-2.0",
56
56
  "dependencies": {
57
- "@smithy/middleware-serde": "^3.0.11",
58
- "@smithy/protocol-http": "^4.1.8",
59
- "@smithy/types": "^3.7.2",
60
- "@smithy/util-body-length-browser": "^3.0.0",
61
- "@smithy/util-middleware": "^3.0.11",
62
- "@smithy/util-stream": "^3.3.4",
63
- "@smithy/util-utf8": "^3.0.0",
57
+ "@smithy/middleware-serde": "^4.0.0",
58
+ "@smithy/protocol-http": "^5.0.0",
59
+ "@smithy/types": "^4.0.0",
60
+ "@smithy/util-body-length-browser": "^4.0.0",
61
+ "@smithy/util-middleware": "^4.0.0",
62
+ "@smithy/util-stream": "^4.0.0",
63
+ "@smithy/util-utf8": "^4.0.0",
64
64
  "tslib": "^2.6.2"
65
65
  },
66
66
  "engines": {
67
- "node": ">=16.0.0"
67
+ "node": ">=18.0.0"
68
68
  },
69
69
  "typesVersions": {
70
70
  "<4.0": {
@@ -87,7 +87,7 @@
87
87
  "directory": "packages/core"
88
88
  },
89
89
  "devDependencies": {
90
- "@types/node": "^16.18.96",
90
+ "@types/node": "^18.11.9",
91
91
  "concurrently": "7.0.0",
92
92
  "downlevel-dts": "0.10.1",
93
93
  "json-bigint": "^1.0.0",
@@ -44,13 +44,12 @@ var import_buffer = require("buffer");
44
44
  var import_http = require("http");
45
45
  function httpRequest(options) {
46
46
  return new Promise((resolve, reject) => {
47
- var _a;
48
47
  const req = (0, import_http.request)({
49
48
  method: "GET",
50
49
  ...options,
51
50
  // Node.js http module doesn't accept hostname with square brackets
52
51
  // Refs: https://github.com/nodejs/node/issues/39738
53
- hostname: (_a = options.hostname) == null ? void 0 : _a.replace(/^\[(.+)\]$/, "$1")
52
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
54
53
  });
55
54
  req.on("error", (err) => {
56
55
  reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
@@ -189,16 +188,17 @@ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger }) => {
189
188
 
190
189
  // src/error/InstanceMetadataV1FallbackError.ts
191
190
 
192
- var _InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider.CredentialsProviderError {
191
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider.CredentialsProviderError {
193
192
  constructor(message, tryNextLink = true) {
194
193
  super(message, tryNextLink);
195
194
  this.tryNextLink = tryNextLink;
196
195
  this.name = "InstanceMetadataV1FallbackError";
197
196
  Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
198
197
  }
198
+ static {
199
+ __name(this, "InstanceMetadataV1FallbackError");
200
+ }
199
201
  };
200
- __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError");
201
- var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError;
202
202
 
203
203
  // src/utils/getInstanceMetadataEndpoint.ts
204
204
  var import_node_config_provider = require("@smithy/node-config-provider");
@@ -272,7 +272,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL
272
272
 
273
273
  // src/utils/staticStabilityProvider.ts
274
274
  var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
275
- const logger = (options == null ? void 0 : options.logger) || console;
275
+ const logger = options?.logger || console;
276
276
  let pastCredentials;
277
277
  return async () => {
278
278
  let credentials;
@@ -306,8 +306,7 @@ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
306
306
  const { logger, profile } = init;
307
307
  const { timeout, maxRetries } = providerConfigFromInit(init);
308
308
  const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
309
- var _a;
310
- const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) == null ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null;
309
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
311
310
  if (isImdsV1Fallback) {
312
311
  let fallbackBlockedFromProfile = false;
313
312
  let fallbackBlockedFromProcessEnv = false;
@@ -378,21 +377,21 @@ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
378
377
  return async () => {
379
378
  const endpoint = await getInstanceMetadataEndpoint();
380
379
  if (disableFetchToken) {
381
- logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
380
+ logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
382
381
  return getCredentials(maxRetries, { ...endpoint, timeout });
383
382
  } else {
384
383
  let token;
385
384
  try {
386
385
  token = (await getMetadataToken({ ...endpoint, timeout })).toString();
387
386
  } catch (error) {
388
- if ((error == null ? void 0 : error.statusCode) === 400) {
387
+ if (error?.statusCode === 400) {
389
388
  throw Object.assign(error, {
390
389
  message: "EC2 Metadata token request returned error"
391
390
  });
392
391
  } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
393
392
  disableFetchToken = true;
394
393
  }
395
- logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
394
+ logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
396
395
  return getCredentials(maxRetries, { ...endpoint, timeout });
397
396
  }
398
397
  return getCredentials(maxRetries, {
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import { Buffer } from "buffer";
4
5
  import { RequestOptions } from "http";
5
6
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "3.2.8",
3
+ "version": "4.0.0",
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",
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/node-config-provider": "^3.1.12",
31
- "@smithy/property-provider": "^3.1.11",
32
- "@smithy/types": "^3.7.2",
33
- "@smithy/url-parser": "^3.0.11",
30
+ "@smithy/node-config-provider": "^4.0.0",
31
+ "@smithy/property-provider": "^4.0.0",
32
+ "@smithy/types": "^4.0.0",
33
+ "@smithy/url-parser": "^4.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "^16.18.96",
37
+ "@types/node": "^18.11.9",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
40
  "rimraf": "3.0.2",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "types": "./dist-types/index.d.ts",
44
44
  "engines": {
45
- "node": ">=16.0.0"
45
+ "node": ">=18.0.0"
46
46
  },
47
47
  "typesVersions": {
48
48
  "<4.0": {
@@ -54,13 +54,16 @@ __name(requestTimeout, "requestTimeout");
54
54
  var keepAliveSupport = {
55
55
  supported: void 0
56
56
  };
57
- var _FetchHttpHandler = class _FetchHttpHandler {
57
+ var FetchHttpHandler = class _FetchHttpHandler {
58
+ static {
59
+ __name(this, "FetchHttpHandler");
60
+ }
58
61
  /**
59
62
  * @returns the input if it is an HttpHandler of any class,
60
63
  * or instantiates a new instance of this handler.
61
64
  */
62
65
  static create(instanceOrOptions) {
63
- if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") {
66
+ if (typeof instanceOrOptions?.handle === "function") {
64
67
  return instanceOrOptions;
65
68
  }
66
69
  return new _FetchHttpHandler(instanceOrOptions);
@@ -81,14 +84,13 @@ var _FetchHttpHandler = class _FetchHttpHandler {
81
84
  destroy() {
82
85
  }
83
86
  async handle(request, { abortSignal } = {}) {
84
- var _a;
85
87
  if (!this.config) {
86
88
  this.config = await this.configProvider;
87
89
  }
88
90
  const requestTimeoutInMs = this.config.requestTimeout;
89
91
  const keepAlive = this.config.keepAlive === true;
90
92
  const credentials = this.config.credentials;
91
- if (abortSignal == null ? void 0 : abortSignal.aborted) {
93
+ if (abortSignal?.aborted) {
92
94
  const abortError = new Error("Request aborted");
93
95
  abortError.name = "AbortError";
94
96
  return Promise.reject(abortError);
@@ -116,7 +118,7 @@ var _FetchHttpHandler = class _FetchHttpHandler {
116
118
  method,
117
119
  credentials
118
120
  };
119
- if ((_a = this.config) == null ? void 0 : _a.cache) {
121
+ if (this.config?.cache) {
120
122
  requestOptions.cache = this.config.cache;
121
123
  }
122
124
  if (body) {
@@ -194,14 +196,11 @@ var _FetchHttpHandler = class _FetchHttpHandler {
194
196
  return this.config ?? {};
195
197
  }
196
198
  };
197
- __name(_FetchHttpHandler, "FetchHttpHandler");
198
- var FetchHttpHandler = _FetchHttpHandler;
199
199
 
200
200
  // src/stream-collector.ts
201
201
  var import_util_base64 = require("@smithy/util-base64");
202
202
  var streamCollector = /* @__PURE__ */ __name(async (stream) => {
203
- var _a;
204
- if (typeof Blob === "function" && stream instanceof Blob || ((_a = stream.constructor) == null ? void 0 : _a.name) === "Blob") {
203
+ if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
205
204
  if (Blob.prototype.arrayBuffer !== void 0) {
206
205
  return new Uint8Array(await stream.arrayBuffer());
207
206
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "4.1.3",
3
+ "version": "5.0.0",
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'",
@@ -27,14 +27,14 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/protocol-http": "^4.1.8",
31
- "@smithy/querystring-builder": "^3.0.11",
32
- "@smithy/types": "^3.7.2",
33
- "@smithy/util-base64": "^3.0.0",
30
+ "@smithy/protocol-http": "^5.0.0",
31
+ "@smithy/querystring-builder": "^4.0.0",
32
+ "@smithy/types": "^4.0.0",
33
+ "@smithy/util-base64": "^4.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/abort-controller": "^3.1.9",
37
+ "@smithy/abort-controller": "^4.0.0",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
40
  "rimraf": "3.0.2",
@@ -61,5 +61,8 @@
61
61
  },
62
62
  "publishConfig": {
63
63
  "directory": ".release/package"
64
+ },
65
+ "engines": {
66
+ "node": ">=18.0.0"
64
67
  }
65
68
  }
@@ -27,7 +27,10 @@ var import_util_buffer_from = require("@smithy/util-buffer-from");
27
27
  var import_util_utf8 = require("@smithy/util-utf8");
28
28
  var import_buffer = require("buffer");
29
29
  var import_crypto = require("crypto");
30
- var _Hash = class _Hash {
30
+ var Hash = class {
31
+ static {
32
+ __name(this, "Hash");
33
+ }
31
34
  constructor(algorithmIdentifier, secret) {
32
35
  this.algorithmIdentifier = algorithmIdentifier;
33
36
  this.secret = secret;
@@ -43,8 +46,6 @@ var _Hash = class _Hash {
43
46
  this.hash = this.secret ? (0, import_crypto.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto.createHash)(this.algorithmIdentifier);
44
47
  }
45
48
  };
46
- __name(_Hash, "Hash");
47
- var Hash = _Hash;
48
49
  function castSourceData(toCast, encoding) {
49
50
  if (import_buffer.Buffer.isBuffer(toCast)) {
50
51
  return toCast;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
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 hash-node",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "devDependencies": {
26
- "@types/node": "^16.18.96",
26
+ "@types/node": "^18.11.9",
27
27
  "concurrently": "7.0.0",
28
28
  "downlevel-dts": "0.10.1",
29
29
  "hash-test-vectors": "^1.3.2",
@@ -31,13 +31,13 @@
31
31
  "typedoc": "0.23.23"
32
32
  },
33
33
  "dependencies": {
34
- "@smithy/types": "^3.7.2",
35
- "@smithy/util-buffer-from": "^3.0.0",
36
- "@smithy/util-utf8": "^3.0.0",
34
+ "@smithy/types": "^4.0.0",
35
+ "@smithy/util-buffer-from": "^4.0.0",
36
+ "@smithy/util-utf8": "^4.0.0",
37
37
  "tslib": "^2.6.2"
38
38
  },
39
39
  "engines": {
40
- "node": ">=16.0.0"
40
+ "node": ">=18.0.0"
41
41
  },
42
42
  "typesVersions": {
43
43
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
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 invalid-dependency",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^3.7.2",
26
+ "@smithy/types": "^4.0.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "typesVersions": {
@@ -53,5 +53,8 @@
53
53
  },
54
54
  "publishConfig": {
55
55
  "directory": ".release/package"
56
+ },
57
+ "engines": {
58
+ "node": ">=18.0.0"
56
59
  }
57
60
  }
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@smithy/is-array-buffer",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Provides a function for detecting if an argument is an ArrayBuffer",
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 is-array-buffer",
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
  "tslib": "^2.6.2"
27
28
  },
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/middleware-content-length",
3
- "version": "3.0.13",
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-content-length",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/protocol-http": "^4.1.8",
28
- "@smithy/types": "^3.7.2",
27
+ "@smithy/protocol-http": "^5.0.0",
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": {
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(src_exports);
32
32
 
33
33
  // src/service-customizations/s3.ts
34
34
  var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => {
35
- const bucket = (endpointParams == null ? void 0 : endpointParams.Bucket) || "";
35
+ const bucket = endpointParams?.Bucket || "";
36
36
  if (typeof endpointParams.Bucket === "string") {
37
37
  endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
38
38
  }
@@ -75,14 +75,14 @@ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndp
75
75
  if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
76
76
  return async () => {
77
77
  const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
78
- const configValue = (credentials == null ? void 0 : credentials.credentialScope) ?? (credentials == null ? void 0 : credentials.CredentialScope);
78
+ const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;
79
79
  return configValue;
80
80
  };
81
81
  }
82
82
  if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
83
83
  return async () => {
84
84
  const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
85
- const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId);
85
+ const configValue = credentials?.accountId ?? credentials?.AccountId;
86
86
  return configValue;
87
87
  };
88
88
  }
@@ -140,9 +140,8 @@ var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, in
140
140
  return endpoint;
141
141
  }, "getEndpointFromInstructions");
142
142
  var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => {
143
- var _a;
144
143
  const endpointParams = {};
145
- const instructions = ((_a = instructionsSupplier == null ? void 0 : instructionsSupplier.getEndpointParameterInstructions) == null ? void 0 : _a.call(instructionsSupplier)) || {};
144
+ const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
146
145
  for (const [name, instruction] of Object.entries(instructions)) {
147
146
  switch (instruction.type) {
148
147
  case "staticContextParams":
@@ -179,7 +178,6 @@ var endpointMiddleware = /* @__PURE__ */ __name(({
179
178
  instructions
180
179
  }) => {
181
180
  return (next, context) => async (args) => {
182
- var _a, _b, _c;
183
181
  if (config.endpoint) {
184
182
  (0, import_core.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
185
183
  }
@@ -194,13 +192,13 @@ var endpointMiddleware = /* @__PURE__ */ __name(({
194
192
  context
195
193
  );
196
194
  context.endpointV2 = endpoint;
197
- context.authSchemes = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes;
198
- const authScheme = (_b = context.authSchemes) == null ? void 0 : _b[0];
195
+ context.authSchemes = endpoint.properties?.authSchemes;
196
+ const authScheme = context.authSchemes?.[0];
199
197
  if (authScheme) {
200
198
  context["signing_region"] = authScheme.signingRegion;
201
199
  context["signing_service"] = authScheme.signingName;
202
200
  const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
203
- const httpAuthOption = (_c = smithyContext == null ? void 0 : smithyContext.selectedHttpAuthScheme) == null ? void 0 : _c.httpAuthOption;
201
+ const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
204
202
  if (httpAuthOption) {
205
203
  httpAuthOption.signingProperties = Object.assign(
206
204
  httpAuthOption.signingProperties || {},