uglify-js
Advanced tools
Comparing version 3.19.1 to 3.19.2
@@ -52,4 +52,5 @@ "use strict"; | ||
if (options[key]) { | ||
if (typeof options[key] != "object") options[key] = {}; | ||
if (!(name in options[key])) options[key][name] = options[name]; | ||
var defs = {}; | ||
defs[name] = options[name]; | ||
options[key] = defaults(options[key], defs); | ||
} | ||
@@ -109,3 +110,3 @@ }); | ||
if (options.module === undefined && !options.ie) options.module = true; | ||
if (options.module) set_shorthand("module", options, [ "compress", "parse" ]); | ||
if (options.module) set_shorthand("module", options, [ "compress", "output", "parse" ]); | ||
if (options.toplevel !== undefined) set_shorthand("toplevel", options, [ "compress", "mangle", "rename" ]); | ||
@@ -112,0 +113,0 @@ if (options.v8) set_shorthand("v8", options, [ "mangle", "output", "rename" ]); |
@@ -6,3 +6,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.19.1", | ||
"version": "3.19.2", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.8.0" |
@@ -100,3 +100,8 @@ var fs = require("fs"); | ||
exports.default_options = function() { | ||
exports.default_options = function(component) { | ||
if (component) { | ||
var options = { module: false }; | ||
options[component] = { 0: 0 }; | ||
return infer_options(options); | ||
} | ||
var defs = infer_options({ 0: 0 }); | ||
@@ -103,0 +108,0 @@ Object.keys(defs).forEach(function(component) { |
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
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
1304139
32484