New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

head-hash

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

head-hash - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

8

index.js

@@ -6,9 +6,11 @@ 'use strict';

const headHash = (option) => {
const config = Object.assign({}, option);
return new Promise((resolve, reject) => {
const cmd = [
const command = [
'git rev-parse --verify',
option.short ? ' --short' : '',
config.short ? ' --short' : '',
' HEAD'
].join('');
exec(cmd, (err, stdout) => {
exec(command, { cwd : config.cwd }, (err, stdout) => {
if (err) {

@@ -15,0 +17,0 @@ reject(err);

{
"name": "head-hash",
"version": "0.2.2",
"version": "0.2.3",
"description": "Get the current commit hash.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/sholladay/head-hash",

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