git-validate
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -7,2 +7,8 @@ var Fs = require('fs'); | ||
internals.throwWarn = function (warning) { | ||
console.error('WARNING:', warning, 'installation aborted.'); | ||
process.exit(0); | ||
}; | ||
// Find the topmost parent of the given module. | ||
@@ -139,3 +145,3 @@ internals.findParent = function (mod) { | ||
else { | ||
throw new Error('Unable to find a .git folder for this project'); | ||
return internals.throwWarn('Unable to find a .git folder for this project'); | ||
} | ||
@@ -159,3 +165,3 @@ | ||
if (root === Path.resolve(root, '..')) { | ||
throw new Error('Unable to find a package.json for this project'); | ||
return internals.throwWarn('Unable to find a package.json for this project'); | ||
} | ||
@@ -162,0 +168,0 @@ |
{ | ||
"name": "git-validate", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "the extensible core of precommit-hook", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
30956
373