Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
11
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.18.1 to 5.18.2

7

CHANGELOG.md
# Changelog
## v7.18.1
## v5.18.2
- Stop using recursion in hoisted defuns fix.
## v5.18.1
- Fix major performance issue caused by hoisted defuns' scopes bugfix.
## v7.18.0
## v5.18.0
- Add new `/*@__MANGLE_PROP__*/` annotation, to mark properties that should be mangled.

@@ -8,0 +11,0 @@

@@ -595,19 +595,21 @@ /***********************************************************************

const find = (sym_id, starting_at = 0, must_be_write = false) => {
const index = found_symbols.indexOf(sym_id, starting_at);
let index = starting_at;
if (
defun_range
&& index >= defun_range.start
&& index < defun_range.end
) {
return find(sym_id, defun_range.end, must_be_write);
} else if (
must_be_write
&& index >= 0
&& !found_symbol_writes.has(index)
) {
return find(sym_id, index + 1, must_be_write);
} else {
return index;
for (;;) {
index = found_symbols.indexOf(sym_id, index);
if (index === -1) {
break;
} else if (index >= defun_range.start && index < defun_range.end) {
index = defun_range.end;
continue;
} else if (must_be_write && !found_symbol_writes.has(index)) {
index++;
continue;
} else {
break;
}
}
return index;
};

@@ -614,0 +616,0 @@

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc