Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

3

package.json
{
"name": "husky",
"version": "0.10.0",
"version": "0.10.1",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",

@@ -36,3 +36,2 @@ "main": "index.js",

"devDependencies": {
"mkdirp": "^0.5.1",
"rimraf": "^2.2.8"

@@ -39,0 +38,0 @@ },

@@ -60,3 +60,3 @@ var fs = require('fs')

'[ $? -ne 0 ] && exit 0',
'npm run ' + cmd + ' --silent -- "$@"',
'npm run ' + cmd + ' --silent',
'if [ $? -ne 0 ]; then',

@@ -63,0 +63,0 @@ ' echo',

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

var rmrf = require('rimraf')
var mkdirp = require('mkdirp')
var husky = require('../src/')

@@ -19,7 +18,7 @@

rmrf.sync(path.join(__dirname, '../tmp'))
mkdirp.sync(path.join(__dirname, '../tmp'))
fs.mkdirSync(path.join(__dirname, '../tmp'))
var dir = '../tmp/hooks'
var dir = path.join(__dirname, '../tmp/hooks')
// husky should be able to create a hook and update it
// husky should be able to create hooks directory and hook script
assert.doesNotThrow(function () {

@@ -29,2 +28,3 @@ husky.create(dir, 'pre-commit', 'foo')

// husky should be able to update hook script
assert.doesNotThrow(function () {

@@ -31,0 +31,0 @@ husky.create(dir, 'pre-commit', 'bar')

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