javascript-obfuscator 3.2.7 → 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 CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  v3.2.7
4
8
  ---
5
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
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: false,
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 <boolean>
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: `boolean` Default: `false`
681
+ Type: `number` Default: `0`
682
682
 
683
683
  ##### :warning: Can freeze your browser! Use at own risk.
684
684
 
685
- If checked, an interval 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.
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: true,
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: false,
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: false,
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: false,
1617
+ debugProtectionInterval: 0,
1618
1618
  disableConsoleOutput: false,
1619
1619
  identifierNamesGenerator: 'hexadecimal',
1620
1620
  log: false,