Socket
Socket
Sign inDemoInstall

0x

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

0x - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

11

lib/preload/detect-port.js

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

2

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

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