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

commit-message-validator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-message-validator - npm Package Compare versions

Comparing version 0.1.11 to 1.0.0

12

lib/cli.js

@@ -19,7 +19,17 @@ #!/usr/bin/env node

let message = fs.readFileSync(commitMsgFile, 'utf8')
message = message.split('\n')[0]
const tmpArr = message.split('\n')
let filtered = []
for (const line of tmpArr) {
// break at first comment line
if (/^# /.test(line)) {
break
}
filtered.push(line)
}
message = filtered.join('\n')
validator(message)
} catch (error) {
console.log('Error read COMMIT_EDITMSG file')
console.error(error)
process.exit(1)
}

8

package.json
{
"name": "commit-message-validator",
"version": "0.1.11",
"version": "1.0.0",
"description": "Git commit-msg hook validator",

@@ -14,3 +14,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/jinjutech/commit-message-validator.git"
"url": "git+https://github.com/banyudu/commit-message-validator.git"
},

@@ -25,5 +25,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/jinjutech/commit-message-validator/issues"
"url": "https://github.com/banyudu/commit-message-validator/issues"
},
"homepage": "https://github.com/jinjutech/commit-message-validator#readme",
"homepage": "https://github.com/banyudu/commit-message-validator#readme",
"bin": {

@@ -30,0 +30,0 @@ "commit-message-validator": "./lib/cli.js"

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