@dotenvx/dotenvx
Advanced tools
Comparing version 1.19.1 to 1.19.2
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.19.1...main) | ||
## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.19.2...main) | ||
## 1.19.2 | ||
### Changed | ||
* forward additional signals like `SIGUSR2` ([#403](https://github.com/dotenvx/dotenvx/pull/403)) | ||
## 1.19.1 | ||
@@ -9,0 +15,0 @@ |
{ | ||
"version": "1.19.1", | ||
"version": "1.19.2", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`", |
@@ -14,3 +14,3 @@ const path = require('path') | ||
let commandProcess | ||
let child | ||
let signalSent | ||
@@ -22,8 +22,8 @@ | ||
logger.debug('checking command process') | ||
logger.debug(commandProcess) | ||
logger.debug(child) | ||
if (commandProcess) { | ||
if (child) { | ||
logger.debug('sending SIGINT to command process') | ||
signalSent = 'SIGINT' | ||
commandProcess.kill('SIGINT') // Send SIGINT to the command process | ||
child.kill('SIGINT') // Send SIGINT to the command process | ||
} else { | ||
@@ -37,8 +37,8 @@ logger.debug('no command process to send SIGINT to') | ||
logger.debug('checking command process') | ||
logger.debug(commandProcess) | ||
logger.debug(child) | ||
if (commandProcess) { | ||
if (child) { | ||
logger.debug('sending SIGTERM to command process') | ||
signalSent = 'SIGTERM' | ||
commandProcess.kill('SIGTERM') // Send SIGTERM to the command process | ||
child.kill('SIGTERM') // Send SIGTERM to the command process | ||
} else { | ||
@@ -51,2 +51,3 @@ logger.debug('no command process to send SIGTERM to') | ||
logger.debug(`received ${signal}`) | ||
child.kill(signal) | ||
} | ||
@@ -80,3 +81,3 @@ /* c8 ignore stop */ | ||
commandProcess = execute.execa(commandArgs[0], commandArgs.slice(1), { | ||
child = execute.execa(commandArgs[0], commandArgs.slice(1), { | ||
stdio: 'inherit', | ||
@@ -94,3 +95,3 @@ env: { ...process.env, ...env } | ||
// Wait for the command process to finish | ||
const { exitCode } = await commandProcess | ||
const { exitCode } = await child | ||
@@ -97,0 +98,0 @@ if (exitCode !== 0) { |
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
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
207352
3521