From 7a93c8ca3ec87844ca701c2e136ced6db302d793 Mon Sep 17 00:00:00 2001 From: sanex Date: Thu, 15 Jul 2021 12:12:14 +0300 Subject: [PATCH] Reverted `dev.ts` file --- test/dev/dev.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/dev/dev.ts b/test/dev/dev.ts index 243380ac..e973a8bb 100644 --- a/test/dev/dev.ts +++ b/test/dev/dev.ts @@ -7,23 +7,17 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo let obfuscationResult = JavaScriptObfuscator.obfuscate( ` - const isTrue = something => !!(something?.bob || something?.sally); - const throwsError = () => { - throw new Error("Should not be here!"); - }; - - const myFunction2 = () => { - return isTrue() ? { my: "object", nested: { anotherParam: new throwsError() } } : "The only place we should be"; - }; - - - console.log(myFunction2()); + console.log('foo'); + console.log('bar'); + console.log('bar'); `, { ...NO_ADDITIONAL_NODES_PRESET, compact: false, simplify: false, - transformObjectKeys: true, + stringArray: true, + stringArrayThreshold: 1, + stringArrayEncoding: ['base64'], identifierNamesGenerator: 'mangled' } );