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 2.3.0 to 2.4.0

.github/FUNDING.yml

4

CHANGELOG.md
# CHANGELOG
## 2.4.0
* Add `HUSKY_SKIP_HOOKS` to skip all hooks
## 2.3.0

@@ -4,0 +8,0 @@

@@ -31,2 +31,10 @@ # Documentation

## Skip all hooks
During a rebase you may want to skip all hooks, you can set `HUSKY_SKIP_HOOKS` environment variable to `1`.
```sh
HUSKY_SKIP_HOOKS=1 git rebase ...
```
## Multi-package repository (monorepo)

@@ -33,0 +41,0 @@

14

lib/installer/getScript.js

@@ -32,6 +32,14 @@ "use strict";

debug() {
[ "$\{HUSKY_DEBUG}" = "true" ] || [ "$\{HUSKY_DEBUG}" = "1" ] && echo "husky:debug $1"
if [ "$\{HUSKY_DEBUG}" = "true" ] || [ "$\{HUSKY_DEBUG}" = "1" ]; then
echo "husky:debug $1"
fi
}
debug "$hookName hook started..."
debug "$hookName hook started"
if [ "$\{HUSKY_SKIP_HOOKS}" = "true" ] || [ "$\{HUSKY_SKIP_HOOKS}" = "1" ]; then
debug "HUSKY_SKIP_HOOKS is set to $\{HUSKY_SKIP_HOOKS}, skipping hook"
exit 0
fi
${platform === 'win32'

@@ -41,3 +49,3 @@ ? ''

if ! command -v node >/dev/null 2>&1; then
echo "Info: Can't find node in PATH, trying to find a node binary on your system"
echo "Info: can't find node in PATH, trying to find a node binary on your system"
fi

@@ -44,0 +52,0 @@ `}

@@ -151,3 +151,3 @@ "use strict";

console.log('husky > Like husky? You can support the project on Patreon:');
console.log('husky > \x1b[4;36m%s\x1b[0m ❤', 'https://www.patreon.com/typicode');
console.log('husky > \x1b[36m%s\x1b[0m 🐕', 'https://www.patreon.com/typicode');
}

@@ -154,0 +154,0 @@ exports.install = install;

{
"name": "husky",
"version": "2.3.0",
"version": "2.4.0",
"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 @@ "bin": {

@@ -9,18 +9,10 @@ # husky

## Support
## Sponsors
If Husky is saving you (or your team) time, please consider supporting it on Patreon 👍 thank you!
<p>
<a href="https://www.patreon.com/bePatron?c=784328">
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
</a>
<a href="https://patreon.com/typicode">Support Husky and have your company logo here.</a>
</p>
## Sponsors
Visit [thanks.typicode.com](https://thanks.typicode.com) 🌵 to view all the people supporting husky.
<p>
<a href="https://patreon.com/typicode">Support Husky and be the first to have your company logo here ;)</a>
</p>
## Install

@@ -113,3 +105,3 @@

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

@@ -125,3 +117,1 @@ ## See also

MIT
[Patreon](https://www.patreon.com/typicode) - [Supporters](https://thanks.typicode.com) ✨
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