git-describe
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -69,4 +69,10 @@ 'use strict'; | ||
var code = result.status || result.code; | ||
var err = new Error('Git returned with status ' + code + ': ' + | ||
stderr.toString().trim()); | ||
var errMsg = 'Git returned with status ' + code + ': ' + | ||
stderr.toString().trim(); | ||
switch (code) { | ||
case 'ENOENT': | ||
errMsg = 'Git executable not found in PATH (' + process.env.PATH + ')'; | ||
break; | ||
} | ||
var err = new Error(errMsg); | ||
if (_.isFunction(cb)) { | ||
@@ -73,0 +79,0 @@ cb(err); |
{ | ||
"name": "git-describe", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Git describe information at runtime, with semver support", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"chai": "^3.5.0", | ||
"mocha": "^3.1.2", | ||
"mocha": "^5.2.0", | ||
"rimraf": "^2.5.4" | ||
@@ -34,0 +34,0 @@ }, |
@@ -18,3 +18,3 @@ # git-describe | ||
Tests are not included in the npm package — | ||
clone the git repository to run tests. | ||
clone the git repository to run tests (Node.js 4+ required). | ||
@@ -24,2 +24,4 @@ As of version 4.0.0, `semver` is an optional dependency that does not have to | ||
Note that the `git` executable must be in the system's executable path for this module to function. | ||
## Usage | ||
@@ -26,0 +28,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
19237
6
422
102
1
2