Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fatso83/check-commit-msg

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fatso83/check-commit-msg - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

git-root.js
const pkgDir = require("pkg-dir");
const findUp = require("find-up");
const debug = require("debug")("check-commit-msg");
const debug = require("debug")("check-commit-msg.git-root");

@@ -5,0 +5,0 @@ debug("cwd: ", process.cwd());

@@ -6,8 +6,13 @@ /* eslint-disable no-console */

const rootDir = require("./git-root");
const debug = require("debug")("check-commit-msg.is-rebase-merge");
const rebasePath = path.join(rootDir, ".git/rebase-merge");
const mergePath = path.join(rootDir, ".git/MERGE_HEAD");
const rebasePath = path.join(rootDir, "rebase-merge");
const mergePath = path.join(rootDir, "MERGE_HEAD");
const isInMergeOrRebase = () =>
fs.existsSync(rebasePath) || fs.existsSync(mergePath);
debug("rebase", rebasePath);
debug("merge", mergePath);
// this path only happens if testing the script alone
if (require.main === module) {

@@ -14,0 +19,0 @@ const result = isInMergeOrRebase();

{
"name": "@fatso83/check-commit-msg",
"version": "2.0.0",
"version": "2.0.1",
"bin": "./cli.js",

@@ -22,4 +22,10 @@ "description": "Check if your commit message follows Chris Beam's \"Seven rules of a good commit message\"",

"find-up": "^4.0.0",
"husky": "^3.0.9",
"pkg-dir": "^4.2.0"
},
"husky": {
"hooks": {
"pre-commit": "./test.sh"
}
}
}

Sorry, the diff of this file is not supported yet

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