@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,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fromUtf8 = void 0;
4
- const fromUtf8 = (input) => new TextEncoder().encode(input);
5
- exports.fromUtf8 = fromUtf8;
1
+ module.exports = require("./index.js");
@@ -1,9 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fromUtf8 = void 0;
4
- const util_buffer_from_1 = require("@smithy/util-buffer-from");
5
- const fromUtf8 = (input) => {
6
- const buf = (0, util_buffer_from_1.fromString)(input, "utf8");
7
- return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
8
- };
9
- exports.fromUtf8 = fromUtf8;
1
+ module.exports = require("./index.js");
@@ -1,6 +1,55 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./fromUtf8"), exports);
5
- tslib_1.__exportStar(require("./toUint8Array"), exports);
6
- tslib_1.__exportStar(require("./toUtf8"), exports);
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 src_exports = {};
22
+ __export(src_exports, {
23
+ fromUtf8: () => fromUtf8,
24
+ toUint8Array: () => toUint8Array,
25
+ toUtf8: () => toUtf8
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+
29
+ // src/fromUtf8.ts
30
+ var import_util_buffer_from = require("@smithy/util-buffer-from");
31
+ var fromUtf8 = /* @__PURE__ */ __name((input) => {
32
+ const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
33
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
34
+ }, "fromUtf8");
35
+
36
+ // src/toUint8Array.ts
37
+ var toUint8Array = /* @__PURE__ */ __name((data) => {
38
+ if (typeof data === "string") {
39
+ return fromUtf8(data);
40
+ }
41
+ if (ArrayBuffer.isView(data)) {
42
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
43
+ }
44
+ return new Uint8Array(data);
45
+ }, "toUint8Array");
46
+
47
+ // src/toUtf8.ts
48
+
49
+ var toUtf8 = /* @__PURE__ */ __name((input) => (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"), "toUtf8");
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ fromUtf8,
53
+ toUint8Array,
54
+ toUtf8
55
+ });
@@ -1,14 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toUint8Array = void 0;
4
- const fromUtf8_1 = require("./fromUtf8");
5
- const toUint8Array = (data) => {
6
- if (typeof data === "string") {
7
- return (0, fromUtf8_1.fromUtf8)(data);
8
- }
9
- if (ArrayBuffer.isView(data)) {
10
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
11
- }
12
- return new Uint8Array(data);
13
- };
14
- exports.toUint8Array = toUint8Array;
1
+ module.exports = require("./index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toUtf8 = void 0;
4
- const toUtf8 = (input) => new TextDecoder("utf-8").decode(input);
5
- exports.toUtf8 = toUtf8;
1
+ module.exports = require("./index.js");
@@ -1,6 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toUtf8 = void 0;
4
- const util_buffer_from_1 = require("@smithy/util-buffer-from");
5
- const toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
6
- exports.toUtf8 = toUtf8;
1
+ module.exports = require("./index.js");
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@smithy/util-utf8",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "A UTF-8 string <-> UInt8Array converter",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
9
- "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
9
+ "build:cjs": "node ../../scripts/inline util-utf8",
10
10
  "build:es": "yarn g:tsc -p tsconfig.es.json",
11
11
  "build:types": "yarn g:tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
16
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "test": "yarn g:jest"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/util-buffer-from": "^2.0.0",
25
+ "@smithy/util-buffer-from": "^2.1.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,27 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createWaiter = void 0;
4
- const poller_1 = require("./poller");
5
- const utils_1 = require("./utils");
6
- const waiter_1 = require("./waiter");
7
- const abortTimeout = async (abortSignal) => {
8
- return new Promise((resolve) => {
9
- abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED });
10
- });
11
- };
12
- const createWaiter = async (options, input, acceptorChecks) => {
13
- const params = {
14
- ...waiter_1.waiterServiceDefaults,
15
- ...options,
16
- };
17
- (0, utils_1.validateWaiterOptions)(params);
18
- const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)];
19
- if (options.abortController) {
20
- exitConditions.push(abortTimeout(options.abortController.signal));
21
- }
22
- if (options.abortSignal) {
23
- exitConditions.push(abortTimeout(options.abortSignal));
24
- }
25
- return Promise.race(exitConditions);
26
- };
27
- exports.createWaiter = createWaiter;
1
+ module.exports = require("./index.js");
@@ -1,5 +1,153 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./createWaiter"), exports);
5
- tslib_1.__exportStar(require("./waiter"), exports);
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 src_exports = {};
22
+ __export(src_exports, {
23
+ WaiterState: () => WaiterState,
24
+ checkExceptions: () => checkExceptions,
25
+ createWaiter: () => createWaiter,
26
+ waiterServiceDefaults: () => waiterServiceDefaults
27
+ });
28
+ module.exports = __toCommonJS(src_exports);
29
+
30
+ // src/utils/sleep.ts
31
+ var sleep = /* @__PURE__ */ __name((seconds) => {
32
+ return new Promise((resolve) => setTimeout(resolve, seconds * 1e3));
33
+ }, "sleep");
34
+
35
+ // src/waiter.ts
36
+ var waiterServiceDefaults = {
37
+ minDelay: 2,
38
+ maxDelay: 120
39
+ };
40
+ var WaiterState = /* @__PURE__ */ ((WaiterState2) => {
41
+ WaiterState2["ABORTED"] = "ABORTED";
42
+ WaiterState2["FAILURE"] = "FAILURE";
43
+ WaiterState2["SUCCESS"] = "SUCCESS";
44
+ WaiterState2["RETRY"] = "RETRY";
45
+ WaiterState2["TIMEOUT"] = "TIMEOUT";
46
+ return WaiterState2;
47
+ })(WaiterState || {});
48
+ var checkExceptions = /* @__PURE__ */ __name((result) => {
49
+ if (result.state === "ABORTED" /* ABORTED */) {
50
+ const abortError = new Error(
51
+ `${JSON.stringify({
52
+ ...result,
53
+ reason: "Request was aborted"
54
+ })}`
55
+ );
56
+ abortError.name = "AbortError";
57
+ throw abortError;
58
+ } else if (result.state === "TIMEOUT" /* TIMEOUT */) {
59
+ const timeoutError = new Error(
60
+ `${JSON.stringify({
61
+ ...result,
62
+ reason: "Waiter has timed out"
63
+ })}`
64
+ );
65
+ timeoutError.name = "TimeoutError";
66
+ throw timeoutError;
67
+ } else if (result.state !== "SUCCESS" /* SUCCESS */) {
68
+ throw new Error(`${JSON.stringify({ result })}`);
69
+ }
70
+ return result;
71
+ }, "checkExceptions");
72
+
73
+ // src/poller.ts
74
+ var exponentialBackoffWithJitter = /* @__PURE__ */ __name((minDelay, maxDelay, attemptCeiling, attempt) => {
75
+ if (attempt > attemptCeiling)
76
+ return maxDelay;
77
+ const delay = minDelay * 2 ** (attempt - 1);
78
+ return randomInRange(minDelay, delay);
79
+ }, "exponentialBackoffWithJitter");
80
+ var randomInRange = /* @__PURE__ */ __name((min, max) => min + Math.random() * (max - min), "randomInRange");
81
+ var runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => {
82
+ var _a;
83
+ const { state, reason } = await acceptorChecks(client, input);
84
+ if (state !== "RETRY" /* RETRY */) {
85
+ return { state, reason };
86
+ }
87
+ let currentAttempt = 1;
88
+ const waitUntil = Date.now() + maxWaitTime * 1e3;
89
+ const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
90
+ while (true) {
91
+ if (((_a = abortController == null ? void 0 : abortController.signal) == null ? void 0 : _a.aborted) || (abortSignal == null ? void 0 : abortSignal.aborted)) {
92
+ return { state: "ABORTED" /* ABORTED */ };
93
+ }
94
+ const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
95
+ if (Date.now() + delay * 1e3 > waitUntil) {
96
+ return { state: "TIMEOUT" /* TIMEOUT */ };
97
+ }
98
+ await sleep(delay);
99
+ const { state: state2, reason: reason2 } = await acceptorChecks(client, input);
100
+ if (state2 !== "RETRY" /* RETRY */) {
101
+ return { state: state2, reason: reason2 };
102
+ }
103
+ currentAttempt += 1;
104
+ }
105
+ }, "runPolling");
106
+
107
+ // src/utils/validate.ts
108
+ var validateWaiterOptions = /* @__PURE__ */ __name((options) => {
109
+ if (options.maxWaitTime < 1) {
110
+ throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);
111
+ } else if (options.minDelay < 1) {
112
+ throw new Error(`WaiterConfiguration.minDelay must be greater than 0`);
113
+ } else if (options.maxDelay < 1) {
114
+ throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`);
115
+ } else if (options.maxWaitTime <= options.minDelay) {
116
+ throw new Error(
117
+ `WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
118
+ );
119
+ } else if (options.maxDelay < options.minDelay) {
120
+ throw new Error(
121
+ `WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
122
+ );
123
+ }
124
+ }, "validateWaiterOptions");
125
+
126
+ // src/createWaiter.ts
127
+ var abortTimeout = /* @__PURE__ */ __name(async (abortSignal) => {
128
+ return new Promise((resolve) => {
129
+ abortSignal.onabort = () => resolve({ state: "ABORTED" /* ABORTED */ });
130
+ });
131
+ }, "abortTimeout");
132
+ var createWaiter = /* @__PURE__ */ __name(async (options, input, acceptorChecks) => {
133
+ const params = {
134
+ ...waiterServiceDefaults,
135
+ ...options
136
+ };
137
+ validateWaiterOptions(params);
138
+ const exitConditions = [runPolling(params, input, acceptorChecks)];
139
+ if (options.abortController) {
140
+ exitConditions.push(abortTimeout(options.abortController.signal));
141
+ }
142
+ if (options.abortSignal) {
143
+ exitConditions.push(abortTimeout(options.abortSignal));
144
+ }
145
+ return Promise.race(exitConditions);
146
+ }, "createWaiter");
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ WaiterState,
150
+ checkExceptions,
151
+ createWaiter,
152
+ waiterServiceDefaults
153
+ });
@@ -1,38 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runPolling = void 0;
4
- const sleep_1 = require("./utils/sleep");
5
- const waiter_1 = require("./waiter");
6
- const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => {
7
- if (attempt > attemptCeiling)
8
- return maxDelay;
9
- const delay = minDelay * 2 ** (attempt - 1);
10
- return randomInRange(minDelay, delay);
11
- };
12
- const randomInRange = (min, max) => min + Math.random() * (max - min);
13
- const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => {
14
- var _a;
15
- const { state, reason } = await acceptorChecks(client, input);
16
- if (state !== waiter_1.WaiterState.RETRY) {
17
- return { state, reason };
18
- }
19
- let currentAttempt = 1;
20
- const waitUntil = Date.now() + maxWaitTime * 1000;
21
- const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
22
- while (true) {
23
- if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) {
24
- return { state: waiter_1.WaiterState.ABORTED };
25
- }
26
- const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
27
- if (Date.now() + delay * 1000 > waitUntil) {
28
- return { state: waiter_1.WaiterState.TIMEOUT };
29
- }
30
- await (0, sleep_1.sleep)(delay);
31
- const { state, reason } = await acceptorChecks(client, input);
32
- if (state !== waiter_1.WaiterState.RETRY) {
33
- return { state, reason };
34
- }
35
- currentAttempt += 1;
36
- }
37
- };
38
- exports.runPolling = runPolling;
1
+ module.exports = require("./index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./sleep"), exports);
5
- tslib_1.__exportStar(require("./validate"), exports);
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sleep = void 0;
4
- const sleep = (seconds) => {
5
- return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
6
- };
7
- exports.sleep = sleep;
1
+ module.exports = require("../index.js");
@@ -1,21 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateWaiterOptions = void 0;
4
- const validateWaiterOptions = (options) => {
5
- if (options.maxWaitTime < 1) {
6
- throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);
7
- }
8
- else if (options.minDelay < 1) {
9
- throw new Error(`WaiterConfiguration.minDelay must be greater than 0`);
10
- }
11
- else if (options.maxDelay < 1) {
12
- throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`);
13
- }
14
- else if (options.maxWaitTime <= options.minDelay) {
15
- throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`);
16
- }
17
- else if (options.maxDelay < options.minDelay) {
18
- throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`);
19
- }
20
- };
21
- exports.validateWaiterOptions = validateWaiterOptions;
1
+ module.exports = require("../index.js");
@@ -1,38 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0;
4
- exports.waiterServiceDefaults = {
5
- minDelay: 2,
6
- maxDelay: 120,
7
- };
8
- var WaiterState;
9
- (function (WaiterState) {
10
- WaiterState["ABORTED"] = "ABORTED";
11
- WaiterState["FAILURE"] = "FAILURE";
12
- WaiterState["SUCCESS"] = "SUCCESS";
13
- WaiterState["RETRY"] = "RETRY";
14
- WaiterState["TIMEOUT"] = "TIMEOUT";
15
- })(WaiterState = exports.WaiterState || (exports.WaiterState = {}));
16
- const checkExceptions = (result) => {
17
- if (result.state === WaiterState.ABORTED) {
18
- const abortError = new Error(`${JSON.stringify({
19
- ...result,
20
- reason: "Request was aborted",
21
- })}`);
22
- abortError.name = "AbortError";
23
- throw abortError;
24
- }
25
- else if (result.state === WaiterState.TIMEOUT) {
26
- const timeoutError = new Error(`${JSON.stringify({
27
- ...result,
28
- reason: "Waiter has timed out",
29
- })}`);
30
- timeoutError.name = "TimeoutError";
31
- throw timeoutError;
32
- }
33
- else if (result.state !== WaiterState.SUCCESS) {
34
- throw new Error(`${JSON.stringify({ result })}`);
35
- }
36
- return result;
37
- };
38
- exports.checkExceptions = checkExceptions;
1
+ module.exports = require("./index.js");
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "2.0.16",
3
+ "version": "2.1.0",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^2.0.16",
7
- "@smithy/types": "^2.8.0",
6
+ "@smithy/abort-controller": "^2.1.0",
7
+ "@smithy/types": "^2.9.0",
8
8
  "tslib": "^2.5.0"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
12
- "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
12
+ "build:cjs": "node ../../scripts/inline util-waiter",
13
13
  "build:es": "yarn g:tsc -p tsconfig.es.json",
14
14
  "build:types": "yarn g:tsc -p tsconfig.types.json",
15
15
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
package/package.json CHANGED
@@ -83,8 +83,8 @@
83
83
  "aws-cdk-lib": "2.110.0",
84
84
  "aws-sdk-client-mock": "^3.0.1",
85
85
  "aws-sdk-client-mock-jest": "^3.0.1",
86
- "cdk-nag": "^2.28.4",
87
- "cdklabs-projen-project-types": "^0.1.184",
86
+ "cdk-nag": "^2.28.11",
87
+ "cdklabs-projen-project-types": "^0.1.186",
88
88
  "constructs": "10.0.5",
89
89
  "esbuild": "^0.19.11",
90
90
  "eslint": "^8",
@@ -96,9 +96,9 @@
96
96
  "jsii-diff": "^1.94.0",
97
97
  "jsii-docgen": "^7.2.9",
98
98
  "jsii-pacmak": "^1.94.0",
99
- "jsii-rosetta": "^5.3.3",
99
+ "jsii-rosetta": "^5.3.4",
100
100
  "lambda-tester": "^4.0.1",
101
- "projen": "0.77.6",
101
+ "projen": "0.79.1",
102
102
  "standard-version": "^9",
103
103
  "ts-jest": "^27",
104
104
  "ts-node": "^10.9.2",
@@ -127,7 +127,7 @@
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "version": "0.0.235",
130
+ "version": "0.0.236",
131
131
  "jest": {
132
132
  "testMatch": [
133
133
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
package/.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- # ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
2
-
3
- *.snap linguist-generated
4
- /.eslintrc.json linguist-generated
5
- /.gitattributes linguist-generated
6
- /.github/pull_request_template.md linguist-generated
7
- /.github/workflows/auto-approve.yml linguist-generated
8
- /.github/workflows/build.yml linguist-generated
9
- /.github/workflows/pull-request-lint.yml linguist-generated
10
- /.github/workflows/release.yml linguist-generated
11
- /.github/workflows/upgrade-cdklabs-projen-project-types-main.yml linguist-generated
12
- /.github/workflows/upgrade-dev-deps-main.yml linguist-generated
13
- /.github/workflows/upgrade-main.yml linguist-generated
14
- /.gitignore linguist-generated
15
- /.mergify.yml linguist-generated
16
- /.npmignore linguist-generated
17
- /.projen/** linguist-generated
18
- /.projen/deps.json linguist-generated
19
- /.projen/files.json linguist-generated
20
- /.projen/tasks.json linguist-generated
21
- /API.md linguist-generated
22
- /LICENSE linguist-generated
23
- /package.json linguist-generated
24
- /src/ecs-deployment-provider/is-complete-function.ts linguist-generated
25
- /src/ecs-deployment-provider/on-event-function.ts linguist-generated
26
- /tsconfig.dev.json linguist-generated
27
- /yarn.lock linguist-generated
package/.projenrc.ts DELETED
@@ -1,113 +0,0 @@
1
- import { CdklabsConstructLibrary } from 'cdklabs-projen-project-types';
2
- import { awscdk, javascript, JsonPatch } from 'projen';
3
- import { Stability } from 'projen/lib/cdk';
4
-
5
- export interface WorkflowDotNetVersionPatchOptions {
6
- /**
7
- * The workflow to patch.
8
- */
9
- workflow: string;
10
- /**
11
- * Name of the job.
12
- */
13
- jobName: string;
14
- /**
15
- * dotNet Version
16
- */
17
- dotNetVersion: string;
18
- }
19
- export class WorkflowDotNetVersionPatch {
20
- public constructor(project: javascript.NodeProject, options: WorkflowDotNetVersionPatchOptions) {
21
- project.tryFindObjectFile(`.github/workflows/${options.workflow}.yml`)?.patch(
22
- JsonPatch.replace(`/jobs/${options.jobName}/steps/1/with/dotnet-version`, options.dotNetVersion),
23
- );
24
- }
25
- }
26
- const cdkVersion = '2.110.0';
27
- const project = new CdklabsConstructLibrary({
28
- setNodeEngineVersion: false,
29
- private: false,
30
- workflowNodeVersion: '18.x',
31
- versionrcOptions: {
32
- types: [
33
- { type: 'feat', section: 'Features' },
34
- { type: 'fix', section: 'Bug Fixes' },
35
- { type: 'chore', section: 'Chores' },
36
- { type: 'test', hidden: true },
37
- { type: 'build', hidden: true },
38
- { type: 'ci', hidden: true },
39
- ],
40
- },
41
- author: 'Amazon Web Services',
42
- authorAddress: 'https://aws.amazon.com',
43
- authorOrganization: true,
44
- cdkVersion,
45
- defaultReleaseBranch: 'main',
46
- name: '@cdklabs/cdk-ecs-codedeploy',
47
- description: 'CDK Constructs for performing ECS Deployments with CodeDeploy',
48
- repositoryUrl: 'https://github.com/cdklabs/cdk-ecs-codedeploy',
49
- stability: Stability.EXPERIMENTAL,
50
- docgen: true,
51
- autoApproveUpgrades: true,
52
- projenrcTs: true,
53
- autoApproveOptions: {
54
- allowedUsernames: ['cdklabs-automation'],
55
- secret: 'GITHUB_TOKEN',
56
- },
57
- lambdaOptions: {
58
- runtime: awscdk.LambdaRuntime.NODEJS_20_X,
59
- },
60
- jestOptions: {
61
- updateSnapshot: javascript.UpdateSnapshot.NEVER,
62
- },
63
- publishToMaven: {
64
- javaPackage: 'io.github.cdklabs.cdk.ecs.codedeploy',
65
- mavenGroupId: 'io.github.cdklabs',
66
- mavenArtifactId: 'cdk-ecs-codedeploy',
67
- mavenEndpoint: 'https://s01.oss.sonatype.org',
68
- },
69
- publishToNuget: {
70
- dotNetNamespace: 'Cdklabs.CdkEcsCodeDeploy',
71
- packageId: 'Cdklabs.CdkEcsCodeDeploy',
72
- },
73
- publishToPypi: {
74
- distName: 'cdklabs.ecs-codedeploy',
75
- module: 'cdk.ecs_codedeploy',
76
- },
77
- publishToGo: {
78
- moduleName: 'github.com/cdklabs/cdk-ecs-codedeploy-go',
79
- },
80
- devDeps: [
81
- '@types/aws-lambda',
82
- 'lambda-tester',
83
- 'aws-sdk-client-mock',
84
- 'aws-sdk-client-mock-jest',
85
- '@types/lambda-tester',
86
- `@aws-cdk/integ-tests-alpha@^${cdkVersion}-alpha.0`,
87
- 'cdk-nag',
88
- ],
89
- bundledDeps: [
90
- '@aws-sdk/client-codedeploy',
91
- 'jmespath',
92
- ],
93
- deps: [],
94
- peerDeps: [],
95
- keywords: [
96
- 'aws',
97
- 'cdk',
98
- 'ecs',
99
- 'codedeploy',
100
- ],
101
- });
102
-
103
- project.upgradeWorkflow?.postUpgradeTask.spawn(
104
- project.tasks.tryFind('bundle')!,
105
- );
106
- project.upgradeWorkflow?.postUpgradeTask.spawn(
107
- project.tasks.tryFind('integ:snapshot-all')!,
108
- );
109
-
110
- new WorkflowDotNetVersionPatch(project, { workflow: 'build', jobName: 'package-dotnet', dotNetVersion: '6.x' });
111
- new WorkflowDotNetVersionPatch(project, { workflow: 'release', jobName: 'release_nuget', dotNetVersion: '6.x' });
112
-
113
- project.synth();