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.0.0-rc.11 to 1.0.0-rc.12

5

CHANGELOG.md
# CHANGELOG
## 1.0.0-rc.12
* Fix exit code when used with unsupported Node version
* Update dependencies
## 1.0.0-rc.11

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

6

lib/runner/index.js

@@ -19,7 +19,7 @@ "use strict";

*/
function default_1([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = getStdin // Used for mocking
function run([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = getStdin // Used for mocking
) {
return __awaiter(this, void 0, void 0, function* () {
const cwd = path.resolve(scriptPath.split('node_modules')[0]);
const pkg = readPkg.sync(cwd, { normalize: false });
const pkg = readPkg.sync({ cwd, normalize: false });
const config = getConf_1.default(cwd);

@@ -64,2 +64,2 @@ const command = config && config.hooks && config.hooks[hookName];

}
exports.default = default_1;
exports.default = run;

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

};
function migrate(dir) {
const pkgFile = path.join(dir, 'package.json');
function upgrade(cwd) {
const pkgFile = path.join(cwd, 'package.json');
if (fs.existsSync(pkgFile)) {
const pkg = readPkg.sync(dir, { normalize: false });
const pkg = readPkg.sync({ cwd, normalize: false });
console.log(`husky > upgrading ${pkgFile}`);

@@ -54,2 +54,2 @@ // Don't overwrite pkg.husky if it exists

}
exports.default = migrate;
exports.default = upgrade;
{
"name": "husky",
"version": "1.0.0-rc.11",
"version": "1.0.0-rc.12",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",

@@ -19,2 +19,3 @@ "bin": {

"version": "jest -u && git add -A src/installer/__tests__/__snapshots__",
"postversion": "git push && git push --tags",
"prepublishOnly": "npm run test && npm run build && pinst --enable && pkg-ok",

@@ -53,8 +54,8 @@ "postpublish": "pinst --disable",

"execa": "^0.9.0",
"find-up": "^2.1.0",
"find-up": "^3.0.0",
"get-stdin": "^6.0.0",
"is-ci": "^1.1.0",
"pkg-dir": "^2.0.0",
"please-upgrade-node": "^3.1.0",
"read-pkg": "^3.0.0",
"pkg-dir": "^3.0.0",
"please-upgrade-node": "^3.1.1",
"read-pkg": "^4.0.1",
"run-node": "^1.0.0",

@@ -67,12 +68,12 @@ "slash": "^2.0.0"

"@types/get-stdin": "^5.0.1",
"@types/jest": "^23.1.0",
"@types/node": "^10.3.3",
"@types/jest": "^23.1.4",
"@types/node": "^10.5.1",
"del": "^3.0.0",
"del-cli": "^1.1.0",
"formatree": "^1.0.2",
"jest": "^23.1.0",
"jest": "^23.3.0",
"mkdirp": "^0.5.1",
"pinst": "^1.1.1",
"pkg-ok": "^2.2.0",
"prettier": "^1.13.5",
"prettier": "^1.13.7",
"tempy": "^0.2.1",

@@ -79,0 +80,0 @@ "ts-jest": "^23.0.0",

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