terser 3.14.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of terser might be problematic. Click here for more details.
- package/README.md +1 -1
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/lib/propmangle.js +5 -1
- package/package.json +2 -2
package/lib/propmangle.js
CHANGED
@@ -166,7 +166,11 @@ function mangle_properties(ast, options) {
|
|
166
166
|
// setter or getter, since KeyVal is handled above
|
167
167
|
add(node.key.name);
|
168
168
|
} else if (node instanceof AST_Dot) {
|
169
|
-
|
169
|
+
var root = node;
|
170
|
+
while (root.expression) {
|
171
|
+
root = root.expression;
|
172
|
+
}
|
173
|
+
if (!(root.thedef && root.thedef.undeclared)) add(node.property);
|
170
174
|
} else if (node instanceof AST_Sub) {
|
171
175
|
addStrings(node.property, add);
|
172
176
|
} else if (node instanceof AST_Call
|
package/package.json
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
"homepage": "https://github.com/fabiosantoscode/terser",
|
5
5
|
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
6
6
|
"license": "BSD-2-Clause",
|
7
|
-
"version": "3.14.
|
7
|
+
"version": "3.14.1",
|
8
8
|
"engines": {
|
9
|
-
"node": ">=0.
|
9
|
+
"node": ">=4.0.0"
|
10
10
|
},
|
11
11
|
"maintainers": [
|
12
12
|
"Fábio Santos <fabiosantosart@gmail.com>",
|