Comparing version 4.1.1 to 4.1.2
@@ -5,2 +5,3 @@ 'use strict' | ||
const fs = require('fs') | ||
const net = require('net') | ||
@@ -11,4 +12,12 @@ onListen(function (addr) { | ||
fs.writeSync(5, port, 0, port.length) | ||
fs.closeSync(5) | ||
signal(5, function () { | ||
process.exit() | ||
}) | ||
}) | ||
function signal (fd, cb) { | ||
const s = new net.Socket({fd, readable: true, writable: true}) | ||
s.unref() | ||
s.on('error', () => {}) | ||
s.on('close', cb) | ||
} |
{ | ||
"name": "0x", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "🔥 single-command flamegraph profiling 🔥", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ 'use strict' | ||
...(onPort ? [new Promise((resolve, reject) => { | ||
whenPort.then(() => proc.kill('SIGINT')) | ||
whenPort.then(() => proc.stdio[5].destroy()) | ||
whenPort.catch((err) => { | ||
@@ -55,0 +55,0 @@ proc.kill() |
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
Network access
Supply chain riskThis module accesses the network.
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
84159
1637
7