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.13.4 to 0.14.0-0

__tests__/index.js

17

bin/install.js

@@ -0,8 +1,9 @@

'use strict'
// Run when package is installed
var path = require('path')
var chalk = require('chalk')
var isCI = require('is-ci')
var husky = require('../src/')
const path = require('path')
const isCI = require('is-ci')
const installFrom = require('../src/install')
console.log(chalk.cyan.underline('husky'))
console.log('husky')

@@ -14,5 +15,5 @@ if (isCI) {

console.log('setting up hooks')
console.log('setting up Git hooks')
var huskyDir = path.join(__dirname, '..')
husky.installFrom(huskyDir)
const huskyDir = path.join(__dirname, '..')
installFrom(huskyDir)

@@ -0,10 +1,11 @@

'use strict'
// Run when package is uninstalled
var path = require('path')
var chalk = require('chalk')
var husky = require('../src/')
const path = require('path')
const uninstallFrom = require('../src/uninstall')
console.log(chalk.cyan.underline('husky'))
console.log('uninstalling')
console.log('husky')
console.log('uninstalling Git hooks')
var huskyDir = path.join(__dirname, '..')
husky.uninstallFrom(huskyDir)
const huskyDir = path.join(__dirname, '..')
uninstallFrom(huskyDir)
# CHANGELOG
## Unreleased
* Drop Node 0.12 support
* Don't reload nvm if it's already in PATH
* Add Git worktree support [#114](https://github.com/typicode/husky/pull/114)
* Hide irrelevant `--no-verify` message for `prepare-commit-msg` [#137](https://github.com/typicode/husky/issues/137)
## 0.13.4
* Add Node version to husky output
## 0.13.3

@@ -4,0 +15,0 @@

@@ -0,0 +0,0 @@ # Hooks

{
"name": "husky",
"version": "0.13.4",
"version": "0.14.0-0",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",
"main": "./src/index.js",
"engines": {
"node": ">=4"
},
"scripts": {
"test": "mocha && standard",
"precommit": "npm test",
"prepublish": "pkg-ok",
"test": "jest",
"format": "prettier --single-quote --no-semi --write **/*.js",
"precommit": "npm test && npm format",
"prepublishOnly": "pkg-ok",
"install": "node ./bin/install.js",

@@ -39,5 +42,7 @@ "uninstall": "node ./bin/uninstall.js"

"expect": "^1.20.2",
"jest": "^20.0.4",
"mocha": "^3.2.0",
"mock-fs": "^3.12.1",
"mock-fs": "^4.4.1",
"pkg-ok": "^1.0.1",
"prettier": "^1.4.4",
"rimraf": "^2.2.8",

@@ -47,12 +52,11 @@ "standard": "^8.6.0"

"dependencies": {
"chalk": "^1.1.3",
"find-parent-dir": "^0.3.0",
"is-ci": "^1.0.9",
"normalize-path": "^1.0.0"
"is-ci": "^1.0.10",
"normalize-path": "^1.0.0",
"strip-indent": "^2.0.0"
},
"standard": {
"env": {
"mocha": true
"jest": true
}
}
}

@@ -41,3 +41,3 @@ # husky [![](http://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![npm version](https://badge.fury.io/js/husky.svg)](https://www.npmjs.com/package/husky) [![Build Status](https://travis-ci.org/typicode/husky.svg?branch=master)](https://travis-ci.org/typicode/husky)

* [Hotel](https://github.com/typicode/hotel)
* ... and almost 4000 [other awesome projects](https://libraries.io/npm/husky/dependent-repositories).
* ... and almost 4000+ [other awesome projects](https://libraries.io/npm/husky/dependent-repositories).

@@ -78,3 +78,3 @@ ## Uninstall

By default, husky will run scripts using `--silent` to make the output more readable. If you want to override this, simply pass a different log level to your scripts:
By default, husky will run scripts using `--silent` to make the output more readable. If you want to override this, simply pass a different log level to your scripts:

@@ -107,2 +107,2 @@ ```json

MIT - [Typicode :cactus:](https://github.com/typicode)
MIT - [Typicode :cactus:](https://github.com/typicode) - [Patreon](https://www.patreon.com/typicode)

@@ -0,0 +0,0 @@ [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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