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.1.0 to 1.1.1

run.js

6

BACKERS.md
# Backers
To view the list of all the __amazing people and companies__ supporting Husky and my Open Source projects, please visit:
[thanks.typicode.com](http://thanks.typicode.com)
🌵
[thanks.typicode.com](http://thanks.typicode.com) 🌵
# CHANGELOG
## 1.1.1
* Check `HUSKY_SKIP_INSTALL` value first before checking if `.git` exists
* Check Node version before running hooks
## 1.1.0

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

@@ -0,0 +0,0 @@ # Documentation

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

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

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

@@ -44,5 +44,5 @@ "use strict";

const { version } = JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf-8'));
const script = slash(path.join(path.relative(rootDir, huskyDir), 'lib/runner/bin'));
const script = slash(path.join(path.relative(rootDir, huskyDir), 'run'));
return render({ node, platform, script, version });
}
exports.default = default_1;

@@ -110,2 +110,6 @@ "use strict";

// Checks
if (process.env.HUSKY_SKIP_INSTALL === 'true') {
console.log("HUSKY_SKIP_INSTALL environment variable is set to 'true',", 'skipping Git hooks installation.');
return;
}
if (gitDirOrFile === null) {

@@ -120,6 +124,2 @@ console.log("Can't find .git, skipping Git hooks installation.");

}
if (process.env.HUSKY_SKIP_INSTALL === 'true') {
console.log("HUSKY_SKIP_INSTALL environment variable is set to 'true',", 'skipping Git hooks installation.');
return;
}
if (isCI && conf.skipCI) {

@@ -126,0 +126,0 @@ console.log('CI detected, skipping Git hooks installation.');

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

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

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

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

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

{
"name": "husky",
"version": "1.1.0",
"version": "1.1.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 @@ "bin": {

@@ -0,0 +0,0 @@ # husky

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