Comparing version 1.6.18 to 1.6.19
@@ -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, | ||
); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
1
9462
4
34
1