Socket
Socket
Sign inDemoInstall

0x

Package Overview
Dependencies
Maintainers
3
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 5.1.2 to 5.2.0

6

index.js

@@ -126,3 +126,3 @@ 'use strict'

async function visualize ({ visualizeOnly, treeDebug, workingDir, title, mapFrames, open, name, pathToNodeBinary }) {
async function visualize ({ visualizeOnly, treeDebug, workingDir, title, mapFrames, open, name, pathToNodeBinary, collectDelay }) {
try {

@@ -132,3 +132,3 @@ const folder = getFolder(visualizeOnly, workingDir)

const traceFile = /^stacks\.(.*)\.out$/
const isolateLog = /^isolate-((0x)?[0-9A-Fa-f]{2,16})(?:-\d*)?-(\d*)-v8\.(log|json)$/
const isolateLog = /^isolate-((?:0x)?[0-9A-Fa-f]{2,16})(?:-\d*)?-(\d*)-v8\.(log|json)$/
const stacks = ls.find((f) => isolateLog.test(f) || traceFile.test(f))

@@ -156,3 +156,3 @@ if (!stacks) {

const ticks = (srcType === 'v8')
? await v8LogToTicks(src, { pathToNodeBinary })
? await v8LogToTicks(src, { pathToNodeBinary, collectDelay })
: traceStacksToTicks(src)

@@ -159,0 +159,0 @@

'use strict'
const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM']
for (let i = 0; i < SOFT_EXIT_SIGNALS.length; i++) {
process.on(SOFT_EXIT_SIGNALS[i], process.exit)
}
module.exports = { SOFT_EXIT_SIGNALS }
process.on('SIGINT', process.exit)
process.on('SIGTERM', process.exit)
{
"name": "0x",
"version": "5.1.2",
"version": "5.2.0",
"description": "🔥 single-command flamegraph profiling 🔥",

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

@@ -9,4 +9,2 @@ 'use strict'

const { SOFT_EXIT_SIGNALS } = require('../lib/preload/soft-exit')
const {

@@ -22,2 +20,4 @@ getTargetFolder,

const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM']
function linux (args, sudo, cb) {

@@ -24,0 +24,0 @@ const { status, outputDir, workingDir, name, onPort, pathToNodeBinary } = args

@@ -15,4 +15,2 @@ 'use strict'

const { SOFT_EXIT_SIGNALS } = require('../lib/preload/soft-exit')
const {

@@ -26,2 +24,4 @@ getTargetFolder,

const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM']
async function v8 (args) {

@@ -28,0 +28,0 @@ const { status, outputDir, workingDir, name, onPort, pathToNodeBinary, collectDelay } = args

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