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

commit-hash

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-hash - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

index.js

@@ -32,4 +32,2 @@ var spawn = require('child_process').spawn,

console.log('getCommitHash(\'%s\')', commitRef);
function objectIsTag(commitRef, next) {

@@ -85,6 +83,4 @@ spawn(opts.bin, ['describe', '--exact-match', commitRef])

if (err || !commitHash) {
console.log(ref+' failed');
return next(new Error('invalid ref'));
}
console.log(ref+' ok!');
next(null, commitHash);

@@ -91,0 +87,0 @@ });

2

package.json
{
"name": "commit-hash",
"version": "0.2.0",
"version": "0.2.1",
"description": "Get commit hash from a branch name, tag, or reference",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/dgoguerra/commit-hash#readme",

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