@cdk8s/awscdk-resolver 0.0.375 → 0.0.376

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 (423) hide show
  1. package/.jsii +2 -2
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
  4. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
  5. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
  6. package/node_modules/@smithy/abort-controller/package.json +2 -2
  7. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +158 -215
  8. package/node_modules/@smithy/config-resolver/package.json +5 -5
  9. package/node_modules/@smithy/core/dist-cjs/index.js +308 -412
  10. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +957 -969
  11. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +198 -249
  12. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +793 -895
  13. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +617 -811
  14. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +584 -680
  15. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -0
  16. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +3 -3
  17. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
  18. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
  19. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  20. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +2 -0
  21. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
  22. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +2 -0
  23. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -0
  24. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
  25. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -2
  26. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -1
  27. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +3 -5
  28. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +5 -5
  29. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +6 -5
  30. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -8
  31. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +6 -5
  32. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +3 -0
  33. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +5 -5
  34. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +6 -5
  35. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
  36. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -0
  37. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
  38. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
  39. package/node_modules/@smithy/core/package.json +11 -11
  40. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -412
  41. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
  42. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  43. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
  44. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
  45. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  46. package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
  47. package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
  48. package/node_modules/@smithy/hash-node/package.json +4 -4
  49. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
  50. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  51. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
  52. package/node_modules/@smithy/is-array-buffer/package.json +1 -1
  53. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
  54. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  55. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
  56. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
  57. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  58. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -380
  59. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
  60. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
  61. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
  62. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +5 -1
  63. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  64. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
  65. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  66. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -297
  67. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  68. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
  69. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  70. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +663 -771
  71. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -3
  72. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
  73. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
  74. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
  75. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
  76. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
  77. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
  78. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  79. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  80. package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
  81. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
  82. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
  83. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
  84. package/node_modules/@smithy/property-provider/package.json +2 -2
  85. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -246
  86. package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
  87. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
  88. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
  89. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
  90. package/node_modules/@smithy/protocol-http/package.json +2 -2
  91. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
  92. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  93. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
  94. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  95. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
  96. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  97. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +171 -210
  98. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +1 -1
  99. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  100. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -648
  101. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
  102. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
  103. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
  104. package/node_modules/@smithy/signature-v4/package.json +8 -8
  105. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +554 -747
  106. package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
  107. package/node_modules/@smithy/smithy-client/dist-es/command.js +17 -18
  108. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
  109. package/node_modules/@smithy/smithy-client/package.json +7 -7
  110. package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
  111. package/node_modules/@smithy/types/package.json +1 -1
  112. package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
  113. package/node_modules/@smithy/url-parser/package.json +3 -3
  114. package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
  115. package/node_modules/@smithy/util-base64/package.json +3 -3
  116. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -50
  117. package/node_modules/@smithy/util-body-length-browser/package.json +1 -1
  118. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +27 -50
  119. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  120. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
  121. package/node_modules/@smithy/util-buffer-from/package.json +2 -2
  122. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -56
  123. package/node_modules/@smithy/util-config-provider/package.json +1 -1
  124. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
  125. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +4 -5
  126. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
  127. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  128. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
  129. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  130. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +445 -526
  131. package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
  132. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  133. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
  134. package/node_modules/@smithy/util-hex-encoding/package.json +1 -1
  135. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -40
  136. package/node_modules/@smithy/util-middleware/package.json +2 -2
  137. package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
  138. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
  139. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
  140. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
  141. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
  142. package/node_modules/@smithy/util-retry/package.json +3 -3
  143. package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
  144. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
  145. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
  146. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  147. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
  148. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  149. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
  150. package/node_modules/@smithy/util-stream/dist-cjs/index.js +83 -93
  151. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
  152. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  153. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
  154. package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
  155. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
  156. package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
  157. package/node_modules/@smithy/util-stream/package.json +8 -8
  158. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
  159. package/node_modules/@smithy/util-uri-escape/package.json +1 -1
  160. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
  161. package/node_modules/@smithy/util-utf8/package.json +2 -2
  162. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -189
  163. package/node_modules/@smithy/util-waiter/package.json +3 -3
  164. package/node_modules/@smithy/uuid/dist-cjs/index.js +33 -42
  165. package/node_modules/@smithy/uuid/package.json +1 -1
  166. package/package.json +3 -3
  167. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  168. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  169. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
  170. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
  171. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
  172. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
  173. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
  174. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
  175. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
  176. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
  177. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
  178. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
  179. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
  180. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
  181. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
  182. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
  183. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
  184. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
  185. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
  186. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
  187. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
  188. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
  189. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
  190. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
  191. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
  192. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
  193. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
  194. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
  195. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
  196. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
  197. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
  198. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
  199. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
  200. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
  201. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
  202. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
  203. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
  204. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
  205. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
  206. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
  207. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
  208. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
  209. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
  210. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
  211. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
  212. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
  213. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
  214. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
  215. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
  216. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
  217. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
  218. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
  219. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
  220. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
  221. package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
  222. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  223. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  224. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  225. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  226. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  227. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  228. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  229. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  230. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  231. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  232. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  233. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  234. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  235. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  236. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  237. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  238. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
  239. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
  240. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
  241. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
  242. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
  243. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
  244. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
  245. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
  246. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
  247. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
  248. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
  249. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
  250. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
  251. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
  252. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
  253. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
  254. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +0 -1
  255. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
  256. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
  257. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
  258. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
  259. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
  260. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
  261. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
  262. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
  263. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
  264. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
  265. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
  266. package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
  267. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
  268. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
  269. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
  270. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
  271. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
  272. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
  273. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
  274. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
  275. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
  276. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
  277. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
  278. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
  279. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
  280. package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  281. package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  282. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  283. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  284. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  285. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  286. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  287. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  288. package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  289. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  290. package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  291. package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  292. package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  293. package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  294. package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  295. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  296. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  297. package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  298. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  299. package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  300. package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  301. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  302. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  303. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  304. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  305. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  306. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  307. package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  308. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  309. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  310. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  311. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  312. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  313. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  314. package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  315. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  316. package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  317. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  318. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  319. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  320. package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  321. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  322. package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  323. package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  324. package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  325. package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  326. package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  327. package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  328. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  329. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  330. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  331. package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  332. package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  333. package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  334. package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  335. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  336. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  337. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  338. package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  339. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  340. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  341. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  342. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  343. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  344. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  345. package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  346. package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  347. package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  348. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
  349. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
  350. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
  351. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
  352. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
  353. package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
  354. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
  355. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
  356. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
  357. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
  358. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
  359. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
  360. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
  361. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
  362. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
  363. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
  364. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
  365. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
  366. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
  367. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
  368. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
  369. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
  370. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
  371. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
  372. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
  373. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
  374. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
  375. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
  376. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
  377. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
  378. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
  379. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
  380. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
  381. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
  382. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
  383. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
  384. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
  385. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
  386. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
  387. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
  388. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
  389. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
  390. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
  391. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
  392. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
  393. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
  394. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
  395. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
  396. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
  397. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
  398. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  399. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
  400. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
  401. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  402. package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
  403. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
  404. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
  405. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
  406. package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
  407. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
  408. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
  409. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
  410. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
  411. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  412. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  413. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  414. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  415. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  416. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
  417. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
  418. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
  419. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
  420. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
  421. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
  422. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +0 -1
  423. package/node_modules/@smithy/uuid/dist-cjs/v4.js +0 -1
@@ -1,53 +1,30 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
19
2
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- calculateBodyLength: () => calculateBodyLength
24
- });
25
- module.exports = __toCommonJS(index_exports);
3
+ var fs = require('fs');
26
4
 
27
- // src/calculateBodyLength.ts
28
- var import_fs = require("fs");
29
- var calculateBodyLength = /* @__PURE__ */ __name((body) => {
30
- if (!body) {
31
- return 0;
32
- }
33
- if (typeof body === "string") {
34
- return Buffer.byteLength(body);
35
- } else if (typeof body.byteLength === "number") {
36
- return body.byteLength;
37
- } else if (typeof body.size === "number") {
38
- return body.size;
39
- } else if (typeof body.start === "number" && typeof body.end === "number") {
40
- return body.end + 1 - body.start;
41
- } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) {
42
- return (0, import_fs.lstatSync)(body.path).size;
43
- } else if (typeof body.fd === "number") {
44
- return (0, import_fs.fstatSync)(body.fd).size;
45
- }
46
- throw new Error(`Body Length computation failed for ${body}`);
47
- }, "calculateBodyLength");
48
- // Annotate the CommonJS export names for ESM import in node:
49
-
50
- 0 && (module.exports = {
51
- calculateBodyLength
52
- });
5
+ const calculateBodyLength = (body) => {
6
+ if (!body) {
7
+ return 0;
8
+ }
9
+ if (typeof body === "string") {
10
+ return Buffer.byteLength(body);
11
+ }
12
+ else if (typeof body.byteLength === "number") {
13
+ return body.byteLength;
14
+ }
15
+ else if (typeof body.size === "number") {
16
+ return body.size;
17
+ }
18
+ else if (typeof body.start === "number" && typeof body.end === "number") {
19
+ return body.end + 1 - body.start;
20
+ }
21
+ else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) {
22
+ return fs.lstatSync(body.path).size;
23
+ }
24
+ else if (typeof body.fd === "number") {
25
+ return fs.fstatSync(body.fd).size;
26
+ }
27
+ throw new Error(`Body Length computation failed for ${body}`);
28
+ };
53
29
 
30
+ exports.calculateBodyLength = calculateBodyLength;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smithy/util-body-length-node",
3
3
  "description": "Determines the length of a request body in node.js",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline util-body-length-node",
@@ -1,47 +1,20 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
19
2
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- fromArrayBuffer: () => fromArrayBuffer,
24
- fromString: () => fromString
25
- });
26
- module.exports = __toCommonJS(index_exports);
27
- var import_is_array_buffer = require("@smithy/is-array-buffer");
28
- var import_buffer = require("buffer");
29
- var fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => {
30
- if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
31
- throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
32
- }
33
- return import_buffer.Buffer.from(input, offset, length);
34
- }, "fromArrayBuffer");
35
- var fromString = /* @__PURE__ */ __name((input, encoding) => {
36
- if (typeof input !== "string") {
37
- throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
38
- }
39
- return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
40
- }, "fromString");
41
- // Annotate the CommonJS export names for ESM import in node:
3
+ var isArrayBuffer = require('@smithy/is-array-buffer');
4
+ var buffer = require('buffer');
42
5
 
43
- 0 && (module.exports = {
44
- fromArrayBuffer,
45
- fromString
46
- });
6
+ const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
7
+ if (!isArrayBuffer.isArrayBuffer(input)) {
8
+ throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
9
+ }
10
+ return buffer.Buffer.from(input, offset, length);
11
+ };
12
+ const fromString = (input, encoding) => {
13
+ if (typeof input !== "string") {
14
+ throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
15
+ }
16
+ return encoding ? buffer.Buffer.from(input, encoding) : buffer.Buffer.from(input);
17
+ };
47
18
 
19
+ exports.fromArrayBuffer = fromArrayBuffer;
20
+ exports.fromString = fromString;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-buffer-from",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-buffer-from",
@@ -21,7 +21,7 @@
21
21
  "license": "Apache-2.0",
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "@smithy/is-array-buffer": "^4.1.0",
24
+ "@smithy/is-array-buffer": "^4.2.0",
25
25
  "tslib": "^2.6.2"
26
26
  },
27
27
  "devDependencies": {
@@ -1,60 +1,30 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- SelectorType: () => SelectorType,
24
- booleanSelector: () => booleanSelector,
25
- numberSelector: () => numberSelector
26
- });
27
- module.exports = __toCommonJS(index_exports);
1
+ 'use strict';
28
2
 
29
- // src/booleanSelector.ts
30
- var booleanSelector = /* @__PURE__ */ __name((obj, key, type) => {
31
- if (!(key in obj)) return void 0;
32
- if (obj[key] === "true") return true;
33
- if (obj[key] === "false") return false;
34
- throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
35
- }, "booleanSelector");
36
-
37
- // src/numberSelector.ts
38
- var numberSelector = /* @__PURE__ */ __name((obj, key, type) => {
39
- if (!(key in obj)) return void 0;
40
- const numberValue = parseInt(obj[key], 10);
41
- if (Number.isNaN(numberValue)) {
42
- throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);
43
- }
44
- return numberValue;
45
- }, "numberSelector");
3
+ const booleanSelector = (obj, key, type) => {
4
+ if (!(key in obj))
5
+ return undefined;
6
+ if (obj[key] === "true")
7
+ return true;
8
+ if (obj[key] === "false")
9
+ return false;
10
+ throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
11
+ };
46
12
 
47
- // src/types.ts
48
- var SelectorType = /* @__PURE__ */ ((SelectorType2) => {
49
- SelectorType2["ENV"] = "env";
50
- SelectorType2["CONFIG"] = "shared config entry";
51
- return SelectorType2;
52
- })(SelectorType || {});
53
- // Annotate the CommonJS export names for ESM import in node:
13
+ const numberSelector = (obj, key, type) => {
14
+ if (!(key in obj))
15
+ return undefined;
16
+ const numberValue = parseInt(obj[key], 10);
17
+ if (Number.isNaN(numberValue)) {
18
+ throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);
19
+ }
20
+ return numberValue;
21
+ };
54
22
 
55
- 0 && (module.exports = {
56
- booleanSelector,
57
- numberSelector,
58
- SelectorType
59
- });
23
+ exports.SelectorType = void 0;
24
+ (function (SelectorType) {
25
+ SelectorType["ENV"] = "env";
26
+ SelectorType["CONFIG"] = "shared config entry";
27
+ })(exports.SelectorType || (exports.SelectorType = {}));
60
28
 
29
+ exports.booleanSelector = booleanSelector;
30
+ exports.numberSelector = numberSelector;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-config-provider",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Utilities package for configuration providers",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -1,25 +1,12 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
2
+
3
+ var resolveDefaultsModeConfig = require('./resolveDefaultsModeConfig');
15
4
 
16
- // src/index.ts
17
- var index_exports = {};
18
- module.exports = __toCommonJS(index_exports);
19
- __reExport(index_exports, require("././resolveDefaultsModeConfig"), module.exports);
20
- // Annotate the CommonJS export names for ESM import in node:
21
5
 
22
- 0 && (module.exports = {
23
- resolveDefaultsModeConfig
24
- });
25
6
 
7
+ Object.keys(resolveDefaultsModeConfig).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return resolveDefaultsModeConfig[k]; }
11
+ });
12
+ });
@@ -7,7 +7,7 @@ const bowser_1 = tslib_1.__importDefault(require("bowser"));
7
7
  const constants_1 = require("./constants");
8
8
  const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => {
9
9
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
10
- switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) {
10
+ switch (mode?.toLowerCase()) {
11
11
  case "auto":
12
12
  return Promise.resolve(isMobileBrowser() ? "mobile" : "standard");
13
13
  case "mobile":
@@ -15,7 +15,7 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provi
15
15
  case "cross-region":
16
16
  case "standard":
17
17
  case "legacy":
18
- return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase());
18
+ return Promise.resolve(mode?.toLocaleLowerCase());
19
19
  case undefined:
20
20
  return Promise.resolve("legacy");
21
21
  default:
@@ -24,10 +24,9 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provi
24
24
  });
25
25
  exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
26
26
  const isMobileBrowser = () => {
27
- var _a, _b;
28
- const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)
27
+ const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent
29
28
  ? bowser_1.default.parse(window.navigator.userAgent)
30
29
  : undefined;
31
- const platform = (_b = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.platform) === null || _b === void 0 ? void 0 : _b.type;
30
+ const platform = parsedUA?.platform?.type;
32
31
  return platform === "tablet" || platform === "mobile";
33
32
  };
@@ -5,7 +5,7 @@ const property_provider_1 = require("@smithy/property-provider");
5
5
  const constants_1 = require("./constants");
6
6
  const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => {
7
7
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
8
- switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) {
8
+ switch (mode?.toLowerCase()) {
9
9
  case "auto":
10
10
  return Promise.resolve("mobile");
11
11
  case "mobile":
@@ -13,7 +13,7 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provi
13
13
  case "cross-region":
14
14
  case "standard":
15
15
  case "legacy":
16
- return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase());
16
+ return Promise.resolve(mode?.toLocaleLowerCase());
17
17
  case undefined:
18
18
  return Promise.resolve("legacy");
19
19
  default:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.1.5",
3
+ "version": "4.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -24,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^4.1.1",
28
- "@smithy/smithy-client": "^4.6.5",
29
- "@smithy/types": "^4.5.0",
27
+ "@smithy/property-provider": "^4.2.0",
28
+ "@smithy/smithy-client": "^4.7.0",
29
+ "@smithy/types": "^4.6.0",
30
30
  "bowser": "^2.11.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
@@ -1,119 +1,74 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
29
2
 
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- resolveDefaultsModeConfig: () => resolveDefaultsModeConfig
34
- });
35
- module.exports = __toCommonJS(index_exports);
3
+ var configResolver = require('@smithy/config-resolver');
4
+ var nodeConfigProvider = require('@smithy/node-config-provider');
5
+ var propertyProvider = require('@smithy/property-provider');
36
6
 
37
- // src/resolveDefaultsModeConfig.ts
38
- var import_config_resolver = require("@smithy/config-resolver");
39
- var import_node_config_provider = require("@smithy/node-config-provider");
40
- var import_property_provider = require("@smithy/property-provider");
7
+ const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
8
+ const AWS_REGION_ENV = "AWS_REGION";
9
+ const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
10
+ const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
11
+ const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
12
+ const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
41
13
 
42
- // src/constants.ts
43
- var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
44
- var AWS_REGION_ENV = "AWS_REGION";
45
- var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
46
- var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
47
- var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
48
- var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
49
-
50
- // src/defaultsModeConfig.ts
51
- var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
52
- var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
53
- var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
54
- environmentVariableSelector: /* @__PURE__ */ __name((env) => {
55
- return env[AWS_DEFAULTS_MODE_ENV];
56
- }, "environmentVariableSelector"),
57
- configFileSelector: /* @__PURE__ */ __name((profile) => {
58
- return profile[AWS_DEFAULTS_MODE_CONFIG];
59
- }, "configFileSelector"),
60
- default: "legacy"
14
+ const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
15
+ const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
16
+ const NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
17
+ environmentVariableSelector: (env) => {
18
+ return env[AWS_DEFAULTS_MODE_ENV];
19
+ },
20
+ configFileSelector: (profile) => {
21
+ return profile[AWS_DEFAULTS_MODE_CONFIG];
22
+ },
23
+ default: "legacy",
61
24
  };
62
25
 
63
- // src/resolveDefaultsModeConfig.ts
64
- var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({
65
- region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS),
66
- defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS)
67
- } = {}) => (0, import_property_provider.memoize)(async () => {
68
- const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
69
- switch (mode?.toLowerCase()) {
70
- case "auto":
71
- return resolveNodeDefaultsModeAuto(region);
72
- case "in-region":
73
- case "cross-region":
74
- case "mobile":
75
- case "standard":
76
- case "legacy":
77
- return Promise.resolve(mode?.toLocaleLowerCase());
78
- case void 0:
79
- return Promise.resolve("legacy");
80
- default:
81
- throw new Error(
82
- `Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`
83
- );
84
- }
85
- }), "resolveDefaultsModeConfig");
86
- var resolveNodeDefaultsModeAuto = /* @__PURE__ */ __name(async (clientRegion) => {
87
- if (clientRegion) {
88
- const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
89
- const inferredRegion = await inferPhysicalRegion();
90
- if (!inferredRegion) {
91
- return "standard";
26
+ const resolveDefaultsModeConfig = ({ region = nodeConfigProvider.loadConfig(configResolver.NODE_REGION_CONFIG_OPTIONS), defaultsMode = nodeConfigProvider.loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => propertyProvider.memoize(async () => {
27
+ const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
28
+ switch (mode?.toLowerCase()) {
29
+ case "auto":
30
+ return resolveNodeDefaultsModeAuto(region);
31
+ case "in-region":
32
+ case "cross-region":
33
+ case "mobile":
34
+ case "standard":
35
+ case "legacy":
36
+ return Promise.resolve(mode?.toLocaleLowerCase());
37
+ case undefined:
38
+ return Promise.resolve("legacy");
39
+ default:
40
+ throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`);
41
+ }
42
+ });
43
+ const resolveNodeDefaultsModeAuto = async (clientRegion) => {
44
+ if (clientRegion) {
45
+ const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
46
+ const inferredRegion = await inferPhysicalRegion();
47
+ if (!inferredRegion) {
48
+ return "standard";
49
+ }
50
+ if (resolvedRegion === inferredRegion) {
51
+ return "in-region";
52
+ }
53
+ else {
54
+ return "cross-region";
55
+ }
92
56
  }
93
- if (resolvedRegion === inferredRegion) {
94
- return "in-region";
95
- } else {
96
- return "cross-region";
57
+ return "standard";
58
+ };
59
+ const inferPhysicalRegion = async () => {
60
+ if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
61
+ return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
97
62
  }
98
- }
99
- return "standard";
100
- }, "resolveNodeDefaultsModeAuto");
101
- var inferPhysicalRegion = /* @__PURE__ */ __name(async () => {
102
- if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
103
- return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
104
- }
105
- if (!process.env[ENV_IMDS_DISABLED]) {
106
- try {
107
- const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds")));
108
- const endpoint = await getInstanceMetadataEndpoint();
109
- return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
110
- } catch (e) {
63
+ if (!process.env[ENV_IMDS_DISABLED]) {
64
+ try {
65
+ const { getInstanceMetadataEndpoint, httpRequest } = await import('@smithy/credential-provider-imds');
66
+ const endpoint = await getInstanceMetadataEndpoint();
67
+ return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
68
+ }
69
+ catch (e) {
70
+ }
111
71
  }
112
- }
113
- }, "inferPhysicalRegion");
114
- // Annotate the CommonJS export names for ESM import in node:
115
-
116
- 0 && (module.exports = {
117
- resolveDefaultsModeConfig
118
- });
72
+ };
119
73
 
74
+ exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.1.5",
3
+ "version": "4.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -24,12 +24,12 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.2.2",
28
- "@smithy/credential-provider-imds": "^4.1.2",
29
- "@smithy/node-config-provider": "^4.2.2",
30
- "@smithy/property-provider": "^4.1.1",
31
- "@smithy/smithy-client": "^4.6.5",
32
- "@smithy/types": "^4.5.0",
27
+ "@smithy/config-resolver": "^4.3.0",
28
+ "@smithy/credential-provider-imds": "^4.2.0",
29
+ "@smithy/node-config-provider": "^4.3.0",
30
+ "@smithy/property-provider": "^4.2.0",
31
+ "@smithy/smithy-client": "^4.7.0",
32
+ "@smithy/types": "^4.6.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {