@npmcli/git
Advanced tools
Comparing version 2.0.9 to 2.1.0
@@ -7,3 +7,4 @@ module.exports = { | ||
find: require('./find.js'), | ||
isClean: require('./is-clean.js') | ||
isClean: require('./is-clean.js'), | ||
errors: require('./errors.js') | ||
} |
const spawn = require('@npmcli/promise-spawn') | ||
const promiseRetry = require('promise-retry') | ||
const shouldRetry = require('./should-retry.js') | ||
const makeError = require('./make-error.js') | ||
const whichGit = require('./which.js') | ||
@@ -36,8 +36,9 @@ const makeOpts = require('./opts.js') | ||
.catch(er => { | ||
if (!shouldRetry(er.stderr, number)) { | ||
throw er | ||
const gitError = makeError(er) | ||
if (!gitError.shouldRetry(number)) { | ||
throw gitError | ||
} | ||
retry(er) | ||
retry(gitError) | ||
}) | ||
}, retry) | ||
} |
{ | ||
"name": "@npmcli/git", | ||
"version": "2.0.9", | ||
"version": "2.1.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21661
17
471
1