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 1.2.5 to 1.2.6

lib/consolidator.js

10

lib/parse-js.js

@@ -194,3 +194,3 @@ /***********************************************************************

var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:"));
var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{(,.;:"));

@@ -490,6 +490,6 @@ var PUNC_CHARS = array_to_hash(characters("[]{}(),;:"));

function read_name() {
var backslash = false, name = "", ch;
var backslash = false, name = "", ch, escaped = false, hex;
while ((ch = peek()) != null) {
if (!backslash) {
if (ch == "\\") backslash = true, next();
if (ch == "\\") escaped = backslash = true, next();
else if (is_identifier_char(ch)) name += next();

@@ -506,2 +506,6 @@ else break;

}
if (HOP(KEYWORDS, name) && escaped) {
hex = name.charCodeAt(0).toString(16).toUpperCase();
name = "\\u" + "0000".substr(hex.length) + hex + name.slice(1);
}
return name;

@@ -508,0 +512,0 @@ };

@@ -48,2 +48,6 @@ var jsp = require("./parse-js"),

"call": function(expr, args) {
if (expr[0] == "dot" && expr[1][0] == "string" && args.length == 1
&& (args[0][1] > 0 && expr[2] == "substring" || expr[2] == "substr")) {
return [ "call", [ "dot", expr[1], "slice"], args];
}
if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {

@@ -50,0 +54,0 @@ // foo.toString() ==> foo+""

@@ -12,3 +12,3 @@ {

"version" : "1.2.5",
"version" : "1.2.6",

@@ -15,0 +15,0 @@ "main" : "./uglify-js.js",

@@ -16,3 +16,4 @@ //convienence function(src, [options]);

uglify.uglify = require("./lib/process");
uglify.consolidator = require("./lib/consolidator");
module.exports = uglify
module.exports = uglify

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