@cdklabs/cdk-ecs-codedeploy 0.0.431 → 0.0.432

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 (182) hide show
  1. package/.jsii +3 -3
  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/@aws-sdk/client-codedeploy/package.json +38 -38
  8. package/node_modules/@aws-sdk/core/dist-cjs/index.js +7 -15
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +7 -15
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  12. package/node_modules/@aws-sdk/core/package.json +13 -13
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  16. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  17. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  18. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  19. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  20. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  21. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  22. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  24. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
  25. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
  26. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
  27. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
  28. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -7
  29. package/node_modules/@aws-sdk/nested-clients/package.json +38 -36
  30. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  31. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  32. package/node_modules/@aws-sdk/types/package.json +2 -2
  33. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  34. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  35. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  36. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +36 -19
  37. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  38. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +17 -0
  39. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +17 -12
  40. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  41. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts +10 -0
  42. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  43. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +3 -0
  44. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  45. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
  46. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
  47. package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
  48. package/node_modules/@smithy/abort-controller/package.json +2 -2
  49. package/node_modules/@smithy/config-resolver/package.json +6 -6
  50. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -8
  51. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
  52. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +1 -1
  53. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  54. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
  55. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
  56. package/node_modules/@smithy/core/package.json +11 -11
  57. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  58. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +18 -4
  59. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +18 -4
  60. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  61. package/node_modules/@smithy/hash-node/package.json +4 -4
  62. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  63. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  64. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  65. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  66. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  67. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  68. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  69. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  70. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +21 -8
  71. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +16 -0
  72. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -4
  73. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +3 -4
  74. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +9 -0
  75. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +9 -0
  76. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  77. package/node_modules/@smithy/property-provider/package.json +2 -2
  78. package/node_modules/@smithy/protocol-http/package.json +2 -2
  79. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  80. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  81. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  82. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  83. package/node_modules/@smithy/signature-v4/package.json +8 -8
  84. package/node_modules/@smithy/smithy-client/package.json +7 -7
  85. package/node_modules/@smithy/url-parser/package.json +3 -3
  86. package/node_modules/@smithy/util-base64/package.json +4 -4
  87. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  88. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  89. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  90. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  91. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  92. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  93. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  94. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  95. package/node_modules/@smithy/util-middleware/package.json +2 -2
  96. package/node_modules/@smithy/util-retry/package.json +3 -3
  97. package/node_modules/@smithy/util-stream/package.json +8 -8
  98. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  99. package/node_modules/@smithy/util-utf8/package.json +3 -3
  100. package/node_modules/@smithy/util-waiter/package.json +3 -3
  101. package/node_modules/@smithy/uuid/package.json +2 -2
  102. package/node_modules/fast-xml-builder/LICENSE +21 -0
  103. package/node_modules/fast-xml-builder/README.md +23 -0
  104. package/node_modules/fast-xml-builder/lib/builder.cjs +1 -0
  105. package/node_modules/fast-xml-builder/lib/builder.min.js +2 -0
  106. package/node_modules/fast-xml-builder/lib/builder.min.js.map +1 -0
  107. package/node_modules/fast-xml-builder/lib/fxb.d.cts +167 -0
  108. package/node_modules/fast-xml-builder/package.json +78 -0
  109. package/node_modules/fast-xml-builder/src/fxb.d.ts +156 -0
  110. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js → fast-xml-builder/src/fxb.js} +50 -50
  111. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/orderedJs2Xml.js +14 -3
  112. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/CHANGELOG.md +23 -0
  113. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  114. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  115. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  116. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.d.cts +15 -1
  117. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  118. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  119. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  120. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  121. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  122. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  123. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/package.json +3 -2
  124. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.d.ts +16 -0
  125. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.js +1 -1
  126. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  127. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/util.js +1 -26
  128. package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +106 -0
  129. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OptionsBuilder.js +10 -10
  130. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  131. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  132. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  133. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  134. package/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
  135. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XMLParser.js +22 -22
  136. package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +105 -0
  137. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/validator.js +34 -34
  138. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +6 -0
  139. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/DocTypeReader.js +1 -1
  140. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OptionsBuilder.js +2 -0
  141. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OrderedObjParser.js +27 -5
  142. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/XMLParser.js +21 -21
  143. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/node2json.js +38 -34
  144. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/xmlNode.js +10 -10
  145. package/package.json +6 -6
  146. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
  147. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
  148. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
  149. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
  150. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
  151. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
  152. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
  153. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
  154. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
  155. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
  156. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
  157. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
  158. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
  159. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
  160. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js → fast-xml-builder/CHANGELOG.md} +0 -0
  161. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-builder}/src/ignoreAttributes.js +0 -0
  162. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
  163. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/LICENSE +0 -0
  164. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/README.md +0 -0
  165. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/cli.js +0 -0
  166. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/man.js +0 -0
  167. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/read.js +0 -0
  168. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
  169. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
  170. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPath.js +0 -0
  171. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
  172. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
  173. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
  174. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
  175. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
  176. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
  177. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
  178. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
  179. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
  180. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
  181. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
  182. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
@@ -54,8 +54,7 @@ class FetchHttpHandler {
54
54
  const keepAlive = this.config.keepAlive === true;
55
55
  const credentials = this.config.credentials;
56
56
  if (abortSignal?.aborted) {
57
- const abortError = new Error("Request aborted");
58
- abortError.name = "AbortError";
57
+ const abortError = buildAbortError(abortSignal);
59
58
  return Promise.reject(abortError);
60
59
  }
61
60
  let path = request.path;
@@ -130,8 +129,7 @@ class FetchHttpHandler {
130
129
  if (abortSignal) {
131
130
  raceOfPromises.push(new Promise((resolve, reject) => {
132
131
  const onAbort = () => {
133
- const abortError = new Error("Request aborted");
134
- abortError.name = "AbortError";
132
+ const abortError = buildAbortError(abortSignal);
135
133
  reject(abortError);
136
134
  };
137
135
  if (typeof abortSignal.addEventListener === "function") {
@@ -157,6 +155,22 @@ class FetchHttpHandler {
157
155
  return this.config ?? {};
158
156
  }
159
157
  }
158
+ function buildAbortError(abortSignal) {
159
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
160
+ ? abortSignal.reason
161
+ : undefined;
162
+ if (reason) {
163
+ if (reason instanceof Error) {
164
+ return reason;
165
+ }
166
+ const abortError = new Error(String(reason));
167
+ abortError.name = "AbortError";
168
+ return abortError;
169
+ }
170
+ const abortError = new Error("Request aborted");
171
+ abortError.name = "AbortError";
172
+ return abortError;
173
+ }
160
174
 
161
175
  const streamCollector = async (stream) => {
162
176
  if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
@@ -36,8 +36,7 @@ export class FetchHttpHandler {
36
36
  const keepAlive = this.config.keepAlive === true;
37
37
  const credentials = this.config.credentials;
38
38
  if (abortSignal?.aborted) {
39
- const abortError = new Error("Request aborted");
40
- abortError.name = "AbortError";
39
+ const abortError = buildAbortError(abortSignal);
41
40
  return Promise.reject(abortError);
42
41
  }
43
42
  let path = request.path;
@@ -112,8 +111,7 @@ export class FetchHttpHandler {
112
111
  if (abortSignal) {
113
112
  raceOfPromises.push(new Promise((resolve, reject) => {
114
113
  const onAbort = () => {
115
- const abortError = new Error("Request aborted");
116
- abortError.name = "AbortError";
114
+ const abortError = buildAbortError(abortSignal);
117
115
  reject(abortError);
118
116
  };
119
117
  if (typeof abortSignal.addEventListener === "function") {
@@ -139,3 +137,19 @@ export class FetchHttpHandler {
139
137
  return this.config ?? {};
140
138
  }
141
139
  }
140
+ function buildAbortError(abortSignal) {
141
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
142
+ ? abortSignal.reason
143
+ : undefined;
144
+ if (reason) {
145
+ if (reason instanceof Error) {
146
+ return reason;
147
+ }
148
+ const abortError = new Error(String(reason));
149
+ abortError.name = "AbortError";
150
+ return abortError;
151
+ }
152
+ const abortError = new Error("Request aborted");
153
+ abortError.name = "AbortError";
154
+ return abortError;
155
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.3.11",
3
+ "version": "5.3.13",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -28,21 +28,21 @@
28
28
  "module": "./dist-es/index.js",
29
29
  "types": "./dist-types/index.d.ts",
30
30
  "dependencies": {
31
- "@smithy/protocol-http": "^5.3.10",
32
- "@smithy/querystring-builder": "^4.2.10",
31
+ "@smithy/protocol-http": "^5.3.11",
32
+ "@smithy/querystring-builder": "^4.2.11",
33
33
  "@smithy/types": "^4.13.0",
34
- "@smithy/util-base64": "^4.3.1",
34
+ "@smithy/util-base64": "^4.3.2",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/abort-controller": "^4.2.10",
38
+ "@smithy/abort-controller": "^4.2.11",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "premove": "4.0.0",
42
42
  "typedoc": "0.23.23"
43
43
  },
44
44
  "typesVersions": {
45
- "<4.0": {
45
+ "<4.5": {
46
46
  "dist-types/*": [
47
47
  "dist-types/ts3.4/*"
48
48
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline hash-node",
@@ -33,15 +33,15 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@smithy/types": "^4.13.0",
36
- "@smithy/util-buffer-from": "^4.2.1",
37
- "@smithy/util-utf8": "^4.2.1",
36
+ "@smithy/util-buffer-from": "^4.2.2",
37
+ "@smithy/util-utf8": "^4.2.2",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=18.0.0"
42
42
  },
43
43
  "typesVersions": {
44
- "<4.0": {
44
+ "<4.5": {
45
45
  "dist-types/*": [
46
46
  "dist-types/ts3.4/*"
47
47
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline invalid-dependency",
@@ -28,7 +28,7 @@
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
31
- "<4.0": {
31
+ "<4.5": {
32
32
  "dist-types/*": [
33
33
  "dist-types/ts3.4/*"
34
34
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/is-array-buffer",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Provides a function for detecting if an argument is an ArrayBuffer",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-content-length",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/protocol-http": "^5.3.10",
28
+ "@smithy/protocol-http": "^5.3.11",
29
29
  "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
- "<4.0": {
36
+ "<4.5": {
37
37
  "dist-types/*": [
38
38
  "dist-types/ts3.4/*"
39
39
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.4.20",
3
+ "version": "4.4.23",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -25,13 +25,13 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.23.6",
29
- "@smithy/middleware-serde": "^4.2.11",
30
- "@smithy/node-config-provider": "^4.3.10",
31
- "@smithy/shared-ini-file-loader": "^4.4.5",
28
+ "@smithy/core": "^3.23.9",
29
+ "@smithy/middleware-serde": "^4.2.12",
30
+ "@smithy/node-config-provider": "^4.3.11",
31
+ "@smithy/shared-ini-file-loader": "^4.4.6",
32
32
  "@smithy/types": "^4.13.0",
33
- "@smithy/url-parser": "^4.2.10",
34
- "@smithy/util-middleware": "^4.2.10",
33
+ "@smithy/url-parser": "^4.2.11",
34
+ "@smithy/util-middleware": "^4.2.11",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -44,7 +44,7 @@
44
44
  "node": ">=18.0.0"
45
45
  },
46
46
  "typesVersions": {
47
- "<4.0": {
47
+ "<4.5": {
48
48
  "dist-types/*": [
49
49
  "dist-types/ts3.4/*"
50
50
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.4.37",
3
+ "version": "4.4.40",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -34,14 +34,14 @@
34
34
  "license": "Apache-2.0",
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@smithy/node-config-provider": "^4.3.10",
38
- "@smithy/protocol-http": "^5.3.10",
39
- "@smithy/service-error-classification": "^4.2.10",
40
- "@smithy/smithy-client": "^4.12.0",
37
+ "@smithy/node-config-provider": "^4.3.11",
38
+ "@smithy/protocol-http": "^5.3.11",
39
+ "@smithy/service-error-classification": "^4.2.11",
40
+ "@smithy/smithy-client": "^4.12.3",
41
41
  "@smithy/types": "^4.13.0",
42
- "@smithy/util-middleware": "^4.2.10",
43
- "@smithy/util-retry": "^4.2.10",
44
- "@smithy/uuid": "^1.1.1",
42
+ "@smithy/util-middleware": "^4.2.11",
43
+ "@smithy/util-retry": "^4.2.11",
44
+ "@smithy/uuid": "^1.1.2",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -55,7 +55,7 @@
55
55
  "node": ">=18.0.0"
56
56
  },
57
57
  "typesVersions": {
58
- "<4.0": {
58
+ "<4.5": {
59
59
  "dist-types/*": [
60
60
  "dist-types/ts3.4/*"
61
61
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-serde",
@@ -26,7 +26,7 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/protocol-http": "^5.3.10",
29
+ "@smithy/protocol-http": "^5.3.11",
30
30
  "@smithy/types": "^4.13.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
@@ -34,7 +34,7 @@
34
34
  "node": ">=18.0.0"
35
35
  },
36
36
  "typesVersions": {
37
- "<4.0": {
37
+ "<4.5": {
38
38
  "dist-types/*": [
39
39
  "dist-types/ts3.4/*"
40
40
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -40,7 +40,7 @@
40
40
  "node": ">=18.0.0"
41
41
  },
42
42
  "typesVersions": {
43
- "<4.0": {
43
+ "<4.5": {
44
44
  "dist-types/*": [
45
45
  "dist-types/ts3.4/*"
46
46
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "4.3.10",
3
+ "version": "4.3.11",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -26,8 +26,8 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/property-provider": "^4.2.10",
30
- "@smithy/shared-ini-file-loader": "^4.4.5",
29
+ "@smithy/property-provider": "^4.2.11",
30
+ "@smithy/shared-ini-file-loader": "^4.4.6",
31
31
  "@smithy/types": "^4.13.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -42,7 +42,7 @@
42
42
  "node": ">=18.0.0"
43
43
  },
44
44
  "typesVersions": {
45
- "<4.0": {
45
+ "<4.5": {
46
46
  "dist-types/*": [
47
47
  "dist-types/ts3.4/*"
48
48
  ]
@@ -7,6 +7,23 @@ var https = require('https');
7
7
  var stream = require('stream');
8
8
  var http2 = require('http2');
9
9
 
10
+ function buildAbortError(abortSignal) {
11
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
12
+ ? abortSignal.reason
13
+ : undefined;
14
+ if (reason) {
15
+ if (reason instanceof Error) {
16
+ return reason;
17
+ }
18
+ const abortError = new Error(String(reason));
19
+ abortError.name = "AbortError";
20
+ return abortError;
21
+ }
22
+ const abortError = new Error("Request aborted");
23
+ abortError.name = "AbortError";
24
+ return abortError;
25
+ }
26
+
10
27
  const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
11
28
 
12
29
  const getTransformedHeaders = (headers) => {
@@ -287,8 +304,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
287
304
  _reject(arg);
288
305
  };
289
306
  if (abortSignal?.aborted) {
290
- const abortError = new Error("Request aborted");
291
- abortError.name = "AbortError";
307
+ const abortError = buildAbortError(abortSignal);
292
308
  reject(abortError);
293
309
  return;
294
310
  }
@@ -356,8 +372,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
356
372
  if (abortSignal) {
357
373
  const onAbort = () => {
358
374
  req.destroy();
359
- const abortError = new Error("Request aborted");
360
- abortError.name = "AbortError";
375
+ const abortError = buildAbortError(abortSignal);
361
376
  reject(abortError);
362
377
  };
363
378
  if (typeof abortSignal.addEventListener === "function") {
@@ -570,8 +585,7 @@ class NodeHttp2Handler {
570
585
  };
571
586
  if (abortSignal?.aborted) {
572
587
  fulfilled = true;
573
- const abortError = new Error("Request aborted");
574
- abortError.name = "AbortError";
588
+ const abortError = buildAbortError(abortSignal);
575
589
  reject(abortError);
576
590
  return;
577
591
  }
@@ -633,8 +647,7 @@ class NodeHttp2Handler {
633
647
  if (abortSignal) {
634
648
  const onAbort = () => {
635
649
  req.close();
636
- const abortError = new Error("Request aborted");
637
- abortError.name = "AbortError";
650
+ const abortError = buildAbortError(abortSignal);
638
651
  rejectWithDestroy(abortError);
639
652
  };
640
653
  if (typeof abortSignal.addEventListener === "function") {
@@ -0,0 +1,16 @@
1
+ export function buildAbortError(abortSignal) {
2
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
3
+ ? abortSignal.reason
4
+ : undefined;
5
+ if (reason) {
6
+ if (reason instanceof Error) {
7
+ return reason;
8
+ }
9
+ const abortError = new Error(String(reason));
10
+ abortError.name = "AbortError";
11
+ return abortError;
12
+ }
13
+ const abortError = new Error("Request aborted");
14
+ abortError.name = "AbortError";
15
+ return abortError;
16
+ }
@@ -2,6 +2,7 @@ import { HttpResponse } from "@smithy/protocol-http";
2
2
  import { buildQueryString } from "@smithy/querystring-builder";
3
3
  import { Agent as hAgent, request as hRequest } from "http";
4
4
  import { Agent as hsAgent, request as hsRequest } from "https";
5
+ import { buildAbortError } from "./build-abort-error";
5
6
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
6
7
  import { getTransformedHeaders } from "./get-transformed-headers";
7
8
  import { setConnectionTimeout } from "./set-connection-timeout";
@@ -110,8 +111,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
110
111
  _reject(arg);
111
112
  };
112
113
  if (abortSignal?.aborted) {
113
- const abortError = new Error("Request aborted");
114
- abortError.name = "AbortError";
114
+ const abortError = buildAbortError(abortSignal);
115
115
  reject(abortError);
116
116
  return;
117
117
  }
@@ -179,8 +179,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
179
179
  if (abortSignal) {
180
180
  const onAbort = () => {
181
181
  req.destroy();
182
- const abortError = new Error("Request aborted");
183
- abortError.name = "AbortError";
182
+ const abortError = buildAbortError(abortSignal);
184
183
  reject(abortError);
185
184
  };
186
185
  if (typeof abortSignal.addEventListener === "function") {
@@ -1,6 +1,7 @@
1
1
  import { HttpResponse } from "@smithy/protocol-http";
2
2
  import { buildQueryString } from "@smithy/querystring-builder";
3
3
  import { constants } from "http2";
4
+ import { buildAbortError } from "./build-abort-error";
4
5
  import { getTransformedHeaders } from "./get-transformed-headers";
5
6
  import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
6
7
  import { writeRequestBody } from "./write-request-body";
@@ -55,8 +56,7 @@ export class NodeHttp2Handler {
55
56
  };
56
57
  if (abortSignal?.aborted) {
57
58
  fulfilled = true;
58
- const abortError = new Error("Request aborted");
59
- abortError.name = "AbortError";
59
+ const abortError = buildAbortError(abortSignal);
60
60
  reject(abortError);
61
61
  return;
62
62
  }
@@ -118,8 +118,7 @@ export class NodeHttp2Handler {
118
118
  if (abortSignal) {
119
119
  const onAbort = () => {
120
120
  req.close();
121
- const abortError = new Error("Request aborted");
122
- abortError.name = "AbortError";
121
+ const abortError = buildAbortError(abortSignal);
123
122
  rejectWithDestroy(abortError);
124
123
  };
125
124
  if (typeof abortSignal.addEventListener === "function") {
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Builds an abort error, using the AbortSignal's reason if available.
3
+ *
4
+ * @param abortSignal - Optional AbortSignal that may contain a reason.
5
+ * @returns An Error with name "AbortError". If the signal has a reason that's
6
+ * already an Error, returns it directly. Otherwise creates a new Error
7
+ * with the reason as the message, or "Request aborted" if no reason.
8
+ */
9
+ export declare function buildAbortError(abortSignal?: unknown): Error;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Builds an abort error, using the AbortSignal's reason if available.
3
+ *
4
+ * @param abortSignal - Optional AbortSignal that may contain a reason.
5
+ * @returns An Error with name "AbortError". If the signal has a reason that's
6
+ * already an Error, returns it directly. Otherwise creates a new Error
7
+ * with the reason as the message, or "Request aborted" if no reason.
8
+ */
9
+ export declare function buildAbortError(abortSignal?: unknown): Error;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.4.12",
3
+ "version": "4.4.14",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,9 +27,9 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/abort-controller": "^4.2.10",
31
- "@smithy/protocol-http": "^5.3.10",
32
- "@smithy/querystring-builder": "^4.2.10",
30
+ "@smithy/abort-controller": "^4.2.11",
31
+ "@smithy/protocol-http": "^5.3.11",
32
+ "@smithy/querystring-builder": "^4.2.11",
33
33
  "@smithy/types": "^4.13.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
@@ -44,7 +44,7 @@
44
44
  "node": ">=18.0.0"
45
45
  },
46
46
  "typesVersions": {
47
- "<4.0": {
47
+ "<4.5": {
48
48
  "dist-types/*": [
49
49
  "dist-types/ts3.4/*"
50
50
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline property-provider",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "5.3.10",
3
+ "version": "5.3.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline protocol-http",
@@ -32,7 +32,7 @@
32
32
  "node": ">=18.0.0"
33
33
  },
34
34
  "typesVersions": {
35
- "<4.0": {
35
+ "<4.5": {
36
36
  "dist-types/*": [
37
37
  "dist-types/ts3.4/*"
38
38
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-builder",
@@ -24,14 +24,14 @@
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
26
  "@smithy/types": "^4.13.0",
27
- "@smithy/util-uri-escape": "^4.2.1",
27
+ "@smithy/util-uri-escape": "^4.2.2",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-parser",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
- "<4.0": {
36
+ "<4.5": {
37
37
  "dist-types/*": [
38
38
  "dist-types/ts3.4/*"
39
39
  ]