javascript-obfuscator 3.2.4 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +8 -8
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cli.js +1 -1
- package/dist/index.cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/src/custom-code-helpers/debug-protection/DebugProtectionFunctionIntervalCodeHelper.d.ts +2 -1
- package/typings/src/enums/node/NodeType.d.ts +1 -0
- package/typings/src/generators/identifier-names-generators/MangledIdentifierNamesGenerator.d.ts +2 -2
- package/typings/src/interfaces/options/IOptions.d.ts +1 -1
- package/typings/src/node/NodeGuards.d.ts +1 -0
- package/typings/src/node/NodeMetadata.d.ts +2 -0
- package/typings/src/node-transformers/control-flow-transformers/control-flow-replacers/AbstractControlFlowReplacer.d.ts +2 -2
- package/typings/src/node-transformers/preparing-transformers/EvalCallExpressionTransformer.d.ts +2 -3
- package/typings/src/node-transformers/rename-properties-transformers/RenamePropertiesTransformer.d.ts +0 -4
- package/typings/src/options/Options.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
|
|
3
|
+
v4.0.0
|
|
4
|
+
---
|
|
5
|
+
* **Breaking change:** `debugProtectionInterval` option now accepts value in milliseconds instead of `boolean` value. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1031
|
|
6
|
+
|
|
7
|
+
v3.2.7
|
|
8
|
+
---
|
|
9
|
+
* Fixed cases when dead code is added to the inner code of `eval` expressions. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1053
|
|
10
|
+
|
|
11
|
+
v3.2.6
|
|
12
|
+
---
|
|
13
|
+
* Improved integration between `renameProperties` and `controlFlowFlattening` options. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1053
|
|
14
|
+
|
|
15
|
+
v3.2.5
|
|
16
|
+
---
|
|
17
|
+
* Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1056
|
|
18
|
+
|
|
3
19
|
v3.2.4
|
|
4
20
|
---
|
|
5
21
|
* Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1052
|
package/README.md
CHANGED
|
@@ -349,7 +349,7 @@ Following options are available for the JS Obfuscator:
|
|
|
349
349
|
deadCodeInjection: false,
|
|
350
350
|
deadCodeInjectionThreshold: 0.4,
|
|
351
351
|
debugProtection: false,
|
|
352
|
-
debugProtectionInterval:
|
|
352
|
+
debugProtectionInterval: 0,
|
|
353
353
|
disableConsoleOutput: false,
|
|
354
354
|
domainLock: [],
|
|
355
355
|
domainLockRedirectUrl: 'about:blank',
|
|
@@ -413,7 +413,7 @@ Following options are available for the JS Obfuscator:
|
|
|
413
413
|
--dead-code-injection <boolean>
|
|
414
414
|
--dead-code-injection-threshold <number>
|
|
415
415
|
--debug-protection <boolean>
|
|
416
|
-
--debug-protection-interval <
|
|
416
|
+
--debug-protection-interval <number>
|
|
417
417
|
--disable-console-output <boolean>
|
|
418
418
|
--domain-lock '<list>' (comma separated)
|
|
419
419
|
--domain-lock-redirect-url <string>
|
|
@@ -678,11 +678,11 @@ Type: `boolean` Default: `false`
|
|
|
678
678
|
This option makes it almost impossible to use the `debugger` function of the Developer Tools (both on WebKit-based and Mozilla Firefox).
|
|
679
679
|
|
|
680
680
|
### `debugProtectionInterval`
|
|
681
|
-
Type: `
|
|
681
|
+
Type: `number` Default: `0`
|
|
682
682
|
|
|
683
683
|
##### :warning: Can freeze your browser! Use at own risk.
|
|
684
684
|
|
|
685
|
-
If
|
|
685
|
+
If set, an interval in milliseconds is used to force the debug mode on the Console tab, making it harder to use other features of the Developer Tools. Works if [`debugProtection`](#debugprotection) is enabled. Recommended value is between `2000` and `4000` milliseconds.
|
|
686
686
|
|
|
687
687
|
### `disableConsoleOutput`
|
|
688
688
|
Type: `boolean` Default: `false`
|
|
@@ -1507,7 +1507,7 @@ The performance will be much slower than without obfuscation
|
|
|
1507
1507
|
deadCodeInjection: true,
|
|
1508
1508
|
deadCodeInjectionThreshold: 1,
|
|
1509
1509
|
debugProtection: true,
|
|
1510
|
-
debugProtectionInterval:
|
|
1510
|
+
debugProtectionInterval: 4000,
|
|
1511
1511
|
disableConsoleOutput: true,
|
|
1512
1512
|
identifierNamesGenerator: 'hexadecimal',
|
|
1513
1513
|
log: false,
|
|
@@ -1545,7 +1545,7 @@ The performance will be slower than without obfuscation
|
|
|
1545
1545
|
deadCodeInjection: true,
|
|
1546
1546
|
deadCodeInjectionThreshold: 0.4,
|
|
1547
1547
|
debugProtection: false,
|
|
1548
|
-
debugProtectionInterval:
|
|
1548
|
+
debugProtectionInterval: 0,
|
|
1549
1549
|
disableConsoleOutput: true,
|
|
1550
1550
|
identifierNamesGenerator: 'hexadecimal',
|
|
1551
1551
|
log: false,
|
|
@@ -1582,7 +1582,7 @@ The performance will be at a relatively normal level
|
|
|
1582
1582
|
controlFlowFlattening: false,
|
|
1583
1583
|
deadCodeInjection: false,
|
|
1584
1584
|
debugProtection: false,
|
|
1585
|
-
debugProtectionInterval:
|
|
1585
|
+
debugProtectionInterval: 0,
|
|
1586
1586
|
disableConsoleOutput: true,
|
|
1587
1587
|
identifierNamesGenerator: 'hexadecimal',
|
|
1588
1588
|
log: false,
|
|
@@ -1614,7 +1614,7 @@ The performance will be at a relatively normal level
|
|
|
1614
1614
|
controlFlowFlattening: false,
|
|
1615
1615
|
deadCodeInjection: false,
|
|
1616
1616
|
debugProtection: false,
|
|
1617
|
-
debugProtectionInterval:
|
|
1617
|
+
debugProtectionInterval: 0,
|
|
1618
1618
|
disableConsoleOutput: false,
|
|
1619
1619
|
identifierNamesGenerator: 'hexadecimal',
|
|
1620
1620
|
log: false,
|