Timofey Kachalov
6866396e9a
Add version parameter to the apiConfig to use different versions of JavaScript Obfuscator Pro via API ( #1353 )
2025-12-13 18:43:52 +04:00
Timofey Kachalov
4ac3368122
Version 5.0.1 ( #1344 )
2025-12-07 12:42:47 +04:00
Timofey Kachalov
4ee4b219e5
Add prettier ( #1339 )
2025-12-04 00:09:10 +04:00
Timofey Kachalov
30ba697c55
Fixed cases when dead code is added to the inner code of eval expressions ( #1062 )
...
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1053
2022-02-14 14:34:39 +03:00
sanex
496a6109dc
.cjs file support for config files
2022-02-12 22:01:43 +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
sanex
cd4bf15cc8
Fixed zero threshold case for string array storage analyze
2022-02-06 10:56:36 +03:00
Timofey Kachalov
f075a0e2d1
Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options ( #987 )
2022-02-05 20:57:39 +03:00
jmbeach
891dbce95c
make forward slash in output path consistent
2022-02-02 14:59:58 -05:00
sanex
6b8ead0b2b
Support for class static blocks
2022-01-29 14:57:21 +03:00
sanex
061bffe2c4
Refactoring related to ArrayUtils, NodeMetadata and StringArray transformets
2021-08-08 23:56:45 +03:00
sanex
a7e0f5885a
Refactored control flow storage logic related to removing existing control flow storage from the AST tree
2021-08-08 23:45:20 +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
7b57c1e667
Force set stringArray: true for StringArrayStorageAnalyzer tests
2021-07-17 09:27:35 +03:00
sanex
515dc82e17
Added getOptions method to IObfuscationResult
2021-06-09 09:49:19 +03:00
sanex
13a7302853
Added tests for writeFile method of IdentifierNamesCacheFileUtils
2021-05-31 19:27:53 +03:00
sanex
b0ff4d893e
Added tests for readFile method of IdentifierNamesCacheFileUtils
2021-05-31 19:18:56 +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
f32bcf29a8
Changed identifier names cache structure to store multiple identifier caches
2021-05-30 18:43:36 +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
442cd7b56b
Renamed getAsDictionary method of IMapStorage to the getStorageAsDictionary. Added tests.
2021-05-30 13:19:22 +03:00
sanex
bee043cef3
Identifier names cache option prototype #2 . Added readme.
2021-05-30 01:01:59 +03:00
sanex
52358aba26
Typescript version update to 4.3-beta
2021-04-07 23:44:01 +03:00
sanex
9c5b289fdd
Fixed invalid behaviour of extractIntegerAndDecimalParts for negative numbers
2021-02-25 10:39:30 +03:00
sanex
61d98966b1
Fixed invalid behaviour of numbersToExpressions option for float numbers
...
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/882
2021-02-23 23:47:31 +03:00
sanex
49ec0a66b8
Added non-IfStatement test for isIfStatementNodeWithSingleStatementBody method
2021-01-17 21:49:01 +03:00
sanex
5289dcc834
Fixed behaviour of simplify options when node with a single-statement body is inside simplified IfStatement node
...
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/860
2021-01-17 19:53:16 +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
3b8af4b29a
String array improvement: fixed bugs
2020-12-28 21:39:54 +03:00
sanex
935d57a349
Fixed runtime errors in large obfuscated code when both rc4 and base64 encodings are enabled
2020-12-28 00:37:14 +03:00
sanex
576c50e755
Fixed wrong name of obfuscated files when input directory path is the . symbol
...
https://github.com/javascript-obfuscator/javascript-obfuscator/issues/816
2020-11-20 10:21:11 +03:00
sanex
1409c02f45
Added additional test for ObfuscatedCodeWriter.getOutputCodePath
2020-11-20 10:07:06 +03:00
sanex
18dd2f28f9
Dependencies update 20.11.20
2020-11-20 09:50:33 +03:00
sanex
4079b42fbd
WIP: added random string array scope calls wrappers parameters
2020-11-15 22:15:37 +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
533a52c6fc
* Fixed broken identifierNamesGenerator: 'mangled-shuffled' after 2.2.0
2020-10-11 18:54:12 +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
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
9301f6aa63
Refactoring, option rename on forceTransformStrings
2020-09-24 19:58:27 +03:00