Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
11
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.30.1 to 5.30.2

3

CHANGELOG.md
# Changelog
## v5.30.2
- Avoid optimizations inside computed keys, because they can cause js-engine-specific bugs.
## v5.30.1

@@ -4,0 +7,0 @@ - Removed useless `\` escapes for non-ascii characters

@@ -170,2 +170,4 @@ /***********************************************************************

export function inline_into_symbolref(self, compressor) {
if (compressor.in_computed_key()) return self;
const parent = compressor.parent();

@@ -320,2 +322,4 @@ const def = self.definition();

export function inline_into_call(self, compressor) {
if (compressor.in_computed_key()) return self;
var exp = self.expression;

@@ -322,0 +326,0 @@ var fn = exp;

4

lib/compress/tighten-body.js

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

AST_ObjectKeyVal,
AST_ObjectProperty,
AST_PropAccess,

@@ -120,3 +121,3 @@ AST_RegExp,

_NOINLINE
_NOINLINE,
} from "../ast.js";

@@ -333,2 +334,3 @@ import {

&& has_annotation(parent, _NOINLINE)
|| node instanceof AST_ObjectProperty && node.key instanceof AST_Node
) {

@@ -335,0 +337,0 @@ abort = true;

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

"license": "BSD-2-Clause",
"version": "5.30.1",
"version": "5.30.2",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc