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

bin-v8-flags-filter

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-v8-flags-filter - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

index.js

@@ -57,3 +57,3 @@ var spawn = require('child_process').spawn;

cliProc.on('exit', function (code, signal) {
if (useShutdownMessage)
if (useShutdownMessage && process.disconnect)
process.disconnect();

@@ -70,2 +70,6 @@

process.on('SIGINT', function () {
function forceKill () {
cliProc.kill('SIGTERM');
}
if (useShutdownMessage)

@@ -76,5 +80,3 @@ cliProc.send('shutdown');

setTimeout(function () {
cliProc.kill('SIGTERM');
}, forcedKillDelay);
setTimeout(forceKill, forcedKillDelay).unref();
});

@@ -81,0 +83,0 @@

2

package.json
{
"name": "bin-v8-flags-filter",
"version": "1.1.0",
"version": "1.1.1",
"description": "Filters out v8 flags for your Node.js CLIs.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,4 +5,5 @@ var path = require('path');

var gracefulShutdown = process.argv.indexOf('--graceful-shutdown') > -1;
var noIPCTest = process.argv.indexOf('--no-ipc-test') > -1;
filter(path.join(__dirname, './actual-cli.js'), { useShutdownMessage: gracefulShutdown });
filter(path.join(__dirname, './actual-cli.js'), { useShutdownMessage: gracefulShutdown || noIPCTest });

@@ -50,1 +50,27 @@ var execFile = require('child_process').execFile;

});
it('[Regression] Should not abort if using shutdown message and no parent IPC was established', function (done) {
var args = [
path.join(__dirname, './cli.js'),
'--hey',
'--allow-natives-syntax',
'-t=yo',
'--trace-gc',
'--no-ipc-test'
];
var output = '';
var cliProcess = spawn(process.execPath, args, { stdio: 'pipe' });
cliProcess.stdout.on('data', function (data) {
output += data.toString();
});
cliProcess.on('exit', function (code) {
assert.equal(code, 0);
assert.ok(output.indexOf('$$$ARGS:["--hey","-t=yo","--no-ipc-test"]$$$') > -1);
assert.ok(output.indexOf('$$$ISSMI:true$$$') > -1);
done();
});
});
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