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

uglifyify

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uglifyify - npm Package Compare versions

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')

2

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

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