349 Commits
Author SHA1 Message Date
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
sanex 56955aee3d 3.2.1 version 2022-02-06 00:10:32 +03:00
Timofey Kachalov f075a0e2d1 Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options (#987) 2022-02-05 20:57:39 +03:00
sanex 6b8ead0b2b Support for class static blocks 2022-01-29 14:57:21 +03:00
sanex 0443111d09 Apple M1 performance fix 2022-01-29 10:27:55 +03:00
sanex 7ff8d4789d Dependencies update 16.01.22 2022-01-16 17:48:27 +03:00
sanex ec1c90a27f Renamed options 2021-10-17 15:25:29 +03:00
sanex faaab45c6a ignoreRequireImports option renamed to ignoreImports 2021-10-17 15:13:24 +03:00
sanex d98fe3f481 @javascript-obfuscator/escodegen update 2021-10-16 18:39:18 +03:00
sanex 0306f29ba8 Improved pre-commit and pre-publish workflows
Installed `npm` package now has `types` directory and doesn't have `src` directory
2021-08-06 00:00:47 +03:00
sanex 6e1ce07b5e Fixed very rare cases when rotateStringArray couldn't rotate array properly 2021-08-02 12:25:45 +03:00
sanex 73fcb350a2 Updated CHANGELOG.md. Fixed tests. 2021-08-01 23:22:06 +03:00
sanex 258bc4c2cd Sync with master 2021-07-24 02:46:18 +03:00
sanex 1352fb9714 Updated @javascript-obfuscator/escodegen with fixed generation of private property names 2021-07-24 01:22:56 +03:00
sanex 30eb717de6 Sync with master 2021-07-24 00:32:59 +03:00
sanex 744cd14f7f Updated supported node versions. Added support for rename of property definitions 2021-07-23 23:42:10 +03:00
sanex ba3e4d6897 Sync with dev 2021-07-23 22:29:00 +03:00
sanex 6c05aae2ae Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/959 2021-07-22 17:58:54 +03:00
sanex 475e5a9a06 Removed dot character from CHANGELOG.md 2021-07-20 00:26:23 +03:00
sanex 4ab4406f5e Fixed tests. Added inputFileName option validation 2021-07-20 00:00:06 +03:00
sanex b3fc8bc595 **New option**: sourceMapSourcesMode allows to control sources and sourcesContent fields of the source map
Fixed some cases with wrong source map file name generation when `sourceMapFileName` option is set
2021-07-19 22:19:48 +03:00
sanex 1dbfd24237 renameProperties option now won't generate duplicated property names in some cases 2021-07-16 18:46:50 +03:00
sanex a1dc2df04f stringArrayWrappersType: 'function' now generates different indexes between each wrapper inside the same lexical scope 2021-07-16 02:47:32 +03:00
sanex 3a71c78304 * stringArrayWrappersType: 'function' now appends FunctionDeclaration functions instead of FunctionExpression functions. This allows to append these wrappers at random positions inside each scope 2021-07-15 21:24:44 +03:00
sanex fdd03c15c5 To increase performance and prevent possible runtime errors transformObjectKeys option now completely ignores objects with NewExpression nodes 2021-07-15 11:44:08 +03:00
sanex d62bf3d377 To increase performance and prevent possible runtime errors transformObjectKeys option now completely ignores objects with CallExpression nodes 2021-07-15 10:52:44 +03:00
sanex 08e308e92c Sync with master 2021-06-23 15:39:28 +03:00
sanex f7c5215e30 Improved stringArray calls wrapper decode code 2021-06-20 10:10:49 +03:00
sanex 5683e75a91 Improved stringArray calls wrapper templates 2021-06-17 19:38:22 +03:00
sanex 899456f553 Dead code injection unwrap stage now runs before string array transformers 2021-06-16 09:43:56 +03:00
sanex 600a180d47 Sync with master 2021-06-13 12:50:15 +03:00
sanex d46fb7bce1 Updated CHANGELOG.md 2021-06-13 11:42:15 +03:00
sanex 3cf94b7152 Fixed invalid behaviour of transformObjectKeys option when object values contains this references 2021-06-13 11:23:31 +03:00
sanex 2144b34c88 Sync with dev 2021-06-11 12:39:48 +03:00
sanex 616ae59d75 domainDest => domainLockRedirectUrl option rename 2021-06-11 10:38:23 +03:00
sanex ada04e5106 Updated domainLock option description 2021-06-11 09:54:47 +03:00
sanex eaf005cb09 Added improved domainDest option validation 2021-06-10 23:52:52 +03:00
sanex da40474079 Some minor fixes for domainDest option description. Added normalisation. Version update. 2021-06-10 20:43:49 +03:00
sanex 6d70a5abcf Sync with master 2021-05-31 20:38:30 +03:00
sanex 9b3b1644ce Slightly simplified validation of identifier names cache. Updated README.md 2021-05-31 15:10:34 +03:00
sanex bee043cef3 Identifier names cache option prototype #2. Added readme. 2021-05-30 01:01:59 +03:00
sanex a13c764fc6 Fixed invalid code generation for start/middle rest arguments when controlFlowFlattenig option is enabled
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/920
2021-05-23 11:06:04 +03:00
sanex 3e89edd3c0 es2022 features: escodegen update 2021-05-06 10:55:33 +03:00
sanex c827d230ce Added support of node@16 and dropped support of node@10 2021-04-24 12:09:14 +03:00
sanex 4f9df91320 stringArray calls wrappers now inserted as FunctionDeclaration nodes at random indexes 2021-04-10 23:28:12 +03:00
sanex 0926c13029 Added ability to specify the path to the input file after specifying the obfuscator options
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/904
2021-04-07 19:37:26 +03:00
sanex 0acb91ca60 renamePropertiesAutoExclude option changed by renamePropertiesMode option 2021-03-07 12:16:38 +03:00
sanex 6abd6c2194 Fixed CVE-2019-18413
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/880
2021-02-28 20:56:39 +03:00
sanex 72a89a1357 Added support of top-level await
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/884
2021-02-28 19:23:45 +03:00