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

@dotenvx/dotenvx

Package Overview
Dependencies
Maintainers
0
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotenvx/dotenvx - npm Package Compare versions

Comparing version 1.19.1 to 1.19.2

8

CHANGELOG.md

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

2

package.json
{
"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) {

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