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.0 to 2.7.1-0

23

install.js

@@ -12,9 +12,24 @@ var fs = require('fs')

function xmkdirSync (path, mode) {
try {
fs.mkdirSync(path, mode)
} catch (err) {
if (/EPERM/.test(err.message)) {
console.error('Failed to create: ' + path)
console.error('Make sure you have the necessary permissions')
process.exit(1)
} else if (/EEXIST/.test(err.message)) {
// do nothing
} else {
console.error(err)
process.exit(1)
}
}
}
var git = path.resolve(process.cwd(), '..', '..', '.git')
var hooks = path.join(git, 'hooks')
if (!fs.existsSync(git) || !fs.existsSync(hooks)) {
fs.mkdirSync(git)
fs.mkdirSync(hooks)
}
xmkdirSync(git, parseInt('755', 8))
xmkdirSync(hooks, parseInt('755', 8))

@@ -21,0 +36,0 @@ var dstHook = path.join(hooks, 'commit-msg')

2

package.json
{
"name": "commitplease",
"version": "2.7.0",
"version": "2.7.1-0",
"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