curfew 0.1.1 → 0.1.2
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/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ export const handler = async (event, context) => {
|
|
|
40
40
|
} catch (error) {
|
|
41
41
|
// The signal aborted mid-page: an expected timeout, not a failure.
|
|
42
42
|
// `curfew` passes handler errors through, so catch it here and resume from the interrupted page.
|
|
43
|
-
if (!(error instanceof Error && error.name
|
|
43
|
+
if (!(error instanceof Error && ['AbortError', 'TimeoutError'].includes(error.name))) throw error
|
|
44
44
|
await reenqueue({ offset })
|
|
45
45
|
}
|
|
46
46
|
}
|