stack-sites
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "stack-sites", | ||
"description": "Returns current stack as call sites", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/bahmutov/stack-sites/issues", |
@@ -14,2 +14,6 @@ 'use strict' | ||
function isNative (line) { | ||
return line.includes('(native)') | ||
} | ||
function stackSites (stack) { | ||
@@ -20,2 +24,3 @@ stack = stack || ((new Error('stack-sites').stack)) | ||
.filter(hasLineInfo) | ||
.filter(line => !isNative(line)) | ||
.filter(isModule) | ||
@@ -22,0 +27,0 @@ .map(parseStackLine) |
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
7290
76