@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
@@ -45,14 +45,13 @@ function resolveUserAgentConfig(input) {
45
45
  ...input,
46
46
  customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent,
47
47
  userAgentAppId: async () => {
48
- var _a, _b;
49
48
  const appId = await normalizedAppIdProvider();
50
49
  if (!isValidUserAgentAppId(appId)) {
51
- const logger = ((_b = (_a = input.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger" || !input.logger ? console : input.logger;
50
+ const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
52
51
  if (typeof appId !== "string") {
53
- logger == null ? void 0 : logger.warn("userAgentAppId must be a string or undefined.");
52
+ logger?.warn("userAgentAppId must be a string or undefined.");
54
53
  } else if (appId.length > 50) {
55
- logger == null ? void 0 : logger.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
54
+ logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
56
55
  }
57
56
  }
58
57
  return appId;
@@ -69,15 +68,14 @@ var import_protocol_http = require("@smithy/protocol-http");
69
68
  var import_core2 = require("@aws-sdk/core");
70
69
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
71
70
  async function checkFeatures(context, config, args) {
72
- var _a, _b, _c, _d, _e, _f, _g;
73
71
  const request = args.request;
74
- if (((_a = request == null ? void 0 : request.headers) == null ? void 0 : _a["smithy-protocol"]) === "rpc-v2-cbor") {
72
+ if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
75
73
  (0, import_core2.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M");
76
74
  }
77
75
  if (typeof config.retryStrategy === "function") {
78
76
  const retryStrategy = await config.retryStrategy();
79
77
  if (typeof retryStrategy.acquireInitialRetryToken === "function") {
80
- if ((_c = (_b = retryStrategy.constructor) == null ? void 0 : _b.name) == null ? void 0 : _c.includes("Adaptive")) {
78
+ if (retryStrategy.constructor?.name?.includes("Adaptive")) {
81
79
  (0, import_core2.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F");
82
80
  } else {
83
81
  (0, import_core2.setFeature)(context, "RETRY_MODE_STANDARD", "E");
@@ -88,10 +86,10 @@ async function checkFeatures(context, config, args) {
88
86
  }
89
87
  if (typeof config.accountIdEndpointMode === "function") {
90
88
  const endpointV2 = context.endpointV2;
91
- if (String((_d = endpointV2 == null ? void 0 : endpointV2.url) == null ? void 0 : _d.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
89
+ if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
92
90
  (0, import_core2.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O");
93
91
  }
94
- switch (await ((_e = config.accountIdEndpointMode) == null ? void 0 : _e.call(config))) {
92
+ switch (await config.accountIdEndpointMode?.()) {
95
93
  case "disabled":
96
94
  (0, import_core2.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
97
95
  break;
@@ -103,8 +101,8 @@ async function checkFeatures(context, config, args) {
103
101
  break;
104
102
  }
105
103
  }
106
- const identity = (_g = (_f = context.__smithy_context) == null ? void 0 : _f.selectedHttpAuthScheme) == null ? void 0 : _g.identity;
107
- if (identity == null ? void 0 : identity.$source) {
104
+ const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
105
+ if (identity?.$source) {
108
106
  const credentials = identity;
109
107
  if (credentials.accountId) {
110
108
  (0, import_core2.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
@@ -147,22 +145,21 @@ __name(encodeFeatures, "encodeFeatures");
147
145
 
148
146
  // src/user-agent-middleware.ts
149
147
  var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
150
- var _a, _b, _c, _d;
151
148
  const { request } = args;
152
149
  if (!import_protocol_http.HttpRequest.isInstance(request)) {
153
150
  return next(args);
154
151
  }
155
152
  const { headers } = request;
156
- const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || [];
153
+ const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
157
154
  const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
158
155
  await checkFeatures(context, options, args);
159
156
  const awsContext = context;
160
157
  defaultUserAgent.push(
161
158
  `m/${encodeFeatures(
162
- Object.assign({}, (_b = context.__smithy_context) == null ? void 0 : _b.features, (_c = awsContext.__aws_sdk_context) == null ? void 0 : _c.features)
159
+ Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features)
163
160
  )}`
164
161
  );
165
- const customUserAgent = ((_d = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _d.map(escapeUserAgent)) || [];
162
+ const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
166
163
  const appId = await options.userAgentAppId();
167
164
  if (appId) {
168
165
  defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
@@ -187,9 +184,8 @@ var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) =>
187
184
  });
188
185
  }, "userAgentMiddleware");
189
186
  var escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => {
190
- var _a;
191
187
  const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
192
- const version = (_a = userAgentPair[1]) == null ? void 0 : _a.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
188
+ const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
193
189
  const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
194
190
  const prefix = name.substring(0, prefixSeparatorIndex);
195
191
  let uaName = name.substring(prefixSeparatorIndex + 1);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.721.0",
3
+ "version": "3.723.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "3.716.0",
28
- "@aws-sdk/types": "3.714.0",
29
- "@aws-sdk/util-endpoints": "3.714.0",
30
- "@smithy/core": "^2.5.5",
31
- "@smithy/protocol-http": "^4.1.8",
32
- "@smithy/types": "^3.7.2",
27
+ "@aws-sdk/core": "3.723.0",
28
+ "@aws-sdk/types": "3.723.0",
29
+ "@aws-sdk/util-endpoints": "3.723.0",
30
+ "@smithy/core": "^3.0.0",
31
+ "@smithy/protocol-http": "^5.0.0",
32
+ "@smithy/types": "^4.0.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -37,10 +37,10 @@
37
37
  "concurrently": "7.0.0",
38
38
  "downlevel-dts": "0.10.1",
39
39
  "rimraf": "3.0.2",
40
- "typescript": "~4.9.5"
40
+ "typescript": "~5.2.2"
41
41
  },
42
42
  "engines": {
43
- "node": ">=16.0.0"
43
+ "node": ">=18.0.0"
44
44
  },
45
45
  "typesVersions": {
46
46
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.714.0",
3
+ "version": "3.723.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.714.0",
26
- "@smithy/node-config-provider": "^3.1.12",
27
- "@smithy/types": "^3.7.2",
28
- "@smithy/util-config-provider": "^3.0.0",
29
- "@smithy/util-middleware": "^3.0.11",
25
+ "@aws-sdk/types": "3.723.0",
26
+ "@smithy/node-config-provider": "^4.0.0",
27
+ "@smithy/types": "^4.0.0",
28
+ "@smithy/util-config-provider": "^4.0.0",
29
+ "@smithy/util-middleware": "^4.0.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -35,10 +35,10 @@
35
35
  "downlevel-dts": "0.10.1",
36
36
  "jest": "28.1.1",
37
37
  "rimraf": "3.0.2",
38
- "typescript": "~4.9.5"
38
+ "typescript": "~5.2.2"
39
39
  },
40
40
  "engines": {
41
- "node": ">=16.0.0"
41
+ "node": ">=18.0.0"
42
42
  },
43
43
  "typesVersions": {
44
44
  "<4.0": {
@@ -47,12 +47,11 @@ var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the
47
47
 
48
48
  // src/getSsoOidcClient.ts
49
49
  var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => {
50
- var _a, _b, _c;
51
50
  const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/client-sso-oidc")));
52
51
  const ssoOidcClient = new SSOOIDCClient(
53
52
  Object.assign({}, init.clientConfig ?? {}, {
54
- region: ssoRegion ?? ((_a = init.clientConfig) == null ? void 0 : _a.region),
55
- logger: ((_b = init.clientConfig) == null ? void 0 : _b.logger) ?? ((_c = init.parentClientConfig) == null ? void 0 : _c.logger)
53
+ region: ssoRegion ?? init.clientConfig?.region,
54
+ logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
56
55
  })
57
56
  );
58
57
  return ssoOidcClient;
@@ -104,7 +103,6 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
104
103
  // src/fromSso.ts
105
104
  var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
106
105
  var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
107
- var _a;
108
106
  const init = {
109
107
  ..._init,
110
108
  parentClientConfig: {
@@ -112,10 +110,10 @@ var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
112
110
  ..._init.parentClientConfig
113
111
  }
114
112
  };
115
- (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso");
113
+ init.logger?.debug("@aws-sdk/token-providers - fromSso");
116
114
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
117
115
  const profileName = (0, import_shared_ini_file_loader.getProfileName)({
118
- profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
116
+ profile: init.profile ?? callerClientConfig?.profile
119
117
  });
120
118
  const profile = profiles[profileName];
121
119
  if (!profile) {
@@ -193,7 +191,7 @@ var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
193
191
  // src/fromStatic.ts
194
192
 
195
193
  var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => {
196
- logger == null ? void 0 : logger.debug("@aws-sdk/token-providers - fromStatic");
194
+ logger?.debug("@aws-sdk/token-providers - fromStatic");
197
195
  if (!token || !token.token) {
198
196
  throw new import_property_provider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
199
197
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.721.0",
3
+ "version": "3.723.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,26 +27,26 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/types": "3.714.0",
31
- "@smithy/property-provider": "^3.1.11",
32
- "@smithy/shared-ini-file-loader": "^3.1.12",
33
- "@smithy/types": "^3.7.2",
30
+ "@aws-sdk/types": "3.723.0",
31
+ "@smithy/property-provider": "^4.0.0",
32
+ "@smithy/shared-ini-file-loader": "^4.0.0",
33
+ "@smithy/types": "^4.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tsconfig/recommended": "1.0.1",
38
- "@types/node": "^16.18.96",
38
+ "@types/node": "^18.19.69",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
42
- "typescript": "~4.9.5"
42
+ "typescript": "~5.2.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "@aws-sdk/client-sso-oidc": "^3.721.0"
45
+ "@aws-sdk/client-sso-oidc": "^3.723.0"
46
46
  },
47
47
  "types": "./dist-types/index.d.ts",
48
48
  "engines": {
49
- "node": ">=16.0.0"
49
+ "node": ">=18.0.0"
50
50
  },
51
51
  "typesVersions": {
52
52
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.714.0",
3
+ "version": "3.723.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "engines": {
25
- "node": ">=16.0.0"
25
+ "node": ">=18.0.0"
26
26
  },
27
27
  "typesVersions": {
28
28
  "<4.0": {
@@ -41,7 +41,7 @@
41
41
  "directory": "packages/types"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^3.7.2",
44
+ "@smithy/types": "^4.0.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -49,7 +49,7 @@
49
49
  "concurrently": "7.0.0",
50
50
  "downlevel-dts": "0.10.1",
51
51
  "rimraf": "3.0.2",
52
- "typescript": "~4.9.5"
52
+ "typescript": "~5.2.2"
53
53
  },
54
54
  "browser": {},
55
55
  "react-native": {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.714.0",
3
+ "version": "3.723.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.714.0",
28
- "@smithy/types": "^3.7.2",
29
- "@smithy/util-endpoints": "^2.1.7",
27
+ "@aws-sdk/types": "3.723.0",
28
+ "@smithy/types": "^4.0.0",
29
+ "@smithy/util-endpoints": "^3.0.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
33
- "node": ">=16.0.0"
33
+ "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
36
  "<4.0": {
@@ -53,6 +53,6 @@
53
53
  "concurrently": "7.0.0",
54
54
  "downlevel-dts": "0.10.1",
55
55
  "rimraf": "3.0.2",
56
- "typescript": "~4.9.5"
56
+ "typescript": "~5.2.2"
57
57
  }
58
58
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.693.0",
3
+ "version": "3.723.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-locate-window",
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tsconfig/recommended": "1.0.1",
25
- "@types/node": "^16.18.96",
25
+ "@types/node": "^18.19.69",
26
26
  "concurrently": "7.0.0",
27
27
  "downlevel-dts": "0.10.1",
28
28
  "rimraf": "3.0.2",
29
- "typescript": "~4.9.5"
29
+ "typescript": "~5.2.2"
30
30
  },
31
31
  "main": "./dist-cjs/index.js",
32
32
  "module": "./dist-es/index.js",
33
33
  "types": "./dist-types/index.d.ts",
34
34
  "engines": {
35
- "node": ">=16.0.0"
35
+ "node": ">=18.0.0"
36
36
  },
37
37
  "typesVersions": {
38
38
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.714.0",
3
+ "version": "3.723.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
@@ -23,8 +23,8 @@
23
23
  "license": "Apache-2.0",
24
24
  "react-native": "dist-es/index.native.js",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "3.714.0",
27
- "@smithy/types": "^3.7.2",
26
+ "@aws-sdk/types": "3.723.0",
27
+ "@smithy/types": "^4.0.0",
28
28
  "bowser": "^2.11.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
@@ -33,7 +33,7 @@
33
33
  "concurrently": "7.0.0",
34
34
  "downlevel-dts": "0.10.1",
35
35
  "rimraf": "3.0.2",
36
- "typescript": "~4.9.5"
36
+ "typescript": "~5.2.2"
37
37
  },
38
38
  "typesVersions": {
39
39
  "<4.0": {
@@ -50,7 +50,6 @@ var isCrtAvailable = /* @__PURE__ */ __name(() => {
50
50
  // src/defaultUserAgent.ts
51
51
  var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => {
52
52
  return async (config) => {
53
- var _a;
54
53
  const sections = [
55
54
  // sdk-metadata
56
55
  ["aws-sdk-js", clientVersion],
@@ -73,7 +72,7 @@ var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, client
73
72
  if (import_process.env.AWS_EXECUTION_ENV) {
74
73
  sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
75
74
  }
76
- const appId = await ((_a = config == null ? void 0 : config.userAgentAppId) == null ? void 0 : _a.call(config));
75
+ const appId = await config?.userAgentAppId?.();
77
76
  const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
78
77
  return resolvedUserAgent;
79
78
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.721.0",
3
+ "version": "3.723.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -21,19 +21,19 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.721.0",
25
- "@aws-sdk/types": "3.714.0",
26
- "@smithy/node-config-provider": "^3.1.12",
27
- "@smithy/types": "^3.7.2",
24
+ "@aws-sdk/middleware-user-agent": "3.723.0",
25
+ "@aws-sdk/types": "3.723.0",
26
+ "@smithy/node-config-provider": "^4.0.0",
27
+ "@smithy/types": "^4.0.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@tsconfig/recommended": "1.0.1",
32
- "@types/node": "^16.18.96",
32
+ "@types/node": "^18.19.69",
33
33
  "concurrently": "7.0.0",
34
34
  "downlevel-dts": "0.10.1",
35
35
  "rimraf": "3.0.2",
36
- "typescript": "~4.9.5"
36
+ "typescript": "~5.2.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "aws-crt": ">=1.0.0"
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "engines": {
47
- "node": ">=16.0.0"
47
+ "node": ">=18.0.0"
48
48
  },
49
49
  "typesVersions": {
50
50
  "<4.0": {
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(src_exports);
33
33
 
34
34
  // src/AbortSignal.ts
35
35
  var import_types = require("@smithy/types");
36
- var _AbortSignal = class _AbortSignal {
36
+ var AbortSignal = class {
37
37
  constructor() {
38
38
  this.onabort = null;
39
39
  this._aborted = false;
@@ -42,6 +42,9 @@ var _AbortSignal = class _AbortSignal {
42
42
  writable: true
43
43
  });
44
44
  }
45
+ static {
46
+ __name(this, "AbortSignal");
47
+ }
45
48
  /**
46
49
  * Whether the associated operation has already been cancelled.
47
50
  */
@@ -59,20 +62,19 @@ var _AbortSignal = class _AbortSignal {
59
62
  }
60
63
  }
61
64
  };
62
- __name(_AbortSignal, "AbortSignal");
63
- var AbortSignal = _AbortSignal;
64
65
 
65
66
  // src/AbortController.ts
66
- var _AbortController = class _AbortController {
67
+ var AbortController = class {
67
68
  constructor() {
68
69
  this.signal = new AbortSignal();
69
70
  }
71
+ static {
72
+ __name(this, "AbortController");
73
+ }
70
74
  abort() {
71
75
  this.signal.abort();
72
76
  }
73
77
  };
74
- __name(_AbortController, "AbortController");
75
- var AbortController = _AbortController;
76
78
  // Annotate the CommonJS export names for ESM import in node:
77
79
 
78
80
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "3.1.9",
3
+ "version": "4.0.0",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@smithy/types": "^3.7.2",
28
+ "@smithy/types": "^4.0.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
32
- "node": ">=16.0.0"
32
+ "node": ">=18.0.0"
33
33
  },
34
34
  "typesVersions": {
35
35
  "<4.0": {
@@ -153,12 +153,9 @@ var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
153
153
  }, "resolveRegionConfig");
154
154
 
155
155
  // src/regionInfo/getHostnameFromVariants.ts
156
- var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => {
157
- var _a;
158
- return (_a = variants.find(
159
- ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
160
- )) == null ? void 0 : _a.hostname;
161
- }, "getHostnameFromVariants");
156
+ var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(
157
+ ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
158
+ )?.hostname, "getHostnameFromVariants");
162
159
 
163
160
  // src/regionInfo/getResolvedHostname.ts
164
161
  var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname");
@@ -187,18 +184,17 @@ var getRegionInfo = /* @__PURE__ */ __name((region, {
187
184
  regionHash,
188
185
  partitionHash
189
186
  }) => {
190
- var _a, _b, _c, _d, _e;
191
187
  const partition = getResolvedPartition(region, { partitionHash });
192
- const resolvedRegion = region in regionHash ? region : ((_a = partitionHash[partition]) == null ? void 0 : _a.endpoint) ?? region;
188
+ const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
193
189
  const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
194
- const regionHostname = getHostnameFromVariants((_b = regionHash[resolvedRegion]) == null ? void 0 : _b.variants, hostnameOptions);
195
- const partitionHostname = getHostnameFromVariants((_c = partitionHash[partition]) == null ? void 0 : _c.variants, hostnameOptions);
190
+ const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
191
+ const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
196
192
  const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
197
193
  if (hostname === void 0) {
198
194
  throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
199
195
  }
200
196
  const signingRegion = getResolvedSigningRegion(hostname, {
201
- signingRegion: (_d = regionHash[resolvedRegion]) == null ? void 0 : _d.signingRegion,
197
+ signingRegion: regionHash[resolvedRegion]?.signingRegion,
202
198
  regionRegex: partitionHash[partition].regionRegex,
203
199
  useFipsEndpoint
204
200
  });
@@ -207,7 +203,7 @@ var getRegionInfo = /* @__PURE__ */ __name((region, {
207
203
  signingService,
208
204
  hostname,
209
205
  ...signingRegion && { signingRegion },
210
- ...((_e = regionHash[resolvedRegion]) == null ? void 0 : _e.signingService) && {
206
+ ...regionHash[resolvedRegion]?.signingService && {
211
207
  signingService: regionHash[resolvedRegion].signingService
212
208
  }
213
209
  };
@@ -9,6 +9,9 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
9
9
  */
10
10
  endpoint: string | Endpoint | Provider<Endpoint>;
11
11
  }
12
+ /**
13
+ * @internal
14
+ */
12
15
  interface PreviouslyResolved {
13
16
  urlParser: UrlParser;
14
17
  }
@@ -17,6 +17,9 @@ export interface EndpointsInputConfig {
17
17
  */
18
18
  useDualstackEndpoint?: boolean | Provider<boolean>;
19
19
  }
20
+ /**
21
+ * @internal
22
+ */
20
23
  interface PreviouslyResolved {
21
24
  regionInfoProvider: RegionInfoProvider;
22
25
  urlParser: UrlParser;
@@ -44,7 +47,7 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
44
47
  /**
45
48
  * @internal
46
49
  *
47
- * @deprecated endpoints rulesets use @smithy/middleware-endpoint resolveEndpointConfig.
50
+ * @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
48
51
  * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
49
52
  */
50
53
  export declare const resolveEndpointsConfig: <T>(input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig;
@@ -9,6 +9,9 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
9
9
  */
10
10
  endpoint: string | Endpoint | Provider<Endpoint>;
11
11
  }
12
+ /**
13
+ * @internal
14
+ */
12
15
  interface PreviouslyResolved {
13
16
  urlParser: UrlParser;
14
17
  }
@@ -17,6 +17,9 @@ export interface EndpointsInputConfig {
17
17
  */
18
18
  useDualstackEndpoint?: boolean | Provider<boolean>;
19
19
  }
20
+ /**
21
+ * @internal
22
+ */
20
23
  interface PreviouslyResolved {
21
24
  regionInfoProvider: RegionInfoProvider;
22
25
  urlParser: UrlParser;
@@ -44,7 +47,7 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
44
47
  /**
45
48
  * @internal
46
49
  *
47
- * @deprecated endpoints rulesets use @smithy/middleware-endpoint resolveEndpointConfig.
50
+ * @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
48
51
  * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
49
52
  */
50
53
  export declare const resolveEndpointsConfig: <T>(input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig;