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

commitplease

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitplease - npm Package Compare versions

Comparing version 2.7.3-0 to 2.7.3-1

2

install.js

@@ -23,3 +23,3 @@ var fs = require('fs')

} else if (/ENOTDIR/.test(err.message)) {
console.error('Will not install in a git submodule')
console.log('Will not install in a git submodule')
process.exit(0)

@@ -26,0 +26,0 @@ } else {

@@ -5,16 +5,17 @@ var process = require('child_process')

try {
comment = process.execSync(command).toString().trim()
} catch (error) {
// errors.status === 1 if the following:
// a) 'core.commentchar' has not been set (git defaults it to #)
// b) this is not a git repository
// c) maybe something else?
if (error.status !== 1) {
throw error
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/
module.exports = function (value) {
try {
comment = process.execSync(command).toString().trim()
} catch (error) {
// errors.status === 1 if the following:
// a) 'core.commentchar' has not been set (git defaults it to #)
// b) this is not a git repository
// c) maybe something else?
if (error.status !== 1) {
throw error
}
}
}
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/
module.exports = function (value) {
var isComment = new RegExp('^' + comment)

@@ -21,0 +22,0 @@ return value.replace(scissor, '').split(/\n/).filter(function (line) {

{
"name": "commitplease",
"version": "2.7.3-0",
"version": "2.7.3-1",
"description": "Validates strings as commit messages",

@@ -5,0 +5,0 @@ "main": "index.js",

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