mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
New option stringArrayWrappersType allows to select a type of the wrappers that are appending by the stringArrayWrappersCount option
This commit is contained in:
+4
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNodes';
|
||||
import { IdentifierNamesGenerator } from '../../src/enums/generators/identifier-names-generators/IdentifierNamesGenerator';
|
||||
import { StringArrayWrappersType } from '../../src/enums/node-transformers/string-array-transformers/StringArrayWrappersType';
|
||||
|
||||
(function () {
|
||||
const JavaScriptObfuscator: any = require('../../index');
|
||||
@@ -28,8 +29,9 @@ import { IdentifierNamesGenerator } from '../../src/enums/generators/identifier-
|
||||
stringArray: true,
|
||||
transformObjectKeys: true,
|
||||
stringArrayThreshold: 1,
|
||||
stringArrayWrappersChainedCalls: false,
|
||||
stringArrayWrappersCount: 2
|
||||
stringArrayWrappersChainedCalls: true,
|
||||
stringArrayWrappersCount: 2,
|
||||
stringArrayWrappersType: StringArrayWrappersType.Function
|
||||
}
|
||||
).getObfuscatedCode();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user