Commit Graph
171 Commits
Author SHA1 Message Date
sanex 7920538a51 Updated self defending helper. Removed no-eval self-defending helper 2021-07-26 11:07:13 +03:00
sanex ba3e4d6897 Sync with dev 2021-07-23 22:29:00 +03:00
sanex 4ab4406f5e Fixed tests. Added inputFileName option validation 2021-07-20 00:00:06 +03:00
sanex f6d865d6e9 Renamed MethodDefinitionTransformer => ClassFieldTransformer. Added tests. 2021-07-03 16:53:12 +03:00
sanex 616ae59d75 domainDest => domainLockRedirectUrl option rename 2021-06-11 10:38:23 +03:00
sanex 4eca2178fd Added improved domainDest option validation 2021-06-10 22:15:48 +03:00
sanex a04dd872c2 Added missing IdentifierNamesCacheFileUtils tests 2021-05-31 20:03:59 +03:00
sanex 1f044e937d Renamed some CLI classes to achieve more consistent naming 2021-05-31 12:35:19 +03:00
sanex 4be162a24b Added property cache implementation 2021-05-30 22:38:30 +03:00
sanex f3c4be22bf Renamed obfuscatedCode => obfuscationResult variables 2021-05-30 14:38:20 +03:00
sanex aa64a55203 Some refactoring. Added IdentifierNamesCacheStorage tests 2021-05-30 13:57:36 +03:00
sanex 18f72a89c7 Added ThroughIdentifierReplacer for code separate between ScopeIdentifierReplacer and ScopeThroughIdentifiersTransformer 2021-05-30 12:12:59 +03:00
sanex b62f49369c Added ScopeThroughIdentifiersTransformer tests 2021-05-30 03:42:41 +03:00
sanex 04be75e27b Removed padding characters from all base64 encoded strings.
Removed RegExp that trims padding characters from `base64` encoded strings from `atob` code helper to prevent mutation of `RegExp.$1` value during calls to the `stringArray`. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/829
2021-01-01 16:47:44 +03:00
sanex 2b499a1037 Added NumericalExpressionDataToNodeConverter tests 2020-12-30 11:15:18 +03:00
sanex b71b39f5e7 Merge branch 'master' into rotate-string-array-improvements
# Conflicts:
#	CHANGELOG.md
#	dist/index.browser.js
#	dist/index.cli.js
#	dist/index.js
#	package.json
2020-12-30 00:42:26 +03:00
sanex 2927fa0ab8 Preventing move of "use strict"; directive during obfuscation 2020-12-29 23:29:16 +03:00
sanex 3f5b2c6811 Added tests for StringArrayRotateFunction transformer, code helper, and template 2020-12-29 17:17:26 +03:00
sanex 4079b42fbd WIP: added random string array scope calls wrappers parameters 2020-11-15 22:15:37 +03:00
sanex 8e55d19ebb Fixed incorrect rename of the identifiers of the added helpers in some rare cases
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/804
2020-11-10 01:05:21 +03:00
sanex 8ae8e0b50b New option ignoreRequireImports prevents obfuscation of require imports 2020-11-07 11:49:48 +03:00
sanex 229c99f68c Added ExportSpecifierTransformer. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/791 2020-10-28 00:30:40 +03:00
sanex 5c9f5ef838 Tests of SourceCode class 2020-10-08 10:54:23 +03:00
sanex c1c0330609 Simplified scripts and tests 2020-10-05 11:23:28 +03:00
sanex 34b1619ee6 Refactoring of unicodeEscapeSequence logic 2020-09-25 17:37:18 +03:00
sanex 9301f6aa63 Refactoring, option rename on forceTransformStrings 2020-09-24 19:58:27 +03:00
sanex dc3da64da7 EscapeSequenceTransformer moved to the Finalizing transformers 2020-09-24 11:23:03 +03:00
sanex 4c1bae0527 unicodeEscapeSequence logic moved to the EscapeSequenceTransformer 2020-09-24 11:01:23 +03:00
sanex 47263a4c1c Added tests for VisitedLexicalScopeNodesStackStorage class 2020-09-14 10:51:30 +03:00
sanex e20f2826e4 Refactoring of StringArrayTransformer.ts: moved logic to StringArrayWrappersTransformer, StringArrayScopeCallsWrapperDataStorage and VisitedLexicalScopeNodesStackStorage 2020-09-14 00:58:17 +03:00
sanex 84432e87e8 Improved stringArrayIntermediateVariablesCount option with function intermediate calls 2020-09-10 10:43:14 +03:00
sanex 1b656d7386 New option: stringArrayIntermediateCalls sets the passed amount of intermediate variables for the string array 2020-09-07 10:05:31 +03:00
sanex 6ec92420f5 New API: getOptionsByPreset allows to get options for the passed options preset name 2020-09-04 18:46:00 +03:00
sanex 2e711e46e4 Removed unnecessary CLI sanitizers 2020-09-02 00:00:02 +03:00
sanex 017ade47db Fixed order of StringArrayCallsWrapper code helpers, added tests 2020-08-31 09:41:15 +03:00
sanex 4ebd98a04c Added OptionsPresetSanitizer to the tests #2 2020-08-29 11:39:32 +03:00
sanex fece163cc3 Added OptionsPresetSanitizer to the tests 2020-08-29 11:21:42 +03:00
sanex 0d556cbc13 Moved MemberExpressionTransformer back to converting transformers 2020-08-23 12:34:19 +03:00
sanex 9c04ededc7 Reorganized transformers structure and order 2020-08-23 09:27:35 +03:00
sanex 4f28bee90f Renamed ConsoleOutputDisable template 2020-08-11 20:08:47 +03:00
sanex3339 af0649bb56 Improved disableConsoleOutput template. https://github.com/javascript-obfuscator/javascript-obfuscator/issues/691 2020-08-04 10:36:13 +03:00
sanex3339 7ce5f964d6 Improved ObjectPatternPropertiesTransformer logic. Added tests. 2020-07-31 17:58:20 +03:00
sanex3339 37eb0aa745 ExpressionStatementsMergeTransformer + optimized AbstractStatementSimplifyTransformer logic 2020-07-15 15:20:19 +03:00
sanex3339 dd8dcac223 Added numbersToExpressions option and NumberToNumericalExpressionTransformer 2020-07-12 18:24:57 +03:00
sanex3339 f07452e139 Added number numerical expression analyzer 2020-07-12 12:31:40 +03:00
sanex3339 d074bbe816 Prevented mutation of the name sequences of mangled identifier name generators 2020-07-10 18:59:27 +03:00
sanex3339 c6887464c4 Fixed wrong source-map: 'inline' encoding after 1.3.0 2020-07-10 16:31:12 +03:00
sanex3339 b606926182 Added unit tests for mangled-shuffled identifier names generator 2020-07-09 14:11:25 +03:00
sanex3339 87e23748f0 Renamed option: minify -> simplify 2020-07-06 21:47:09 +03:00
sanex3339 31551f4e33 Simple consequent only tests for IfStatementSimplifyTransformer 2020-06-29 10:50:40 +03:00