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 1.0.0-rc.13 to 1.0.0-rc.14

5

CHANGELOG.md
# CHANGELOG
## 1.0.0-rc.14
* Make `--no-verify` message more accurate and only show it for hooks that can be skipped
* Improve error messages
## 1.0.0-rc.13

@@ -4,0 +9,0 @@

4

DOCS.md

@@ -7,2 +7,4 @@ # Documentation

Server-side hooks (`pre-receive`, `update` and `post-receive`) aren't supported.
## Access Git params and stdin

@@ -71,2 +73,2 @@

- if you're running `git` commands in the terminal, husky will use the version defined in your shell `PATH`. So if you're a `nvm` user, husky will use the version that you've set with `nvm`.
- if you're using a GUI client and `nvm`, it may have a different `PATH` and not load `nvm`, in this case the highest `node` version installed by `nvm` will usually be picked. You can also check `~/.node_path` to see which version is used by GUIs.
- if you're using a GUI client and `nvm`, it may have a different `PATH` and not load `nvm`, in this case the highest `node` version installed by `nvm` will usually be picked. You can also check `~/.node_path` to see which version is used by GUIs and edit if you want to use something else.

@@ -0,0 +0,0 @@ const pleaseUpgradeNode = require('please-upgrade-node')

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -112,2 +112,3 @@ "use strict";

console.log("Can't find .git, skipping Git hooks installation.");
console.log("Please check that you're in a cloned repository", "or run 'git init' to create an empty Git repository and reinstall husky.");
return;

@@ -129,2 +130,3 @@ }

console.log("Can't find package.json, skipping Git hooks installation.");
console.log('Please check that your project has a package.json or create it and reinstall husky.');
return;

@@ -137,4 +139,4 @@ }

if (!fs.existsSync(path.join(resolvedGitDir, 'hooks'))) {
console.log(`Can't find hooks directory in ${resolvedGitDir}. You can try to fix this error by creating it manually.`);
console.log('Skipping Git hooks installation.');
console.log(`Can't find hooks directory in ${resolvedGitDir}, skipping Git hooks installation.`);
console.log(`Please create ${path.join(resolvedGitDir, 'hooks')} directory and reinstall husky.`);
return;

@@ -156,3 +158,3 @@ }

if (resolvedGitDir === null) {
console.log("Can't find resolved .git directory, skipping Git hooks installation.");
console.log("Can't find resolved .git directory, skipping Git hooks uninstallation.");
return;

@@ -159,0 +161,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -55,5 +55,10 @@ "use strict";

catch (err) {
const noVerifyMessage = hookName === 'prepare-commit-msg'
? '(cannot be bypassed with --no-verify due to Git specs)'
: '(add --no-verify to bypass)';
const noVerifyMessage = [
'commit-msg',
'pre-commit',
'pre-rebase',
'pre-push'
].includes(hookName)
? '(add --no-verify to bypass)'
: '(cannot be bypassed with --no-verify due to Git specs)';
console.log(`husky > ${hookName} hook failed ${noVerifyMessage}`);

@@ -60,0 +65,0 @@ return err.code;

@@ -0,0 +0,0 @@ "use strict";

{
"name": "husky",
"version": "1.0.0-rc.13",
"version": "1.0.0-rc.14",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",

@@ -51,7 +51,7 @@ "bin": {

"dependencies": {
"cosmiconfig": "^5.0.2",
"cosmiconfig": "^5.0.6",
"execa": "^0.9.0",
"find-up": "^3.0.0",
"get-stdin": "^6.0.0",
"is-ci": "^1.1.0",
"is-ci": "^1.2.1",
"pkg-dir": "^3.0.0",

@@ -67,18 +67,18 @@ "please-upgrade-node": "^3.1.1",

"@types/get-stdin": "^5.0.1",
"@types/jest": "^23.1.4",
"@types/node": "^10.5.1",
"@types/jest": "^23.3.2",
"@types/node": "^10.9.4",
"del": "^3.0.0",
"del-cli": "^1.1.0",
"formatree": "^1.0.2",
"jest": "^23.3.0",
"jest": "^23.6.0",
"mkdirp": "^0.5.1",
"pinst": "^1.1.1",
"pkg-ok": "^2.2.0",
"prettier": "^1.13.7",
"prettier": "^1.14.2",
"tempy": "^0.2.1",
"ts-jest": "^23.0.0",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
"ts-jest": "^23.1.4",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.9.2"
"typescript": "^3.0.3"
},

@@ -85,0 +85,0 @@ "jest": {

@@ -72,3 +72,2 @@ # Important: looking for your feedback, [husky survey](https://goo.gl/forms/rvSbDFhR5jLcwDGn2) ❤️

* Supports all Git hooks (`pre-commit`, `pre-push`, ...)
* Auto-migrates Git hooks installed by `ghooks`

@@ -75,0 +74,0 @@ ## Used by

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