stacktracey
Advanced tools
Comparing version 1.2.115 to 1.2.116
{ | ||
"name": "stacktracey", | ||
"version": "1.2.115", | ||
"version": "1.2.116", | ||
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
@@ -5,10 +5,11 @@ "use strict"; | ||
const O = Object, | ||
isBrowser = (typeof window !== 'undefined') && (window.window === window) && window.navigator, | ||
lastOf = x => x[x.length - 1], | ||
getSource = require ('get-source'), | ||
partition = require ('./impl/partition'), | ||
asTable = require ('as-table'), | ||
nixSlashes = x => x.replace (/\\/g, '/'), | ||
pathRoot = isBrowser ? window.location.href : (nixSlashes (process.cwd ()) + '/') | ||
const O = Object, | ||
isBrowser = (typeof window !== 'undefined') && (window.window === window) && window.navigator, | ||
lastOf = x => x[x.length - 1], | ||
getSource = require ('get-source'), | ||
partition = require ('./impl/partition'), | ||
asTable = require ('as-table'), | ||
nixSlashes = x => x.replace (/\\/g, '/'), | ||
pathRoot = isBrowser ? window.location.href : (nixSlashes (process.cwd ()) + '/'), | ||
pathToRelative = isBrowser ? ((root, full) => full.replace (root, '')) : module.require ('path').relative | ||
@@ -98,4 +99,3 @@ /* ------------------------------------------------------------------------ */ | ||
static relativePath (fullPath) { | ||
return fullPath.replace (pathRoot, '') | ||
.replace (/^.*\:\/\/?\/?/, '') | ||
return pathToRelative (pathRoot, fullPath).replace (/^.*\:\/\/?\/?/, '') | ||
} | ||
@@ -102,0 +102,0 @@ |
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
37260