Commit Graph
250 Commits
Author SHA1 Message Date
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
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 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 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