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

lefthook

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lefthook - npm Package Compare versions

Comparing version 1.6.18 to 1.6.19

12

get-exe.js

@@ -1,2 +0,2 @@

const path = require("path")
const path = require("path");

@@ -7,6 +7,6 @@ function getExePath() {

let os = process.platform;
let extension = '';
if (['win32', 'cygwin'].includes(process.platform)) {
os = 'windows';
extension = '.exe';
let extension = "";
if (["win32", "cygwin"].includes(process.platform)) {
os = "windows";
extension = ".exe";
}

@@ -18,5 +18,5 @@

return require.resolve(`lefthook-${os}-${arch}/bin/lefthook${extension}`)
return require.resolve(`lefthook-${os}-${arch}/bin/lefthook${extension}`);
}
exports.getExePath = getExePath;
{
"name": "lefthook",
"version": "1.6.18",
"version": "1.6.19",
"description": "Simple git hooks manager",
"main": "index.js",
"repository": "https://github.com/evilmartians/lefthook",
"bin": {
"lefthook": "bin/index.js"
},
"keywords": [

@@ -23,10 +19,10 @@ "git",

"optionalDependencies": {
"lefthook-darwin-arm64": "1.6.18",
"lefthook-darwin-x64": "1.6.18",
"lefthook-linux-arm64": "1.6.18",
"lefthook-linux-x64": "1.6.18",
"lefthook-freebsd-arm64": "1.6.18",
"lefthook-freebsd-x64": "1.6.18",
"lefthook-windows-arm64": "1.6.18",
"lefthook-windows-x64": "1.6.18"
"lefthook-darwin-arm64": "1.6.19",
"lefthook-darwin-x64": "1.6.19",
"lefthook-linux-arm64": "1.6.19",
"lefthook-linux-x64": "1.6.19",
"lefthook-freebsd-arm64": "1.6.19",
"lefthook-freebsd-x64": "1.6.19",
"lefthook-windows-arm64": "1.6.19",
"lefthook-windows-x64": "1.6.19"
},

@@ -33,0 +29,0 @@ "scripts": {

@@ -1,7 +0,7 @@

const { spawnSync } = require("child_process")
const { getExePath } = require("./get-exe")
const { spawnSync } = require("child_process");
const { getExePath } = require("./get-exe");
function install() {
if (process.env.CI) {
return
return;
}

@@ -12,9 +12,11 @@

stdio: "inherit",
})
});
}
try {
install()
} catch(e) {
console.warn("'lefthook install' command failed. Try running it manually.\n" + e)
install();
} catch (e) {
console.warn(
"'lefthook install' command failed. Try running it manually.\n" + e,
);
}
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