Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
41
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

lib/installer/checkGitVersion.js

5

lib/installer/bin.js

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

const gitRevParse_1 = require("./gitRevParse");
const checkGitVersion_1 = require("./checkGitVersion");
// Skip install if HUSKY_SKIP_INSTALL is true

@@ -58,4 +59,6 @@ function checkSkipInstallEnv() {

debug_1.debug(`Current working directory is ${process.cwd()}`);
if (action === 'install')
if (action === 'install') {
checkSkipInstallEnv();
checkGitVersion_1.checkGitVersion();
}
const INIT_CWD = getInitCwdEnv();

@@ -62,0 +65,0 @@ const userPkgDir = getUserPkgDir(INIT_CWD);

@@ -21,12 +21,4 @@ "use strict";

.map(slash_1.default);
// Git rev-parse returns unknown options as is.
// If we get --absolute-git-dir in the output,
// it probably means that an old version of Git has been used.
// There seem to be a bug with --git-common-dir that was fixed in 2.13.0.
// See issues above.
if (gitCommonDir === '--git-common-dir') {
throw new Error('Husky requires Git >= 2.13.0, please upgrade Git');
}
return { prefix, gitCommonDir };
}
exports.gitRevParse = gitRevParse;

4

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

@@ -54,3 +54,5 @@ "bin": {

"ci-info": "^2.0.0",
"compare-versions": "^3.5.1",
"cosmiconfig": "^6.0.0",
"find-versions": "^3.2.0",
"opencollective-postinstall": "^2.0.2",

@@ -57,0 +59,0 @@ "pkg-dir": "^4.2.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc