Comparing version 4.2.4 to 4.2.5
@@ -17,3 +17,3 @@ #!/usr/bin/env node | ||
) | ||
} | ||
}, | ||
}) | ||
@@ -20,0 +20,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
const defaults = { | ||
skipCI: true | ||
skipCI: true, | ||
}; | ||
@@ -11,0 +11,0 @@ return Object.assign(Object.assign({}, defaults), config); |
@@ -48,3 +48,3 @@ "use strict"; | ||
`Can't find package.json in ${dir} directory or parents`, | ||
'Please check that your project has a package.json or create one and reinstall husky.' | ||
'Please check that your project has a package.json or create one and reinstall husky.', | ||
].join('\n')); | ||
@@ -75,3 +75,3 @@ } | ||
pmName, | ||
isCI: ci_info_1.isCI | ||
isCI: ci_info_1.isCI, | ||
}); | ||
@@ -78,0 +78,0 @@ } |
@@ -18,3 +18,3 @@ "use strict"; | ||
.split('\n') | ||
.map(s => s.trim()) | ||
.map((s) => s.trim()) | ||
// Normalize for Windows | ||
@@ -21,0 +21,0 @@ .map(slash_1.default); |
@@ -35,3 +35,3 @@ "use strict"; | ||
'post-rewrite', | ||
'sendemail-validate' | ||
'sendemail-validate', | ||
]; | ||
@@ -87,6 +87,4 @@ function getHooks(gitHooksDir) { | ||
function removeHooks(gitHooksDir) { | ||
getHooks(gitHooksDir) | ||
.filter(canRemove) | ||
.forEach(removeHook); | ||
getHooks(gitHooksDir).filter(canRemove).forEach(removeHook); | ||
} | ||
exports.removeHooks = removeHooks; |
@@ -22,4 +22,3 @@ "use strict"; | ||
function install({ absoluteGitCommonDir, relativeUserPkgDir, userPkgDir, pmName, // package manager name | ||
isCI // running in CI or not | ||
}) { | ||
isCI, }) { | ||
// Get conf from package.json or .huskyrc | ||
@@ -47,3 +46,3 @@ const conf = getConf_1.getConf(userPkgDir); | ||
exports.install = install; | ||
function uninstall({ absoluteGitCommonDir, userPkgDir }) { | ||
function uninstall({ absoluteGitCommonDir, userPkgDir, }) { | ||
if (isInNodeModules(userPkgDir)) { | ||
@@ -50,0 +49,0 @@ console.log('Trying to uninstall from node_modules directory, skipping Git hooks uninstallation.'); |
@@ -35,3 +35,3 @@ "use strict"; | ||
env: Object.assign(Object.assign({}, process.env), env), | ||
stdio: 'inherit' | ||
stdio: 'inherit', | ||
}); | ||
@@ -43,3 +43,3 @@ if (status !== 0) { | ||
'pre-rebase', | ||
'pre-push' | ||
'pre-push', | ||
].includes(hookName) | ||
@@ -50,2 +50,8 @@ ? '(add --no-verify to bypass)' | ||
} | ||
// If shell exits with 127 it means that some command was not found. | ||
// However, if husky has been deleted from node_modules, it'll be a 127 too. | ||
// To be able to distinguish between both cases, 127 is changed to 1. | ||
if (status === 127) { | ||
return 1; | ||
} | ||
return status || 0; | ||
@@ -52,0 +58,0 @@ } |
@@ -29,3 +29,3 @@ "use strict"; | ||
sendemailvalidate: 'sendemail-validate', | ||
update: 'update' | ||
update: 'update', | ||
}; | ||
@@ -32,0 +32,0 @@ function upgrade(cwd) { |
{ | ||
"name": "husky", | ||
"version": "4.2.4", | ||
"version": "4.2.5", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -52,5 +52,5 @@ "bin": { | ||
"dependencies": { | ||
"chalk": "^3.0.0", | ||
"chalk": "^4.0.0", | ||
"ci-info": "^2.0.0", | ||
"compare-versions": "^3.5.1", | ||
"compare-versions": "^3.6.0", | ||
"cosmiconfig": "^6.0.0", | ||
@@ -67,25 +67,25 @@ "find-versions": "^3.2.0", | ||
"@types/cosmiconfig": "^6.0.0", | ||
"@types/jest": "^24.0.25", | ||
"@types/mkdirp": "^0.5.2", | ||
"@types/node": "^13.1.4", | ||
"@typescript-eslint/eslint-plugin": "^2.15.0", | ||
"@typescript-eslint/parser": "^2.15.0", | ||
"cross-env": "^6.0.3", | ||
"@types/jest": "^25.2.1", | ||
"@types/mkdirp": "^1.0.0", | ||
"@types/node": "^13.11.1", | ||
"@typescript-eslint/eslint-plugin": "^2.27.0", | ||
"@typescript-eslint/parser": "^2.27.0", | ||
"cross-env": "^7.0.2", | ||
"del": "^5.1.0", | ||
"del-cli": "^3.0.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.9.0", | ||
"eslint-config-xo-space": "^0.22.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
"eslint-config-xo-space": "^0.24.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"formatree": "^1.0.2", | ||
"jest": "^24.9.0", | ||
"jest": "^25.3.0", | ||
"markdown-toc": "^1.2.0", | ||
"mkdirp": "^0.5.1", | ||
"mkdirp": "^1.0.4", | ||
"pinst": "^2.0.0", | ||
"pkg-ok": "^2.3.1", | ||
"prettier": "^1.19.1", | ||
"tempy": "^0.3.0", | ||
"ts-jest": "^24.2.0", | ||
"type-fest": "^0.8.1", | ||
"typescript": "^3.7.4" | ||
"prettier": "^2.0.4", | ||
"tempy": "^0.5.0", | ||
"ts-jest": "^25.3.1", | ||
"type-fest": "^0.13.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -92,0 +92,0 @@ "jest": { |
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
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
50854
619
+ Addedchalk@4.1.2(transitive)
- Removedchalk@3.0.0(transitive)
Updatedchalk@^4.0.0
Updatedcompare-versions@^3.6.0