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

pre-commit

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pre-commit - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

10

install.js

@@ -54,5 +54,7 @@ 'use strict';

var hookRelativeUnixPath = hook.replace(root, '.');
if(os.platform() === 'win32') {
hookRelativeUnixPath = hookRelativeUnixPath.replace(/[\\\/]+/g, '/');
}
var precommitContent = '#!/bin/bash' + os.EOL

@@ -77,1 +79,9 @@ + hookRelativeUnixPath + os.EOL

}
try { fs.chmodSync(precommit, 777); }
catch (e) {
console.error('pre-commit:');
console.error('pre-commit: chmod 0777 the pre-commit file in your .git/hooks folder because:');
console.error('pre-commit: '+ e.message);
console.error('pre-commit:');
}

2

package.json
{
"name": "pre-commit",
"version": "1.2.0",
"version": "1.2.1",
"description": "Automatically install pre-commit hooks for your npm modules.",

@@ -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