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

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.4.13 to 2.4.14

6

lib/ast.js

@@ -298,6 +298,6 @@ /***********************************************************************

arg_parameter_pairs.forEach(function(pair) {
var split = pair.split(":");
var splitAt = pair.lastIndexOf(":");
args.push(split[0]);
parameters.push(split[1]);
args.push(pair.substr(0, splitAt));
parameters.push(pair.substr(splitAt + 1));
});

@@ -304,0 +304,0 @@

@@ -54,3 +54,3 @@ /***********************************************************************

body : from_moz(M.block).body,
bcatch : from_moz(M.handlers[0]),
bcatch : from_moz(M.handlers ? M.handlers[0] : M.handler),
bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null

@@ -57,0 +57,0 @@ });

@@ -999,4 +999,8 @@ /***********************************************************************

output.print(op);
if (/^[a-z]/i.test(op))
if (/^[a-z]/i.test(op)
|| (/[+-]$/.test(op)
&& self.expression instanceof AST_UnaryPrefix
&& /^[+-]/.test(self.expression.operator))) {
output.space();
}
self.expression.print(output);

@@ -1003,0 +1007,0 @@ });

@@ -171,10 +171,3 @@ /***********************************************************************

function is_identifier_string(str){
var i = str.length;
if (i == 0) return false;
if (!is_identifier_start(str.charCodeAt(0))) return false;
while (--i >= 0) {
if (!is_identifier_char(str.charAt(i)))
return false;
}
return true;
return /^[a-z_$][a-z0-9_$]*$/i.test(str);
};

@@ -181,0 +174,0 @@

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

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

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

@@ -29,3 +29,3 @@ keep_properties: {

a["*"] = "asterisk";
a.\u0EB3 = "unicode";
a["\u0EB3"] = "unicode";
a[""] = "whitespace";

@@ -52,5 +52,5 @@ a["1_1"] = "foo";

a["*"] = "asterisk";
a.\u0EB3 = "unicode";
a["\u0EB3"] = "unicode";
a[""] = "whitespace";
}
}

@@ -118,3 +118,3 @@ var path = require("path");

if (sourcesContent.hasOwnProperty(file)) {
options.source_map.get().setSourceContent(file, sourcesContent[file]);
output.source_map.get().setSourceContent(file, sourcesContent[file]);
}

@@ -130,2 +130,7 @@ }

toplevel.print(stream);
if(options.outSourceMap){
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
}
return {

@@ -132,0 +137,0 @@ code : stream + "",

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