You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

terser

Package Overview
Dependencies
Maintainers
1
Versions
194
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

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