@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.mjs
CHANGED
|
@@ -198,6 +198,16 @@ var AttachmentsResource = class {
|
|
|
198
198
|
body,
|
|
199
199
|
signal: abort.signal
|
|
200
200
|
});
|
|
201
|
+
} catch (err) {
|
|
202
|
+
const isAbort = err instanceof Error && (err.name === "AbortError" || err.name === "TimeoutError");
|
|
203
|
+
if (isAbort) {
|
|
204
|
+
throw new AttachmentsError(
|
|
205
|
+
"s3-put",
|
|
206
|
+
0,
|
|
207
|
+
"S3 upload timed out after 30s"
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
throw err;
|
|
201
211
|
} finally {
|
|
202
212
|
clearTimeout(timer);
|
|
203
213
|
}
|