lint-staged
Advanced tools
Comparing version 12.3.7 to 12.3.8
@@ -59,6 +59,10 @@ import { redBright, dim } from 'colorette' | ||
const interruptExecutionOnError = (ctx, execaChildProcess) => { | ||
let loopIntervalId | ||
async function loop() { | ||
if (ctx.errors.size > 0) { | ||
clearInterval(loopIntervalId) | ||
const ids = await pidTree(execaChildProcess.pid) | ||
ids.forEach(process.kill) | ||
ids.forEach((id) => process.kill(id)) | ||
@@ -71,3 +75,3 @@ // The execa process is killed separately in order | ||
const loopIntervalId = setInterval(loop, ERROR_CHECK_INTERVAL) | ||
loopIntervalId = setInterval(loop, ERROR_CHECK_INTERVAL) | ||
@@ -74,0 +78,0 @@ return () => { |
{ | ||
"name": "lint-staged", | ||
"version": "12.3.7", | ||
"version": "12.3.8", | ||
"description": "Lint files staged by git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
101293
1776
14