@hipnation-truth/sdk 0.15.0 → 0.15.1
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/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -262,6 +262,16 @@ var AttachmentsResource = class {
|
|
|
262
262
|
body,
|
|
263
263
|
signal: abort.signal
|
|
264
264
|
});
|
|
265
|
+
} catch (err) {
|
|
266
|
+
const isAbort = err instanceof Error && (err.name === "AbortError" || err.name === "TimeoutError");
|
|
267
|
+
if (isAbort) {
|
|
268
|
+
throw new AttachmentsError(
|
|
269
|
+
"s3-put",
|
|
270
|
+
0,
|
|
271
|
+
"S3 upload timed out after 30s"
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
throw err;
|
|
265
275
|
} finally {
|
|
266
276
|
clearTimeout(timer);
|
|
267
277
|
}
|