source-map-support
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"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 |
10
test.js
@@ -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(), [ |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
153149
25
1498
4
5
10