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

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.7.3 to 4.7.4

2

index.js

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

const traceFile = /^stacks\.(.*)\.out$/
const isolateLog = /^isolate-((0x)?[0-9A-Fa-f]{2,16})-(.*)-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))

@@ -111,0 +111,0 @@ if (!stacks) {

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

.filter(function (f) {
return /isolate-(0x[0-9A-Fa-f]{2,12})-v8\.log/.test(f)
return /isolate-(0x[0-9A-Fa-f]{2,12})(-\d+)?(-\d+)?-v8\.log/.test(f)
})

@@ -60,0 +60,0 @@ .forEach(function (f) {

{
"name": "0x",
"version": "4.7.3",
"version": "4.7.4",
"description": "🔥 single-command flamegraph profiling 🔥",

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

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

v8.getIsolateLog = function (workingDir, pid) {
const regex = new RegExp(`isolate-0(x)?([0-9A-Fa-f]{2,16})-${pid}-v8.log`)
const regex = new RegExp(`isolate-0(x)?([0-9A-Fa-f]{2,16})(-${pid})?-${pid}-v8.log`)
return fs.readdirSync(workingDir).find(regex.test.bind(regex))

@@ -129,0 +129,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