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.6.0 to 0.6.1

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

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

// Create hooks directory if needed
if (!fs.existsSync(dir)) fs.mkdirSync(dir)
// Create hook file
if (!fs.existsSync(filename)) {

@@ -48,0 +51,0 @@ this.write(filename, data)

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

// should return git hooks path
husky.hooksDir(function(err, dir) {

@@ -15,7 +16,7 @@ assert.equal(err, null)

// Create tmp dir
var dir = __dirname + '/../tmp'
// Reset tmp dir
rm.sync('../tmp')
fs.mkdirSync('../tmp')
rm.sync(dir)
fs.mkdirSync(dir)
var dir = '../tmp/hooks'

@@ -22,0 +23,0 @@ // husky should be able to create a hook and update it

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