sourcemapped-stacktrace
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "sourcemapped-stacktrace", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "https://github.com/novocaine/sourcemapped-stacktrace", | ||
"license": "BSD-3-Clause", | ||
"author": { "name": "James Salter", "email": "iteration@gmail.com" }, | ||
"author": { | ||
"name": "James Salter", | ||
"email": "iteration@gmail.com" | ||
}, | ||
"main": "dist/sourcemapped-stacktrace.js", | ||
"description": "A simple module for applying source maps to JS stack traces in the browser.", | ||
"dependencies": { | ||
"source-map": "0.1.37" | ||
"source-map": "0.5.6" | ||
}, | ||
"devDependencies": { | ||
"webpack": "^1.3.2-beta3" | ||
"babel-preset-es2015": "^6.9.0", | ||
"webpack": "^1.12.0" | ||
}, | ||
@@ -15,0 +19,0 @@ "repository": { |
@@ -15,3 +15,3 @@ /* | ||
// which includes gear for generating source maps that we don't need | ||
define(['./node_modules/source-map/lib/source-map/source-map-consumer'], | ||
define(['./node_modules/source-map/lib/source-map-consumer'], | ||
function(source_map_consumer) { | ||
@@ -72,3 +72,3 @@ /** | ||
}; | ||
var isFirefox = function() { | ||
@@ -187,3 +187,3 @@ return navigator.userAgent.toLowerCase().indexOf('firefox') > -1; | ||
result.push(formatOriginalPosition(origPos.source, | ||
origPos.line, origPos.column, origPos.name || String(row[0]).replace(/ +at +([^ ]*).*/, '$1'))); | ||
origPos.line, origPos.column, origPos.name || origName(lines[i]))); | ||
} else { | ||
@@ -193,3 +193,3 @@ // we can't find a map for that url, but we parsed the row. | ||
// lines. | ||
result.push(formatOriginalPosition(uri, line, column, "(unknown)")); | ||
result.push(formatOriginalPosition(uri, line, column, origName(lines[i]))); | ||
} | ||
@@ -205,2 +205,9 @@ } else { | ||
function origName(origLine) { | ||
var match = String(origLine).match(isChrome() ? | ||
/ +at +([^ ]*).*/ : | ||
/([^@]*)@.*/); | ||
return match && match[1]; | ||
} | ||
var formatOriginalPosition = function(source, line, column, name) { | ||
@@ -207,0 +214,0 @@ // mimic chrome's format |
Sorry, the diff of this file is too big to display
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
92916
13
2305
2
+ Addedsource-map@0.5.6(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedsource-map@0.1.37(transitive)
Updatedsource-map@0.5.6