Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
176
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 5.31.2 to 5.31.3

3

CHANGELOG.md
# Changelog
## v5.31.3
- drop_unused: drop unused parameters from IIFEs in some more situations.
## v5.31.2

@@ -4,0 +7,0 @@ - drop_unused: scan variables in self-referential class declarations that contain side effects.

@@ -48,2 +48,3 @@ /***********************************************************************

AST_BlockStatement,
AST_Call,
AST_Class,

@@ -260,3 +261,9 @@ AST_ClassExpression,

if (node instanceof AST_Lambda && !(node instanceof AST_Accessor)) {
var trim = !compressor.option("keep_fargs");
var trim =
!compressor.option("keep_fargs")
// Is this an IIFE that won't refer to its name?
|| parent instanceof AST_Call
&& parent.expression === node
&& !node.pinned()
&& (!node.name || node.name.unreferenced());
for (var a = node.argnames, i = a.length; --i >= 0;) {

@@ -263,0 +270,0 @@ var sym = a[i];

2

package.json

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

"license": "BSD-2-Clause",
"version": "5.31.2",
"version": "5.31.3",
"engines": {

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc