javascript-obfuscator 3.2.7 → 4.0.1

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,13 @@
1
1
  Change Log
2
2
 
3
+ v4.0.1
4
+ ---
5
+ * Update `class-validator` dependency https://github.com/javascript-obfuscator/javascript-obfuscator/pull/1146
6
+
7
+ v4.0.0
8
+ ---
9
+ * **Breaking change:** `debugProtectionInterval` option now accepts value in milliseconds instead of `boolean` value. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1031
10
+
3
11
  v3.2.7
4
12
  ---
5
13
  * 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
@@ -42,9 +42,6 @@ The example of obfuscated code: [github.com](https://github.com/javascript-obfus
42
42
  [![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/sanex3339/javascript-obfuscator)
43
43
 
44
44
  #### You can support this project by donating:
45
- * (OpenCollective) https://opencollective.com/javascript-obfuscator
46
- * PayPal credit card [https://www.paypal.com/donate](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=javascript-obfuscator@yandex.ru&lc=US&no_note=0&item_name=Support+javascript-obfuscator&cn=&curency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)
47
- * PayPal https://www.paypal.me/javascriptobfuscator
48
45
  * (Bitcoin) bc1q203p8nyrstwm7vwzjg3h9l9t6y9ka0umw0rx96
49
46
 
50
47
  Huge thanks to all supporters!
@@ -349,7 +346,7 @@ Following options are available for the JS Obfuscator:
349
346
  deadCodeInjection: false,
350
347
  deadCodeInjectionThreshold: 0.4,
351
348
  debugProtection: false,
352
- debugProtectionInterval: false,
349
+ debugProtectionInterval: 0,
353
350
  disableConsoleOutput: false,
354
351
  domainLock: [],
355
352
  domainLockRedirectUrl: 'about:blank',
@@ -358,7 +355,7 @@ Following options are available for the JS Obfuscator:
358
355
  identifierNamesGenerator: 'hexadecimal',
359
356
  identifiersDictionary: [],
360
357
  identifiersPrefix: '',
361
- ignoreRequireImports: false,
358
+ ignoreImports: false,
362
359
  inputFileName: '',
363
360
  log: false,
364
361
  numbersToExpressions: false,
@@ -413,7 +410,7 @@ Following options are available for the JS Obfuscator:
413
410
  --dead-code-injection <boolean>
414
411
  --dead-code-injection-threshold <number>
415
412
  --debug-protection <boolean>
416
- --debug-protection-interval <boolean>
413
+ --debug-protection-interval <number>
417
414
  --disable-console-output <boolean>
418
415
  --domain-lock '<list>' (comma separated)
419
416
  --domain-lock-redirect-url <string>
@@ -678,11 +675,11 @@ Type: `boolean` Default: `false`
678
675
  This option makes it almost impossible to use the `debugger` function of the Developer Tools (both on WebKit-based and Mozilla Firefox).
679
676
 
680
677
  ### `debugProtectionInterval`
681
- Type: `boolean` Default: `false`
678
+ Type: `number` Default: `0`
682
679
 
683
680
  ##### :warning: Can freeze your browser! Use at own risk.
684
681
 
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.
682
+ 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
683
 
687
684
  ### `disableConsoleOutput`
688
685
  Type: `boolean` Default: `false`
@@ -839,7 +836,7 @@ Sets prefix for all global identifiers.
839
836
 
840
837
  Use this option when you want to obfuscate multiple files. This option helps to avoid conflicts between global identifiers of these files. Prefix should be different for every file.
841
838
 
842
- ### `ignoreRequireImports`
839
+ ### `ignoreImports`
843
840
  Type: `boolean` Default: `false`
844
841
 
845
842
  Prevents obfuscation of `require` imports. Could be helpful in some cases when for some reason runtime environment requires these imports with static strings only.
@@ -1507,7 +1504,7 @@ The performance will be much slower than without obfuscation
1507
1504
  deadCodeInjection: true,
1508
1505
  deadCodeInjectionThreshold: 1,
1509
1506
  debugProtection: true,
1510
- debugProtectionInterval: true,
1507
+ debugProtectionInterval: 4000,
1511
1508
  disableConsoleOutput: true,
1512
1509
  identifierNamesGenerator: 'hexadecimal',
1513
1510
  log: false,
@@ -1545,7 +1542,7 @@ The performance will be slower than without obfuscation
1545
1542
  deadCodeInjection: true,
1546
1543
  deadCodeInjectionThreshold: 0.4,
1547
1544
  debugProtection: false,
1548
- debugProtectionInterval: false,
1545
+ debugProtectionInterval: 0,
1549
1546
  disableConsoleOutput: true,
1550
1547
  identifierNamesGenerator: 'hexadecimal',
1551
1548
  log: false,
@@ -1582,7 +1579,7 @@ The performance will be at a relatively normal level
1582
1579
  controlFlowFlattening: false,
1583
1580
  deadCodeInjection: false,
1584
1581
  debugProtection: false,
1585
- debugProtectionInterval: false,
1582
+ debugProtectionInterval: 0,
1586
1583
  disableConsoleOutput: true,
1587
1584
  identifierNamesGenerator: 'hexadecimal',
1588
1585
  log: false,
@@ -1614,7 +1611,7 @@ The performance will be at a relatively normal level
1614
1611
  controlFlowFlattening: false,
1615
1612
  deadCodeInjection: false,
1616
1613
  debugProtection: false,
1617
- debugProtectionInterval: false,
1614
+ debugProtectionInterval: 0,
1618
1615
  disableConsoleOutput: false,
1619
1616
  identifierNamesGenerator: 'hexadecimal',
1620
1617
  log: false,
@@ -1677,7 +1674,7 @@ Try `renamePropertiesMode: 'safe'` option, if it still doesn't work, just disabl
1677
1674
 
1678
1675
  ## Backers
1679
1676
 
1680
- Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/javascript-obfuscator#backer)]
1677
+ Support us with a monthly donation and help us continue our activities.
1681
1678
 
1682
1679
  <a href="https://opencollective.com/javascript-obfuscator/backer/0/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/backer/0/avatar.svg"></a>
1683
1680
  <a href="https://opencollective.com/javascript-obfuscator/backer/1/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/backer/1/avatar.svg"></a>
@@ -1713,7 +1710,7 @@ Support us with a monthly donation and help us continue our activities. [[Become
1713
1710
 
1714
1711
  ## Sponsors
1715
1712
 
1716
- Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/javascript-obfuscator#sponsor)]
1713
+ Become a sponsor and get your logo on our README on Github with a link to your site.
1717
1714
 
1718
1715
  <a href="https://opencollective.com/javascript-obfuscator/sponsor/0/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/sponsor/0/avatar.svg"></a>
1719
1716
  <a href="https://opencollective.com/javascript-obfuscator/sponsor/1/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/sponsor/1/avatar.svg"></a>