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.0.10 to 4.0.11

2

package.json
{
"name": "0x",
"version": "4.0.10",
"version": "4.0.11",
"description": "🔥 single-command flamegraph profiling 🔥",

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

'use strict'
const fs = require('fs')

@@ -10,2 +11,5 @@ const path = require('path')

const v8LogToTicks = require('../lib/v8-log-to-ticks')
const { promisify } = require('util')
const rename = promisify(fs.rename)
const sleep = promisify(setTimeout)

@@ -73,3 +77,3 @@ const {

const isolateLogPath = path.join(folder, isolateLog)
fs.renameSync(path.join(args.workingDir, isolateLog), isolateLogPath)
await renameSafe(path.join(args.workingDir, isolateLog), isolateLogPath)
return {

@@ -83,2 +87,14 @@ ticks: await v8LogToTicks(isolateLogPath),

async function renameSafe (from, to, tries = 0) {
try {
await rename(from, to)
} catch (e) {
if (tries > 5) {
throw e
}
await sleep(1000)
await renameSafe(from, to, tries++)
}
}
function collectInliningInfo (sp) {

@@ -127,2 +143,2 @@ var root

return inlined
}
}
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