@smithy/fetch-http-handler 5.3.14 → 5.3.15
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.
package/dist-cjs/index.js
CHANGED
|
@@ -161,7 +161,10 @@ function buildAbortError(abortSignal) {
|
|
|
161
161
|
: undefined;
|
|
162
162
|
if (reason) {
|
|
163
163
|
if (reason instanceof Error) {
|
|
164
|
-
|
|
164
|
+
const abortError = new Error("Request aborted");
|
|
165
|
+
abortError.name = "AbortError";
|
|
166
|
+
abortError.cause = reason;
|
|
167
|
+
return abortError;
|
|
165
168
|
}
|
|
166
169
|
const abortError = new Error(String(reason));
|
|
167
170
|
abortError.name = "AbortError";
|
|
@@ -143,7 +143,10 @@ function buildAbortError(abortSignal) {
|
|
|
143
143
|
: undefined;
|
|
144
144
|
if (reason) {
|
|
145
145
|
if (reason instanceof Error) {
|
|
146
|
-
|
|
146
|
+
const abortError = new Error("Request aborted");
|
|
147
|
+
abortError.name = "AbortError";
|
|
148
|
+
abortError.cause = reason;
|
|
149
|
+
return abortError;
|
|
147
150
|
}
|
|
148
151
|
const abortError = new Error(String(reason));
|
|
149
152
|
abortError.name = "AbortError";
|
package/package.json
CHANGED