Commit Graph
36 Commits
Author SHA1 Message Date
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 81ff464320 Added runtime StringArrayRotateFunctionTransformer tests 2020-12-31 13:01:29 +03:00
sanex 3f5b2c6811 Added tests for StringArrayRotateFunction transformer, code helper, and template 2020-12-29 17:17:26 +03:00
sanex 3b8af4b29a String array improvement: fixed bugs 2020-12-28 21:39:54 +03:00
sanex ab4508de14 Fixed missing prefix of root identifiers added by stringArrayWrappersCount option when identifiersPrefix option is set 2020-11-23 12:22:05 +03:00
sanex 80e54a4307 Additional StringArrayScopeCallsWrapperTransformer tests for variable amount of arguments when stringArrayWrappersParametersMaxCount option is enabled 2020-11-16 20:39:00 +03:00
sanex 8c788b90ba Updated StringArrayScopeCallsWrapperTransformer tests 2020-11-16 17:02:32 +03:00
sanex 441699a737 Added tests for stringArrayIndexesType option 2020-11-15 16:16:44 +03:00
sanex ed7fbc5bef New option: stringArrayIndexesType accepts an array of types of string array call indexes 2020-11-15 12:05:34 +03:00
sanex 5e8c1648fe Added tests for string array index shift 2020-11-15 00:30:46 +03:00
sanex 9e2ca383a5 Added more tests that are covering forceTransformStrings option priorities 2020-09-24 23:17:56 +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 a5d7f7418c forceTransformedStrings option 2020-09-24 00:39:07 +03:00
sanex 77ff574e67 Fixed isIncrementedMangledName algorithm 2020-09-19 21:49:28 +03:00
sanex 835581db64 Shifted indexes of string array wrappers #4: fixed wrappers calls and added tests 2020-09-17 09:28:17 +03:00
sanex 4d4a99148b Merge branch 'master' into string-array-wrappers-type-option
# Conflicts:
#	CHANGELOG.md
#	dist/index.browser.js
#	dist/index.cli.js
#	dist/index.js
#	package.json
#	src/node-transformers/string-array-transformers/StringArrayScopeCallsWrapperTransformer.ts
2020-09-15 20:56:59 +03:00
sanex 4c1a949fd3 Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/745 2020-09-15 16:49:18 +03:00
sanex d86ee4213c New option stringArrayWrappersType allows to select a type of the wrappers that are appending by the stringArrayWrappersCount option 2020-09-15 11:09:22 +03:00
sanex e20f2826e4 Refactoring of StringArrayTransformer.ts: moved logic to StringArrayWrappersTransformer, StringArrayScopeCallsWrapperDataStorage and VisitedLexicalScopeNodesStackStorage 2020-09-14 00:58:17 +03:00
sanex b152e7bd09 Fixed order of the appended string array scope wrappers 2020-09-12 14:16:19 +03:00
sanex 09e89f8fe6 Fixed stringArrayWrappersCount behaviour with arrow function scope without statements 2020-09-12 13:59:07 +03:00
sanex 5a833d1057 Improved update of previous mangled character 2020-09-12 10:15:13 +03:00
sanex 9b5eba5363 Fixed stringArrayCallsWrapper option with mangled names generator 2020-09-12 00:05:47 +03:00
sanex 7fca0317f0 Increased samples count for some test of StringArrayTransformer.spec.ts 2020-09-11 07:06:29 +03:00
sanex f43b138e8a New option stringArrayWrappersChainedCalls. Renamed option stringArrayIntermediateVariablesCount on stringArrayWrappersCount 2020-09-11 00:28:32 +03:00
sanex b483ef17cf Added StringArrayIntermediateCallsWrapperNode custom node 2020-09-10 20:06:20 +03:00
sanex f00c32d28b Fixed some tests of stringArrayIntermediateVariablesCount option 2020-09-10 14:20:49 +03:00
sanex b3afafbe95 Additional tests of stringArrayIntermediateVariablesCount option 2020-09-10 13:31:08 +03:00
sanex 4c5028c095 Fixed tests of stringArrayIntermediateVariablesCount option 2020-09-10 13:18:27 +03:00
sanex e80937d108 Changed option name: stringArrayIntermediateCalls -> stringArrayIntermediateVariablesCount 2020-09-07 11:12:18 +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
Timofey Kachalov 42ff66849e Mixed string array encoding prototype (#727)
`stringArrayEncoding` option now accepts an array of encodings. Each string will be randomly encoded with passed encoding.
2020-08-30 21:10:46 +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