Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
0
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.3 to 0.5.4

4

package.json
{
"name": "husky",
"version": "0.5.3",
"description": "Prevents bad commit or push (git hooks, pre-commit, pre-push and all that stuff...)",
"version": "0.5.4",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush and all that stuff...)",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -11,7 +11,7 @@ var fs = require('fs')

hooksDir: function(callback) {
exec('git rev-parse --show-toplevel', function(error, stdout, stderr) {
exec('git rev-parse --git-dir', function(error, stdout, stderr) {
if (error) {
callback(stderr, null)
} else {
callback(null, stdout.trim() + '/.git/hooks')
callback(null, stdout.trim() + '/hooks')
}

@@ -28,9 +28,9 @@ })

var filename = dir + '/' + name
var data =
var data =
'#!/bin/sh\n'
+ '# husky\n'
// Needed on OS X / Linux when nvm is used and committing from Sublime Text
if (process.platform !== 'win32') {
data += 'PATH="' + process.env.PATH + '"\n'
data += 'PATH="' + process.env.PATH + '"\n'
}

@@ -37,0 +37,0 @@

@@ -11,3 +11,3 @@ var assert = require('assert')

assert.equal(err, null)
assert.equal(dir, path.resolve(__dirname + '/../.git/hooks'))
assert.equal(dir, '.git/hooks')
})

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc