stacktracey
Advanced tools
Comparing version 2.0.17 to 2.0.18
{ | ||
"name": "stacktracey", | ||
"version": "2.0.17", | ||
"version": "2.0.18", | ||
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
@@ -7,2 +7,3 @@ "use strict"; | ||
isBrowser = (typeof window !== 'undefined') && (window.window === window) && window.navigator, | ||
nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call | ||
lastOf = x => x[x.length - 1], | ||
@@ -14,3 +15,3 @@ getSource = require ('get-source'), | ||
pathRoot = isBrowser ? window.location.href : (nixSlashes (process.cwd ()) + '/'), | ||
pathToRelative = isBrowser ? ((root, full) => full.replace (root, '')) : module.require ('path').relative | ||
pathToRelative = isBrowser ? ((root, full) => full.replace (root, '')) : nodeRequire ('path').relative | ||
@@ -51,3 +52,3 @@ /* ------------------------------------------------------------------------ */ | ||
const rawLines = module.require ('util').inspect (originalInput).split ('\n') | ||
const rawLines = nodeRequire ('util').inspect (originalInput).split ('\n') | ||
, fileLine = rawLines[0].split (':') | ||
@@ -54,0 +55,0 @@ , line = fileLine.pop () |
Sorry, the diff of this file is not supported yet
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
42700
526