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 +8 -0
- package/README.md +12 -15
- 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 +2 -2
- package/typings/src/custom-code-helpers/debug-protection/DebugProtectionFunctionIntervalCodeHelper.d.ts +2 -1
- package/typings/src/interfaces/options/IOptions.d.ts +1 -1
- package/typings/src/options/Options.d.ts +1 -1
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
|
[](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:
|
|
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
|
-
|
|
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 <
|
|
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: `
|
|
678
|
+
Type: `number` Default: `0`
|
|
682
679
|
|
|
683
680
|
##### :warning: Can freeze your browser! Use at own risk.
|
|
684
681
|
|
|
685
|
-
If
|
|
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
|
-
### `
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
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>
|