Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sourcemapped-stacktrace

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcemapped-stacktrace - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

demo/.babelrc

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc