Comparing version 4.0.4 to 4.0.5
17
index.js
@@ -48,8 +48,3 @@ var minimatch = require('minimatch').Minimatch | ||
}, capture(function ready() { | ||
var matched = buffer.match( | ||
// match an inlined sourceMap with or without a charset definition | ||
/\/\/[#@] ?sourceMappingURL=data:application\/json(?:;charset=utf-8)?;base64,([a-zA-Z0-9+\/]+)={0,2}\n?$/ | ||
) | ||
debug = opts.sourceMap !== false && (debug || matched) | ||
debug = opts.sourceMap !== false && debug | ||
opts = extend({}, { | ||
@@ -74,6 +69,4 @@ compress: true, | ||
// If so, send it in to ujs.minify as the inSourceMap parameter | ||
if (debug && matched) { | ||
opts.sourceMap.content = convert.fromJSON( | ||
new Buffer(matched[1], 'base64').toString() | ||
).sourcemap | ||
if (debug) { | ||
opts.sourceMap.content = 'inline' | ||
} | ||
@@ -94,6 +87,2 @@ | ||
map.setProperty('sources', [path.basename(file)]) | ||
map.setProperty('sourcesContent', matched | ||
? opts.sourceMap.sourcesContent | ||
: [buffer] | ||
) | ||
@@ -100,0 +89,0 @@ this.queue('\n') |
{ | ||
"name": "uglifyify", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "A browserify transform which minifies your code using UglifyJS2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
10055
4
122