Socket
Socket
Sign inDemoInstall

source-map-support

Package Overview
Dependencies
2
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

amd-test/browser-source-map-support.js

2

package.json
{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
"version": "0.4.0",
"version": "0.4.1",
"main": "./source-map-support.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -309,2 +309,6 @@ var SourceMapConsumer = require('source-map').SourceMapConsumer;

function wrapCallSite(frame) {
if(frame.isNative()) {
return frame;
}
// Most call sites will return the source file from getFileName(), but code

@@ -311,0 +315,0 @@ // passed to eval() ending in "//# sourceURL=..." will return the source file

@@ -225,2 +225,12 @@ require('./source-map-support').install({

it('native function', function() {
compareStackTrace(createSingleLineSourceMap(), [
'[1].map(function(x) { throw new Error(x); });'
], [
'Error: 1',
/\/.original\.js/,
/at Array\.map \(native\)/
]);
});
it('function constructor', function() {

@@ -227,0 +237,0 @@ compareStackTrace(createMultiLineSourceMap(), [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc