Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
0
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.0.4

5

lib/bin.js

@@ -9,2 +9,3 @@ #!/usr/bin/env node

const install_1 = require("./commands/install");
const uninstall_1 = require("./commands/uninstall");
const fs_1 = __importDefault(require("fs"));

@@ -23,2 +24,3 @@ const path_1 = __importDefault(require("path"));

husky install [path from git root to package.json]
husky uninstall
husky add <hookname> [cmd]

@@ -44,2 +46,5 @@

}
else if (arg === 'uninstall') {
uninstall_1.uninstall();
}
else if (['--version', '-v'].includes(arg)) {

@@ -46,0 +51,0 @@ version();

4

lib/commands/uninstall.js

@@ -9,4 +9,6 @@ "use strict";

function uninstall() {
child_process_1.default.spawnSync('git', ['config', '--unset', 'core.hooksPath']);
child_process_1.default.spawnSync('git', ['config', '--unset', 'core.hooksPath'], {
stdio: 'inherit',
});
}
exports.uninstall = uninstall;
{
"name": "husky",
"version": "5.0.3",
"version": "5.0.4",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc