Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-describe

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-describe - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

package-lock.json

10

lib/git-describe.js

@@ -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);

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc