stack-sites
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "stack-sites", | ||
"description": "Returns current stack as call sites", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -73,2 +73,3 @@ "bugs": "https://github.com/bahmutov/stack-sites/issues", | ||
"pre-git": "3.14.0", | ||
"ramda": "0.23.0", | ||
"semantic-release": "6.3.6", | ||
@@ -75,0 +76,0 @@ "simple-commit-message": "3.0.2", |
@@ -19,2 +19,6 @@ 'use strict' | ||
function isInternal (line) { | ||
return line.includes('(internal/') | ||
} | ||
function stackSites (stack) { | ||
@@ -27,4 +31,6 @@ stack = stack || ((new Error('stack-sites').stack)) | ||
.filter(line => !isNative(line)) | ||
.filter(line => !isInternal(line)) | ||
.filter(isModule) | ||
.map(parseStackLine) | ||
// maybe limit stack sites to valid existing file? | ||
debug('parsed and cleaned up stack') | ||
@@ -31,0 +37,0 @@ debug(parsed) |
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
7841
86
12