Socket
Socket
Sign inDemoInstall

source-mapper

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source-mapper - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

CHANGES.md
# Changes
## 0.2.1
- Map IE 10 stack traces
## 0.2.0

@@ -4,0 +8,0 @@

4

lib/source-mapper.js

@@ -15,4 +15,4 @@ /*

var stackRE = new RegExp('^(\\s*(?:at (?:.+ \\()?)?)'
+ '(\\[stdin\\]|about:blank|(?:http|file)\\:\\/\\/.+)\\:([0-9]+)'
+ '(\\:[0-9]+\\)?$|\\)?$)', 'gm');
+ '(\\[stdin\\]|about:blank|(?:http|file)\\:\\/\\/.+|Unknown script code)'
+ '\\:([0-9]+)(\\:[0-9]+\\)?$|\\)?$)', 'gm');

@@ -19,0 +19,0 @@

{
"name": "source-mapper",
"version": "0.2.0",
"version": "0.2.1",
"description": "Replace URLs in track traces with original sources",

@@ -5,0 +5,0 @@ "author": "Maximilian Antoni <mail@maxantoni.de> (http://maxantoni.de)",

@@ -88,2 +88,11 @@ /*global describe, it, before, beforeEach*/

it('maps IE 10 stack line', function () {
var base = path.resolve('test', 'fixture', 'thrower.js');
assert.equal(
mapper.line(c, 'at Anonymous function (Unknown script code:5:1)'),
'at Anonymous function (' + base + ':4:1)'
);
});
it('does not map "abc http://"', function () {

@@ -90,0 +99,0 @@ var line = 'abc http://localhost:5';

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