Socket
Socket
Sign inDemoInstall

uglify-js

Package Overview
Dependencies
Maintainers
3
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uglify-js - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

7

lib/output.js

@@ -63,3 +63,4 @@ /***********************************************************************

comments : false,
preserve_line : false
preserve_line : false,
negate_iife : !(options && options.beautify),
}, true);

@@ -356,3 +357,3 @@

var needs_parens = self.needs_parens(stream);
var fc = self instanceof AST_Function && !stream.option("beautify");
var fc = self instanceof AST_Function && stream.option("negate_iife");
if (force_parens || (needs_parens && !fc)) {

@@ -1127,3 +1128,3 @@ stream.with_parens(function(){

if ((p instanceof AST_Seq && p.car === node ) ||
(p instanceof AST_Call && p.expression === node ) ||
(p instanceof AST_Call && p.expression === node && !(p instanceof AST_New) ) ||
(p instanceof AST_Dot && p.expression === node ) ||

@@ -1130,0 +1131,0 @@ (p instanceof AST_Sub && p.expression === node ) ||

@@ -190,2 +190,3 @@ /***********************************************************************

g.undeclared = true;
g.global = true;
globals.set(name, g);

@@ -192,0 +193,0 @@ }

@@ -6,3 +6,3 @@ {

"main": "tools/node.js",
"version": "2.3.5",
"version": "2.3.6",
"engines": { "node" : ">=0.4.0" },

@@ -9,0 +9,0 @@ "maintainers": [{

@@ -290,2 +290,6 @@ UglifyJS 2

gzip could be smaller; size after gzip insignificantly larger).
- `negate-iife` (default `!beautify`) -- prefer negation, rather than
parens, for "Immediately-Called Function Expressions". This defaults to
`true` when beautification is off, and `false` if beautification is on;
pass it manually to force a value.

@@ -292,0 +296,0 @@ ### Keeping copyright notices or other comments

Sorry, the diff of this file is not supported yet

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