Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const done = resp => {
log.notify('done', { state })
return resp
}
return acc.then(resp => {
log.notify('start', curr)
return fn(resp).then(resp2 => {
log.notify('stop', curr)
return resp2
})
})
}
return fn(resp).then(resp2 => {
log.notify('stop', curr)
return resp2
})
})