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 5.0.1 to 5.0.2

3

lib/commands/add.js

@@ -18,2 +18,5 @@ "use strict";

function createHookFile(cwd, hookName, cmd) {
if (!fs_1.default.existsSync(path_1.default.join(cwd, hooksDir))) {
throw new Error("can't create hook, .husky directory doesn't exist");
}
const filename = getHookFile(cwd, hookName);

@@ -20,0 +23,0 @@ if (fs_1.default.existsSync(filename)) {

2

package.json
{
"name": "husky",
"version": "5.0.1",
"version": "5.0.2",
"description": "Git hooks made easy",

@@ -5,0 +5,0 @@ "bin": "lib/bin.js",

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