asynctrace
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36844
16
688