Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser - npm Package Compare versions

Comparing version 3.8.2 to 3.9.0

8

lib/propmangle.js

@@ -161,3 +161,5 @@ /***********************************************************************

if (node instanceof AST_ObjectKeyVal) {
add(node.key);
if (typeof node.key == "string") {
add(node.key);
}
} else if (node instanceof AST_ObjectProperty) {

@@ -179,3 +181,5 @@ // setter or getter, since KeyVal is handled above

if (node instanceof AST_ObjectKeyVal) {
node.key = mangle(node.key);
if (typeof node.key == "string") {
node.key = mangle(node.key);
}
} else if (node instanceof AST_ObjectProperty) {

@@ -182,0 +186,0 @@ // setter or getter

@@ -7,3 +7,3 @@ {

"license": "BSD-2-Clause",
"version": "3.8.2",
"version": "3.9.0",
"engines": {

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

terser
======
[![Build Status](https://travis-ci.org/terser-js/terser.svg?branch=master)](https://travis-ci.org/terser-js/terser)
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.

@@ -536,3 +538,3 @@

of function names. Useful for code relying on `Function.prototype.name`. If the
top level minify option `keep_classnames` is `undefined` it will be overriden with
top level minify option `keep_classnames` is `undefined` it will be overridden with
the value of the top level minify option `keep_fnames`.

@@ -643,3 +645,2 @@

the resultant code is shorter: `m(){return x}` becomes `m:()=>x`.
This transform requires that the `ecma` compress option is set to `6` or greater.

@@ -1152,3 +1153,3 @@ - `arguments` (default: `false`) -- replace `arguments[index]` with function

Largely compatible native AST examples can be found in the original UglifyJS
documention. See: [tree walker](http://lisperator.net/uglifyjs/walk) and
documentation. See: [tree walker](http://lisperator.net/uglifyjs/walk) and
[tree transform](http://lisperator.net/uglifyjs/transform).

@@ -1155,0 +1156,0 @@

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc