Socket
Socket
Sign inDemoInstall

uglify-js

Package Overview
Dependencies
0
Maintainers
3
Versions
283
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.13.0 to 3.13.1

12

lib/scope.js

@@ -201,5 +201,6 @@ /***********************************************************************

def.defun = defun;
def.exported = exported;
if (exported) def.exported = true;
} else if (node instanceof AST_SymbolDefun) {
defun.def_function(node, tw.parent()).exported = exported;
var def = defun.def_function(node, tw.parent());
if (exported) def.exported = true;
entangle(defun, scope);

@@ -213,5 +214,7 @@ } else if (node instanceof AST_SymbolFunarg) {

} else if (node instanceof AST_SymbolLet) {
scope.def_variable(node).exported = exported;
var def = scope.def_variable(node);
if (exported) def.exported = true;
} else if (node instanceof AST_SymbolVar) {
defun.def_variable(node, node instanceof AST_SymbolImport ? undefined : null).exported = exported;
var def = defun.def_variable(node, node instanceof AST_SymbolImport ? undefined : null);
if (exported) def.exported = true;
entangle(defun, scope);

@@ -440,2 +443,3 @@ }

init_scope_vars(this, parent_scope);
return this;
});

@@ -442,0 +446,0 @@ AST_AsyncArrow.DEFMETHOD("init_vars", function(parent_scope) {

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

"license": "BSD-2-Clause",
"version": "3.13.0",
"version": "3.13.1",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=0.8.0"

@@ -1144,14 +1144,10 @@ UglifyJS 3

elaborate code transforms. One can simply disable `compress` to speed up
Uglify builds by 3 to 4 times. In this fast `mangle`-only mode Uglify has
comparable minify speeds and gzip sizes to
[`butternut`](https://www.npmjs.com/package/butternut):
Uglify builds by 3 to 5 times.
| d3.js | minify size | gzip size | minify time (seconds) |
| --- | ---: | ---: | ---: |
| original | 451,131 | 108,733 | - |
| uglify-js@3.0.24 mangle=false, compress=false | 316,600 | 85,245 | 0.70 |
| uglify-js@3.0.24 mangle=true, compress=false | 220,216 | 72,730 | 1.13 |
| butternut@0.4.6 | 217,568 | 72,738 | 1.41 |
| uglify-js@3.0.24 mangle=true, compress=true | 212,511 | 71,560 | 3.36 |
| babili@0.1.4 | 210,713 | 72,140 | 12.64 |
| original | 511,371 | 119,932 | - |
| uglify-js@3.13.0 mangle=false, compress=false | 363,988 | 95,695 | 0.56 |
| uglify-js@3.13.0 mangle=true, compress=false | 253,305 | 81,281 | 0.99 |
| uglify-js@3.13.0 mangle=true, compress=true | 244,436 | 79,854 | 5.30 |

@@ -1158,0 +1154,0 @@ To enable fast minify mode from the CLI use:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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