@cdklabs/cdk-ecs-codedeploy 0.0.235 → 0.0.236

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 (410) hide show
  1. package/.jsii +2 -2
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +1 -13
  8. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -24
  9. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +83 -5
  10. package/node_modules/@smithy/abort-controller/package.json +3 -3
  11. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +1 -12
  12. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +1 -12
  13. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +1 -7
  14. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +1 -16
  15. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +1 -20
  16. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +1 -20
  17. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +233 -6
  18. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +1 -15
  19. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +1 -10
  20. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +1 -5
  21. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +1 -5
  22. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +1 -29
  23. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +1 -2
  24. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +1 -2
  25. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +1 -2
  26. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +1 -2
  27. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +1 -8
  28. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +1 -34
  29. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +1 -9
  30. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +1 -5
  31. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +1 -16
  32. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +1 -6
  33. package/node_modules/@smithy/config-resolver/package.json +6 -6
  34. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +1 -6
  35. package/node_modules/@smithy/core/dist-cjs/index.js +480 -12
  36. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +1 -22
  37. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -22
  38. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -45
  39. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +1 -6
  40. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +1 -20
  41. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +1 -28
  42. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +1 -5
  43. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +1 -10
  44. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +1 -32
  45. package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +1 -72
  46. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -17
  47. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +1 -37
  48. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +1 -14
  49. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +1 -6
  50. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +1 -9
  51. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +1 -6
  52. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +1 -59
  53. package/node_modules/@smithy/core/package.json +9 -9
  54. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +1 -8
  55. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +1 -10
  56. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +1 -8
  57. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +1 -11
  58. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +1 -13
  59. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +1 -70
  60. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +1 -137
  61. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +425 -12
  62. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +1 -17
  63. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +1 -7
  64. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +1 -41
  65. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +1 -5
  66. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +1 -11
  67. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +1 -2
  68. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +1 -22
  69. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +1 -23
  70. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +1 -29
  71. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  72. package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +1 -66
  73. package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +1 -186
  74. package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +1 -47
  75. package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +1 -2
  76. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +1 -18
  77. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +1 -21
  78. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +1 -20
  79. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +1 -18
  80. package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +1 -693
  81. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +466 -11
  82. package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +1 -34
  83. package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +1 -2
  84. package/node_modules/@smithy/eventstream-codec/package.json +5 -5
  85. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -117
  86. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +218 -5
  87. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +1 -15
  88. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +1 -50
  89. package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
  90. package/node_modules/@smithy/hash-node/dist-cjs/index.js +62 -36
  91. package/node_modules/@smithy/hash-node/package.json +5 -5
  92. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +39 -5
  93. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +1 -7
  94. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +1 -5
  95. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  96. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +30 -6
  97. package/node_modules/@smithy/is-array-buffer/package.json +7 -9
  98. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +64 -39
  99. package/node_modules/@smithy/middleware-content-length/package.json +5 -5
  100. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +1 -38
  101. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +1 -51
  102. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +1 -5
  103. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +1 -14
  104. package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +1 -37
  105. package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +1 -22
  106. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +252 -8
  107. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +1 -21
  108. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +1 -4
  109. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +1 -43
  110. package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +1 -2
  111. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  112. package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -24
  113. package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +1 -95
  114. package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +1 -57
  115. package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +1 -32
  116. package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +1 -6
  117. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +422 -10
  118. package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +1 -27
  119. package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +1 -11
  120. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +1 -118
  121. package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +1 -2
  122. package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +1 -13
  123. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  124. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +1 -24
  125. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +95 -6
  126. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +1 -26
  127. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +1 -18
  128. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  129. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +1 -287
  130. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +316 -4
  131. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +1 -2
  132. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  133. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +1 -9
  134. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +1 -17
  135. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +1 -26
  136. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +1 -7
  137. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +85 -4
  138. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  139. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +1 -4
  140. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +1 -12
  141. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +624 -6
  142. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +1 -153
  143. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +1 -92
  144. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +1 -36
  145. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +1 -165
  146. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +1 -23
  147. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +1 -60
  148. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +1 -25
  149. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +1 -12
  150. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +1 -10
  151. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +1 -15
  152. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +1 -18
  153. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -23
  154. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +1 -45
  155. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  156. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -13
  157. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -15
  158. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -13
  159. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -25
  160. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -5
  161. package/node_modules/@smithy/property-provider/dist-cjs/index.js +148 -9
  162. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -49
  163. package/node_modules/@smithy/property-provider/package.json +3 -3
  164. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -27
  165. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +1 -23
  166. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -27
  167. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -4
  168. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +1 -2
  169. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -52
  170. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -18
  171. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +235 -11
  172. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -8
  173. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -2
  174. package/node_modules/@smithy/protocol-http/package.json +3 -3
  175. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +47 -22
  176. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  177. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +48 -24
  178. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  179. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +1 -30
  180. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +86 -30
  181. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  182. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -22
  183. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -8
  184. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -8
  185. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -7
  186. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -9
  187. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +188 -11
  188. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -31
  189. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -16
  190. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -18
  191. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -56
  192. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -10
  193. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -2
  194. package/node_modules/@smithy/shared-ini-file-loader/package.json +13 -3
  195. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +1 -194
  196. package/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +1 -17
  197. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +1 -46
  198. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +1 -39
  199. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +1 -24
  200. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +1 -31
  201. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +1 -24
  202. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +1 -32
  203. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +465 -16
  204. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +1 -21
  205. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +1 -15
  206. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +1 -402
  207. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +1 -20
  208. package/node_modules/@smithy/signature-v4/package.json +10 -10
  209. package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +1 -11
  210. package/node_modules/@smithy/smithy-client/dist-cjs/client.js +1 -28
  211. package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +1 -15
  212. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +1 -118
  213. package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +1 -4
  214. package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +1 -25
  215. package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +1 -195
  216. package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +1 -30
  217. package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +1 -30
  218. package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +1 -10
  219. package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +1 -27
  220. package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +1 -9
  221. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +1 -36
  222. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -20
  223. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +1 -4
  224. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +1 -21
  225. package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +1 -5
  226. package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +1 -16
  227. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1254 -25
  228. package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +1 -38
  229. package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +1 -98
  230. package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +1 -253
  231. package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +1 -23
  232. package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +1 -17
  233. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -23
  234. package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +1 -31
  235. package/node_modules/@smithy/smithy-client/package.json +7 -7
  236. package/node_modules/@smithy/types/dist-cjs/abort.js +1 -2
  237. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -8
  238. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -2
  239. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -2
  240. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -2
  241. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -2
  242. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -8
  243. package/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -9
  244. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -2
  245. package/node_modules/@smithy/types/dist-cjs/checksum.js +1 -2
  246. package/node_modules/@smithy/types/dist-cjs/client.js +1 -2
  247. package/node_modules/@smithy/types/dist-cjs/command.js +1 -2
  248. package/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -2
  249. package/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -6
  250. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -2
  251. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -2
  252. package/node_modules/@smithy/types/dist-cjs/crypto.js +1 -2
  253. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -2
  254. package/node_modules/@smithy/types/dist-cjs/encode.js +1 -2
  255. package/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -8
  256. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -2
  257. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -2
  258. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -2
  259. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -2
  260. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -8
  261. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -2
  262. package/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -2
  263. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -44
  264. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -16
  265. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -2
  266. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -8
  267. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -2
  268. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -2
  269. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -2
  270. package/node_modules/@smithy/types/dist-cjs/http.js +1 -8
  271. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -2
  272. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -2
  273. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -2
  274. package/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -7
  275. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -2
  276. package/node_modules/@smithy/types/dist-cjs/index.js +147 -39
  277. package/node_modules/@smithy/types/dist-cjs/logger.js +1 -2
  278. package/node_modules/@smithy/types/dist-cjs/middleware.js +1 -4
  279. package/node_modules/@smithy/types/dist-cjs/pagination.js +1 -2
  280. package/node_modules/@smithy/types/dist-cjs/profile.js +1 -9
  281. package/node_modules/@smithy/types/dist-cjs/response.js +1 -2
  282. package/node_modules/@smithy/types/dist-cjs/retry.js +1 -2
  283. package/node_modules/@smithy/types/dist-cjs/serde.js +1 -2
  284. package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -2
  285. package/node_modules/@smithy/types/dist-cjs/signature.js +1 -2
  286. package/node_modules/@smithy/types/dist-cjs/stream.js +1 -2
  287. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -2
  288. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -2
  289. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -2
  290. package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -9
  291. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -2
  292. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -2
  293. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -2
  294. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -2
  295. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -2
  296. package/node_modules/@smithy/types/dist-cjs/uri.js +1 -2
  297. package/node_modules/@smithy/types/dist-cjs/util.js +1 -2
  298. package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -2
  299. package/node_modules/@smithy/types/package.json +2 -2
  300. package/node_modules/@smithy/url-parser/dist-cjs/index.js +46 -21
  301. package/node_modules/@smithy/url-parser/package.json +4 -4
  302. package/node_modules/@smithy/util-base64/dist-cjs/index.js +25 -5
  303. package/node_modules/@smithy/util-base64/package.json +4 -4
  304. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +1 -30
  305. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +55 -4
  306. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  307. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +1 -29
  308. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +51 -4
  309. package/node_modules/@smithy/util-body-length-node/package.json +7 -9
  310. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +43 -17
  311. package/node_modules/@smithy/util-buffer-from/package.json +8 -10
  312. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +1 -13
  313. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +62 -6
  314. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +1 -13
  315. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +1 -8
  316. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  317. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +23 -4
  318. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  319. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +1 -9
  320. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +1 -14
  321. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +107 -4
  322. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +1 -57
  323. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  324. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +1 -4
  325. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +1 -5
  326. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +1 -16
  327. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +1 -25
  328. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +482 -8
  329. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +1 -5
  330. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +1 -15
  331. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +1 -29
  332. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +1 -12
  333. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +1 -6
  334. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +1 -5
  335. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +1 -17
  336. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +1 -5
  337. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +1 -55
  338. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +1 -5
  339. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +1 -13
  340. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +1 -5
  341. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +1 -42
  342. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +1 -10
  343. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +1 -2
  344. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +1 -2
  345. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +1 -2
  346. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +1 -2
  347. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +1 -2
  348. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +1 -10
  349. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +1 -2
  350. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +1 -15
  351. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +1 -4
  352. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +1 -15
  353. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +1 -19
  354. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +1 -27
  355. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +1 -32
  356. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +1 -18
  357. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +1 -20
  358. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +1 -31
  359. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +1 -40
  360. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +1 -17
  361. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +1 -16
  362. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +1 -9
  363. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +1 -25
  364. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +1 -19
  365. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +1 -11
  366. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +1 -5
  367. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  368. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +58 -31
  369. package/node_modules/@smithy/util-hex-encoding/package.json +7 -9
  370. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +1 -6
  371. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +43 -5
  372. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +1 -10
  373. package/node_modules/@smithy/util-middleware/package.json +3 -3
  374. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -28
  375. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +1 -22
  376. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +1 -104
  377. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +1 -70
  378. package/node_modules/@smithy/util-retry/dist-cjs/config.js +1 -10
  379. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +1 -12
  380. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +1 -18
  381. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +1 -15
  382. package/node_modules/@smithy/util-retry/dist-cjs/index.js +345 -10
  383. package/node_modules/@smithy/util-retry/dist-cjs/types.js +1 -2
  384. package/node_modules/@smithy/util-retry/package.json +4 -4
  385. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +1 -22
  386. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +1 -20
  387. package/node_modules/@smithy/util-stream/dist-cjs/index.js +87 -6
  388. package/node_modules/@smithy/util-stream/package.json +10 -10
  389. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -6
  390. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -6
  391. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +41 -5
  392. package/node_modules/@smithy/util-uri-escape/package.json +7 -9
  393. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -5
  394. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -9
  395. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +55 -6
  396. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -14
  397. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -5
  398. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -6
  399. package/node_modules/@smithy/util-utf8/package.json +4 -4
  400. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +1 -27
  401. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +153 -5
  402. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +1 -38
  403. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +1 -5
  404. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +1 -7
  405. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +1 -21
  406. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +1 -38
  407. package/node_modules/@smithy/util-waiter/package.json +4 -4
  408. package/package.json +5 -5
  409. package/.gitattributes +0 -27
  410. package/.projenrc.ts +0 -113
@@ -1,66 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventStreamCodec = void 0;
4
- const crc32_1 = require("@aws-crypto/crc32");
5
- const HeaderMarshaller_1 = require("./HeaderMarshaller");
6
- const splitMessage_1 = require("./splitMessage");
7
- class EventStreamCodec {
8
- constructor(toUtf8, fromUtf8) {
9
- this.headerMarshaller = new HeaderMarshaller_1.HeaderMarshaller(toUtf8, fromUtf8);
10
- this.messageBuffer = [];
11
- this.isEndOfStream = false;
12
- }
13
- feed(message) {
14
- this.messageBuffer.push(this.decode(message));
15
- }
16
- endOfStream() {
17
- this.isEndOfStream = true;
18
- }
19
- getMessage() {
20
- const message = this.messageBuffer.pop();
21
- const isEndOfStream = this.isEndOfStream;
22
- return {
23
- getMessage() {
24
- return message;
25
- },
26
- isEndOfStream() {
27
- return isEndOfStream;
28
- },
29
- };
30
- }
31
- getAvailableMessages() {
32
- const messages = this.messageBuffer;
33
- this.messageBuffer = [];
34
- const isEndOfStream = this.isEndOfStream;
35
- return {
36
- getMessages() {
37
- return messages;
38
- },
39
- isEndOfStream() {
40
- return isEndOfStream;
41
- },
42
- };
43
- }
44
- encode({ headers: rawHeaders, body }) {
45
- const headers = this.headerMarshaller.format(rawHeaders);
46
- const length = headers.byteLength + body.byteLength + 16;
47
- const out = new Uint8Array(length);
48
- const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
49
- const checksum = new crc32_1.Crc32();
50
- view.setUint32(0, length, false);
51
- view.setUint32(4, headers.byteLength, false);
52
- view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
53
- out.set(headers, 12);
54
- out.set(body, headers.byteLength + 12);
55
- view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
56
- return out;
57
- }
58
- decode(message) {
59
- const { headers, body } = (0, splitMessage_1.splitMessage)(message);
60
- return { headers: this.headerMarshaller.parse(headers), body };
61
- }
62
- formatHeaders(rawHeaders) {
63
- return this.headerMarshaller.format(rawHeaders);
64
- }
65
- }
66
- exports.EventStreamCodec = EventStreamCodec;
1
+ module.exports = require("./index.js");
@@ -1,186 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HeaderMarshaller = void 0;
4
- const util_hex_encoding_1 = require("@smithy/util-hex-encoding");
5
- const Int64_1 = require("./Int64");
6
- class HeaderMarshaller {
7
- constructor(toUtf8, fromUtf8) {
8
- this.toUtf8 = toUtf8;
9
- this.fromUtf8 = fromUtf8;
10
- }
11
- format(headers) {
12
- const chunks = [];
13
- for (const headerName of Object.keys(headers)) {
14
- const bytes = this.fromUtf8(headerName);
15
- chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
16
- }
17
- const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
18
- let position = 0;
19
- for (const chunk of chunks) {
20
- out.set(chunk, position);
21
- position += chunk.byteLength;
22
- }
23
- return out;
24
- }
25
- formatHeaderValue(header) {
26
- switch (header.type) {
27
- case "boolean":
28
- return Uint8Array.from([header.value ? 0 : 1]);
29
- case "byte":
30
- return Uint8Array.from([2, header.value]);
31
- case "short":
32
- const shortView = new DataView(new ArrayBuffer(3));
33
- shortView.setUint8(0, 3);
34
- shortView.setInt16(1, header.value, false);
35
- return new Uint8Array(shortView.buffer);
36
- case "integer":
37
- const intView = new DataView(new ArrayBuffer(5));
38
- intView.setUint8(0, 4);
39
- intView.setInt32(1, header.value, false);
40
- return new Uint8Array(intView.buffer);
41
- case "long":
42
- const longBytes = new Uint8Array(9);
43
- longBytes[0] = 5;
44
- longBytes.set(header.value.bytes, 1);
45
- return longBytes;
46
- case "binary":
47
- const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
48
- binView.setUint8(0, 6);
49
- binView.setUint16(1, header.value.byteLength, false);
50
- const binBytes = new Uint8Array(binView.buffer);
51
- binBytes.set(header.value, 3);
52
- return binBytes;
53
- case "string":
54
- const utf8Bytes = this.fromUtf8(header.value);
55
- const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
56
- strView.setUint8(0, 7);
57
- strView.setUint16(1, utf8Bytes.byteLength, false);
58
- const strBytes = new Uint8Array(strView.buffer);
59
- strBytes.set(utf8Bytes, 3);
60
- return strBytes;
61
- case "timestamp":
62
- const tsBytes = new Uint8Array(9);
63
- tsBytes[0] = 8;
64
- tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1);
65
- return tsBytes;
66
- case "uuid":
67
- if (!UUID_PATTERN.test(header.value)) {
68
- throw new Error(`Invalid UUID received: ${header.value}`);
69
- }
70
- const uuidBytes = new Uint8Array(17);
71
- uuidBytes[0] = 9;
72
- uuidBytes.set((0, util_hex_encoding_1.fromHex)(header.value.replace(/\-/g, "")), 1);
73
- return uuidBytes;
74
- }
75
- }
76
- parse(headers) {
77
- const out = {};
78
- let position = 0;
79
- while (position < headers.byteLength) {
80
- const nameLength = headers.getUint8(position++);
81
- const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
82
- position += nameLength;
83
- switch (headers.getUint8(position++)) {
84
- case 0:
85
- out[name] = {
86
- type: BOOLEAN_TAG,
87
- value: true,
88
- };
89
- break;
90
- case 1:
91
- out[name] = {
92
- type: BOOLEAN_TAG,
93
- value: false,
94
- };
95
- break;
96
- case 2:
97
- out[name] = {
98
- type: BYTE_TAG,
99
- value: headers.getInt8(position++),
100
- };
101
- break;
102
- case 3:
103
- out[name] = {
104
- type: SHORT_TAG,
105
- value: headers.getInt16(position, false),
106
- };
107
- position += 2;
108
- break;
109
- case 4:
110
- out[name] = {
111
- type: INT_TAG,
112
- value: headers.getInt32(position, false),
113
- };
114
- position += 4;
115
- break;
116
- case 5:
117
- out[name] = {
118
- type: LONG_TAG,
119
- value: new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
120
- };
121
- position += 8;
122
- break;
123
- case 6:
124
- const binaryLength = headers.getUint16(position, false);
125
- position += 2;
126
- out[name] = {
127
- type: BINARY_TAG,
128
- value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),
129
- };
130
- position += binaryLength;
131
- break;
132
- case 7:
133
- const stringLength = headers.getUint16(position, false);
134
- position += 2;
135
- out[name] = {
136
- type: STRING_TAG,
137
- value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),
138
- };
139
- position += stringLength;
140
- break;
141
- case 8:
142
- out[name] = {
143
- type: TIMESTAMP_TAG,
144
- value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
145
- };
146
- position += 8;
147
- break;
148
- case 9:
149
- const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
150
- position += 16;
151
- out[name] = {
152
- type: UUID_TAG,
153
- value: `${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(0, 4))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(4, 6))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(6, 8))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(8, 10))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(10))}`,
154
- };
155
- break;
156
- default:
157
- throw new Error(`Unrecognized header type tag`);
158
- }
159
- }
160
- return out;
161
- }
162
- }
163
- exports.HeaderMarshaller = HeaderMarshaller;
164
- var HEADER_VALUE_TYPE;
165
- (function (HEADER_VALUE_TYPE) {
166
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue";
167
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse";
168
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte";
169
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short";
170
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer";
171
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long";
172
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray";
173
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string";
174
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp";
175
- HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid";
176
- })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
177
- const BOOLEAN_TAG = "boolean";
178
- const BYTE_TAG = "byte";
179
- const SHORT_TAG = "short";
180
- const INT_TAG = "integer";
181
- const LONG_TAG = "long";
182
- const BINARY_TAG = "binary";
183
- const STRING_TAG = "string";
184
- const TIMESTAMP_TAG = "timestamp";
185
- const UUID_TAG = "uuid";
186
- const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
1
+ module.exports = require("./index.js");
@@ -1,47 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Int64 = void 0;
4
- const util_hex_encoding_1 = require("@smithy/util-hex-encoding");
5
- class Int64 {
6
- constructor(bytes) {
7
- this.bytes = bytes;
8
- if (bytes.byteLength !== 8) {
9
- throw new Error("Int64 buffers must be exactly 8 bytes");
10
- }
11
- }
12
- static fromNumber(number) {
13
- if (number > 9223372036854776000 || number < -9223372036854776000) {
14
- throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
15
- }
16
- const bytes = new Uint8Array(8);
17
- for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
18
- bytes[i] = remaining;
19
- }
20
- if (number < 0) {
21
- negate(bytes);
22
- }
23
- return new Int64(bytes);
24
- }
25
- valueOf() {
26
- const bytes = this.bytes.slice(0);
27
- const negative = bytes[0] & 0b10000000;
28
- if (negative) {
29
- negate(bytes);
30
- }
31
- return parseInt((0, util_hex_encoding_1.toHex)(bytes), 16) * (negative ? -1 : 1);
32
- }
33
- toString() {
34
- return String(this.valueOf());
35
- }
36
- }
37
- exports.Int64 = Int64;
38
- function negate(bytes) {
39
- for (let i = 0; i < 8; i++) {
40
- bytes[i] ^= 0xff;
41
- }
42
- for (let i = 7; i > -1; i--) {
43
- bytes[i]++;
44
- if (bytes[i] !== 0)
45
- break;
46
- }
47
- }
1
+ module.exports = require("./index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("./index.js");
@@ -1,18 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageDecoderStream = void 0;
4
- class MessageDecoderStream {
5
- constructor(options) {
6
- this.options = options;
7
- }
8
- [Symbol.asyncIterator]() {
9
- return this.asyncIterator();
10
- }
11
- async *asyncIterator() {
12
- for await (const bytes of this.options.inputStream) {
13
- const decoded = this.options.decoder.decode(bytes);
14
- yield decoded;
15
- }
16
- }
17
- }
18
- exports.MessageDecoderStream = MessageDecoderStream;
1
+ module.exports = require("./index.js");
@@ -1,21 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageEncoderStream = void 0;
4
- class MessageEncoderStream {
5
- constructor(options) {
6
- this.options = options;
7
- }
8
- [Symbol.asyncIterator]() {
9
- return this.asyncIterator();
10
- }
11
- async *asyncIterator() {
12
- for await (const msg of this.options.messageStream) {
13
- const encoded = this.options.encoder.encode(msg);
14
- yield encoded;
15
- }
16
- if (this.options.includeEndFrame) {
17
- yield new Uint8Array(0);
18
- }
19
- }
20
- }
21
- exports.MessageEncoderStream = MessageEncoderStream;
1
+ module.exports = require("./index.js");
@@ -1,20 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmithyMessageDecoderStream = void 0;
4
- class SmithyMessageDecoderStream {
5
- constructor(options) {
6
- this.options = options;
7
- }
8
- [Symbol.asyncIterator]() {
9
- return this.asyncIterator();
10
- }
11
- async *asyncIterator() {
12
- for await (const message of this.options.messageStream) {
13
- const deserialized = await this.options.deserializer(message);
14
- if (deserialized === undefined)
15
- continue;
16
- yield deserialized;
17
- }
18
- }
19
- }
20
- exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream;
1
+ module.exports = require("./index.js");
@@ -1,18 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmithyMessageEncoderStream = void 0;
4
- class SmithyMessageEncoderStream {
5
- constructor(options) {
6
- this.options = options;
7
- }
8
- [Symbol.asyncIterator]() {
9
- return this.asyncIterator();
10
- }
11
- async *asyncIterator() {
12
- for await (const chunk of this.options.inputStream) {
13
- const payloadBuf = this.options.serializer(chunk);
14
- yield payloadBuf;
15
- }
16
- }
17
- }
18
- exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream;
1
+ module.exports = require("./index.js");