734 Commits
Author SHA1 Message Date
sanex 98bf2e6256 Switched form escodegen to @javascript-obfuscator/escodegen
Added tests for some es11/es12 features
2020-11-04 21:01:59 +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 229c99f68c Added ExportSpecifierTransformer. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/791 2020-10-28 00:30:40 +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 533a52c6fc * Fixed broken identifierNamesGenerator: 'mangled-shuffled' after 2.2.0 2020-10-11 18:54:12 +03:00
sanex c311250d1c Added process polyfill for the browser and fixed library exports for node environment 2020-10-11 15:21:04 +03:00
sanex abb7f1656f MakeEnum moved to Utils class 2020-10-11 14:45:33 +03:00
sanex 381fd18177 * @gradecam/tsenum replaced with an internal implementation
* Optimized performance of `ExpressionStatementsMergeTransformer` when `simplify` option is enabled
2020-10-11 14:06:50 +03:00
sanex 5c9f5ef838 Tests of SourceCode class 2020-10-08 10:54:23 +03:00
Timofey Kachalov ac671daa94 Enabled windows builds (#772)
* Improved hierarchy of generated directories when `--output` is a directory path
* Fixed wrong obfuscated files path generation under `windows`. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/576
* Fixed wrong source map path generation under `windows`. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/760
* `javascript-obfuscator` now can be built under `windows` environment
2020-10-08 06:40:04 +03:00
sanex 1ab6263af8 Attempt to fix memory performance NaN error 2020-10-05 17:01:22 +03:00
sanex 383bb996e2 Updated memory performance test timeout #2 2020-10-05 12:24:27 +03:00
sanex d4e19334a7 Updated memory performance test timeout and allowed memory space 2020-10-05 11:53:52 +03:00
sanex c1c0330609 Simplified scripts and tests 2020-10-05 11:23:28 +03:00
sanex 329b7a2543 Fixed for-await-of construction add when deadCodeInjection option is enabled 2020-10-01 20:59:33 +03:00
sanex 816a7a5a40 Fixed URI-malformed when splitStrings and stringArrayEncoding options are enabled
https://github.com/javascript-obfuscator/javascript-obfuscator/issues/530
2020-09-30 10:32:42 +03:00
sanex 2d3a59c2aa Removed declarations for js-string-escape 2020-09-26 13:11:07 +03:00
sanex 34b1619ee6 Refactoring of unicodeEscapeSequence logic 2020-09-25 17:37:18 +03:00
sanex 1e9c031e7a Slightly optimized setNodeMetadata for basic cases with isTransformNode flag 2020-09-25 09:47:50 +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 b2297df287 Changed eval hello-world test 2020-09-20 20:25:44 +03:00
sanex 77ff574e67 Fixed isIncrementedMangledName algorithm 2020-09-19 21:49:28 +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 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 9a6db37fdf Updated eslint 2020-09-13 12:27:05 +03:00
sanex 47104dda93 Moved isValidLexicalScopeNode method to the NodeGuards as isNodeWithLexicalScopeAndStatements 2020-09-12 17:33:38 +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 7b87712f39 Added tests for getOptionsByPreset method of JavaScriptObfuscatorFacade 2020-09-11 09:54:10 +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 e87565bd9e Changed stringArrayIntermediateVariablesCount option description 2020-09-10 21:03:44 +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