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

asynctrace

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asynctrace - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

test/bugs-test.js

16

lib/asynctrace.js

@@ -80,3 +80,3 @@ 'use strict';

function categorizeFrame(frame) {
var filename = frame && frame.getFileName && Path.normalize(frame.getFileName());
var filename = frame && frame.getFileName && frame.getFileName() && Path.normalize(frame.getFileName());
if (!filename)

@@ -98,11 +98,13 @@ return 'core';

if (!frame) return seed;
if (typeof frame == 'string') {
if (frame != seed[seed.length - 1]) seed.push(frame);
return seed;
if (typeof frame === 'string') {
if (frame === seed[seed.length - 1]) return seed;
return seed.concat(frame);
}
frame._section = categorizeFrame(frame);
frame._prefix = getPrefix(frame);
if (!frame._prefix) return seed;
frame._suffix = getSuffix(frame);
if (frame._prefix) seed.push(frame);
return seed;
return seed.concat(frame);
}

@@ -122,3 +124,3 @@

function frameToString(frame) {
if (typeof frame == 'string') {
if (typeof frame === 'string') {
return frame;

@@ -125,0 +127,0 @@ }

@@ -45,3 +45,3 @@ {

},
"version": "1.6.2"
"version": "1.6.3"
}
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