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.4 to 5.31.5

5

CHANGELOG.md
# Changelog
## v5.31.4
## v5.31.5
- Revert v5.31.4, which created mysterious issues #1548, #1549
## v5.31.4 (reverted)
- drop_unused: drop classes which only have side effects in the `extends` part

@@ -5,0 +8,0 @@

2

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

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

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

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

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

if (node === self) return;
if (node instanceof AST_Class && node.body_has_side_effects(compressor)) {
if (node instanceof AST_Class && node.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.4",
"version": "5.31.5",
"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