Commit Graph
226 Commits
Author SHA1 Message Date
Timofey Kachalov 4ee4b219e5 Add prettier (#1339) 2025-12-04 00:09:10 +04:00
fuka 88bfc0e4b9 Update incorrect 'ignoreRequireImports' to 'ignoreImports' (#1086)
Introduced by PR#1010
2022-05-07 22:30:30 +03:00
Timofey Kachalov b99b6a46ee Improved integration between renameProperties and controlFlowFlattening options (#1060) 2022-02-12 20:35:31 +03:00
Timofey Kachalov ec4b70f908 String array calls transform fix (#1050)
* Fixed the wrong generation of code that has statements after `ReturnStatment` when `simplify` option is enabled

* Fixed generation of reserved identifier names like `Map` or `Set` for `mangled` and `mangled-shuffled` identifier names generators
2022-02-08 00:02:33 +03:00
Timofey Kachalov 77f64bf5df Fixed wrong generation of code that has statements after ReturnStatment when simplify option is enabled 2022-02-06 21:10:16 +03:00
Timofey Kachalov f075a0e2d1 Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options (#987) 2022-02-05 20:57:39 +03:00
sanex 5c0334d093 Fixed tests 2022-01-29 15:02:52 +03:00
sanex 6b8ead0b2b Support for class static blocks 2022-01-29 14:57:21 +03:00
sanex 6e1ce07b5e Fixed very rare cases when rotateStringArray couldn't rotate array properly 2021-08-02 12:25:45 +03:00
sanex c4abec8c2a Added additional self defending mechanisms. Updated tests 2021-08-01 16:58:04 +03:00
sanex 9da81caf3d String array now stored as a function 2021-07-31 15:04:11 +03:00
sanex 7920538a51 Updated self defending helper. Removed no-eval self-defending helper 2021-07-26 11:07:13 +03:00
sanex 744cd14f7f Updated supported node versions. Added support for rename of property definitions 2021-07-23 23:42:10 +03:00
sanex 52a5482ace Added base PropertyDefinition transformation 2021-05-23 10:12:55 +03:00
sanex 4f9df91320 stringArray calls wrappers now inserted as FunctionDeclaration nodes at random indexes 2021-04-10 23:28:12 +03:00
sanex 0acb91ca60 renamePropertiesAutoExclude option changed by renamePropertiesMode option 2021-03-07 12:16:38 +03:00
sanex 3c379999a7 Added renamePropertiesAutoExclude option 2021-02-14 23:17:46 +03:00
sanex 1847bcc5ac Fixed simplify option regression after 2.10.2
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/864
2021-01-20 09:20:48 +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 6ed3d4e3ed Version update to 2.10.0 2020-12-29 11:13:42 +03:00
sanex efac711ce4 Improved rotateStringArray option WIP 2020-12-27 14:14:50 +03:00
sanex a118112095 Removed obfuscation-event-emitter to allow more flexible append of node inside custom code helper groups. 2020-12-25 11:00:11 +03:00
sanex b2aee6cb6c Ignore object expressions as body of arrow function expression when transformObjectKeys option is enabled 2020-11-19 07:45:41 +03:00
sanex 8c788b90ba Updated StringArrayScopeCallsWrapperTransformer tests 2020-11-16 17:02:32 +03:00
sanex c0cd04d2bf Added stringArrayWrappersParametersMaxCount option 2020-11-15 23:14:30 +03:00
sanex 4079b42fbd WIP: added random string array scope calls wrappers parameters 2020-11-15 22:15:37 +03:00
sanex 381582f6f3 Extracted string array index type logic to a StringArrayIndexNode classes 2020-11-15 13:20:16 +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 4f33c76da1 New option: stringArrayIndexShift enables additional index shift for all string array calls 2020-11-14 10:15:42 +03:00
sanex e8517bf770 Added ignoring of all object members previous to SpreadElement when transformObjectKeys option is enabled
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/797
2020-11-03 11:15:19 +03:00
sanex 0c33e737a5 Fixed missing rename of object pattern properties in some cases
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/781
2020-10-17 00:50:39 +03:00
sanex 34b1619ee6 Refactoring of unicodeEscapeSequence logic 2020-09-25 17:37:18 +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 423a616cd7 Added example for stringArrayWrappersType option 2020-09-17 20:30:10 +03:00
sanex 0094e7cfbc Add force convert of unicode control characters to the unicode escape sequence
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues
2020-09-17 18:46:45 +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 559e3a440a WIP: shifted indexes of string array wrappers #1 2020-09-16 18:14:56 +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 9a6db37fdf Updated eslint 2020-09-13 12:27:05 +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 3d6f98c127 Enable stringArrayWrappersCount and stringArrayWrappersChainedCalls options by default 2020-09-11 11:04:23 +03:00
sanex f43b138e8a New option stringArrayWrappersChainedCalls. Renamed option stringArrayIntermediateVariablesCount on stringArrayWrappersCount 2020-09-11 00:28:32 +03:00
sanex e87565bd9e Changed stringArrayIntermediateVariablesCount option description 2020-09-10 21:03:44 +03:00
sanex 4c5028c095 Fixed tests of stringArrayIntermediateVariablesCount option 2020-09-10 13:18:27 +03:00