on-error-resume-next
Advanced tools
Changelog
[2.0.0] - 2024-06-01
Introduced named exports and removed default imports
Synchronous and asynchronous are now separated into different exports
import { onErrorResumeNext } from 'on-error-resume-next'
for synchronous functionsimport { onErrorResumeNext } from 'on-error-resume-next/async'
for asynchronous functions, will always return Promise
regardless the resolution and rejection is handled synchronously or asynchronouslyimport { onErrorResumeNext } from 'on-error-resume-next/auto'
to auto-detect (legacy behavior), will return on return
/throw
, and resolve on resolve
/reject
If you are using v1, you will need to port your code as follow:
import onErrorResumeNext from 'on-error-resume-next';