Renamed option mangleProperties -> renameProperties

This commit is contained in:
sanex3339
2020-06-07 00:52:11 +03:00
parent 5cd063fe92
commit 11cfaf2b51
28 changed files with 119 additions and 120 deletions
+3 -3
View File
@@ -70,7 +70,7 @@ export class JavaScriptObfuscator implements IJavaScriptObfuscator {
NodeTransformer.FunctionControlFlowTransformer,
NodeTransformer.LabeledStatementTransformer,
NodeTransformer.LiteralTransformer,
NodeTransformer.ManglePropertiesTransformer,
NodeTransformer.RenamePropertiesTransformer,
NodeTransformer.MemberExpressionTransformer,
NodeTransformer.MetadataTransformer,
NodeTransformer.MethodDefinitionTransformer,
@@ -209,8 +209,8 @@ export class JavaScriptObfuscator implements IJavaScriptObfuscator {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.ControlFlowFlattening);
}
if (this.options.mangleProperties) {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.MangleProperties);
if (this.options.renameProperties) {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.RenameProperties);
}
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Converting);