Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
177
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.3 to 5.31.4

3

CHANGELOG.md
# Changelog
## v5.31.4
- drop_unused: drop classes which only have side effects in the `extends` part
## v5.31.3

@@ -4,0 +7,0 @@ - drop_unused: drop unused parameters from IIFEs in some more situations.

2

lib/compress/drop-side-effect-free.js

@@ -159,3 +159,3 @@ /***********************************************************************

if (this.is_self_referential() && this.has_side_effects(compressor)) {
if (this.is_self_referential() && this.body_has_side_effects(compressor)) {
return this;

@@ -162,0 +162,0 @@ }

@@ -156,3 +156,3 @@ /***********************************************************************

if (node === self) return;
if (node instanceof AST_Class && node.has_side_effects(compressor)) {
if (node instanceof AST_Class && node.body_has_side_effects(compressor)) {
if (node.is_self_referential()) {

@@ -159,0 +159,0 @@ descend();

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

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

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

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