Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch(err => {
debug('fetchAction error', err.statusCode, err.code, err.message)
if (tryLocal && err.code !== 406) {
// 406 means that this is a valid action, but lacking composer source
return fetchFile(name)
} else {
throw err
}
})
}