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 7.0.4 to 8.0.0

2

lib/bin.js

@@ -28,4 +28,4 @@ #!/usr/bin/env node

catch (e) {
console.error(e.message);
console.error(e instanceof Error ? `husky - ${e.message}` : e);
process.exit(1);
}

@@ -10,6 +10,10 @@ "use strict";

function install(dir = '.husky') {
if (process.env.HUSKY === '0') {
l('HUSKY env variable is set to 0, skipping install');
return;
}
if (git(['rev-parse']).status !== 0) {
return;
}
const url = 'https://git.io/Jc3F9';
const url = 'https://typicode.github.io/husky/#/?id=custom-directory';
if (!p.resolve(process.cwd(), dir).startsWith(process.cwd())) {

@@ -42,4 +46,4 @@ throw new Error(`.. not allowed (see ${url})`);

}
fs.writeFileSync(file, `#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
fs.writeFileSync(file, `#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

@@ -46,0 +50,0 @@ ${cmd}

{
"name": "husky",
"version": "7.0.4",
"version": "8.0.0",
"description": "Modern native Git hooks made easy",

@@ -29,13 +29,13 @@ "keywords": [

"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@tsconfig/node12": "^1.0.7",
"@types/node": "^15.3.1",
"@typicode/eslint-config": "^0.1.2",
"docsify-cli": "^4.4.3",
"typescript": "^4.2.3"
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@tsconfig/node14": "^1.0.1",
"@types/node": "^17.0.29",
"@typicode/eslint-config": "^1.0.0",
"docsify-cli": "^4.4.4",
"typescript": "^4.6.3"
},
"engines": {
"node": ">=12"
"node": ">=14"
}
}

Sorry, the diff of this file is not supported yet

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