javascript-obfuscator 4.0.2 → 4.1.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/.mocharc.json +1 -1
- package/CHANGELOG.md +11 -1
- package/README.md +15 -9
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.LICENSE.txt +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cli.js +1 -1
- package/dist/index.cli.js.LICENSE.txt +1 -1
- package/dist/index.cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/typings/src/custom-code-helpers/common/templates/GlobalVariableServiceWorkerTemplate.d.ts +1 -0
- package/typings/src/enums/ObfuscationTarget.d.ts +1 -0
- package/typings/src/node/NodeFactory.d.ts +1 -1
package/.mocharc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
|
|
3
|
+
v4.1.1
|
|
4
|
+
---
|
|
5
|
+
* Update supported Node.js versions up to `node@22`. Fixes https://github.com/javascript-obfuscator/javascript-obfuscator/pull/1100
|
|
6
|
+
* Update `class-validator` version. Fixes https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1247
|
|
7
|
+
* Fixed CI
|
|
8
|
+
|
|
9
|
+
v4.1.0
|
|
10
|
+
---
|
|
11
|
+
* Add target `service-worker`
|
|
12
|
+
|
|
3
13
|
v4.0.2
|
|
4
14
|
---
|
|
5
15
|
* Add support for `node@18`
|
|
@@ -934,4 +944,4 @@ v0.7.0-dev.1
|
|
|
934
944
|
* **Breaking API change:** now `obfuscate(sourceCode, options)` returns `ObfuscationResult` object instead `string`. `ObfuscationResult` object contains two public methods: `getObfuscatedCode()` and `getSourceMap()`.
|
|
935
945
|
* CLI. Now any code can be obfuscated through CLI `javascript-obfuscator` command. See `README.md` for available options.
|
|
936
946
|
* New option `sourceMap` enables source map generation for obfuscated code.
|
|
937
|
-
* New option `sourceMapMode` specifies source map generation mode.
|
|
947
|
+
* New option `sourceMapMode` specifies source map generation mode.
|
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
Author: Timofey Kachalov
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
|
+
#### You can support this project by donating:
|
|
8
|
+
* (Github) https://github.com/sponsors/sanex3339
|
|
9
|
+
* (OpenCollective) https://opencollective.com/javascript-obfuscator
|
|
10
|
+
|
|
11
|
+
Huge thanks to all supporters!
|
|
12
|
+
|
|
7
13
|
# JavaScript obfuscator
|
|
8
14
|
|
|
9
15
|

|
|
@@ -32,6 +38,7 @@ The example of obfuscated code: [github.com](https://github.com/javascript-obfus
|
|
|
32
38
|
* Weex: [weex-devtool](https://www.npmjs.com/package/weex-devtool)
|
|
33
39
|
* Malta: [malta-js-obfuscator](https://github.com/fedeghe/malta-js-obfuscator)
|
|
34
40
|
* Netlify plugin: [netlify-plugin-js-obfuscator](https://www.npmjs.com/package/netlify-plugin-js-obfuscator)
|
|
41
|
+
* Snowpack plugin: [snowpack-javascript-obfuscator](https://www.npmjs.com/package/snowpack-javascript-obfuscator)
|
|
35
42
|
|
|
36
43
|
[](https://badge.fury.io/js/javascript-obfuscator)
|
|
37
44
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjavascript-obfuscator%2Fjavascript-obfuscator?ref=badge_shield)
|
|
@@ -41,11 +48,6 @@ The example of obfuscated code: [github.com](https://github.com/javascript-obfus
|
|
|
41
48
|
[](#sponsors)
|
|
42
49
|
[](https://xscode.com/sanex3339/javascript-obfuscator)
|
|
43
50
|
|
|
44
|
-
#### You can support this project by donating:
|
|
45
|
-
* (Bitcoin) bc1q203p8nyrstwm7vwzjg3h9l9t6y9ka0umw0rx96
|
|
46
|
-
|
|
47
|
-
Huge thanks to all supporters!
|
|
48
|
-
|
|
49
51
|
#### *NOTE! the README on the master branch might not match that of the latest stable release!*
|
|
50
52
|
|
|
51
53
|
#### If you have a question, check this section first: [FAQ](#frequently-asked-questions)
|
|
@@ -1186,7 +1188,7 @@ Each `stringArray` value will be encoded by the randomly picked encoding from th
|
|
|
1186
1188
|
Available values:
|
|
1187
1189
|
* `'none'` (`boolean`): doesn't encode `stringArray` value
|
|
1188
1190
|
* `'base64'` (`string`): encodes `stringArray` value using `base64`
|
|
1189
|
-
* `'rc4'` (`string`): encodes `stringArray` value using `rc4`. **About 30-50% slower than `base64`, but
|
|
1191
|
+
* `'rc4'` (`string`): encodes `stringArray` value using `rc4`. **About 30-50% slower than `base64`, but harder to get initial values.** It's recommended to disable [`unicodeEscapeSequence`](#unicodeescapesequence) option when using `rc4` encoding to prevent very large size of obfuscated code.
|
|
1190
1192
|
|
|
1191
1193
|
For example with the following option values some `stringArray` value won't be encoded, and some values will be encoded with `base64` and `rc4` encoding:
|
|
1192
1194
|
|
|
@@ -1672,9 +1674,13 @@ See: [`Kind of variables`](#kind-of-variables)
|
|
|
1672
1674
|
|
|
1673
1675
|
Try `renamePropertiesMode: 'safe'` option, if it still doesn't work, just disable this option.
|
|
1674
1676
|
|
|
1677
|
+
## GitHub Sponsors
|
|
1678
|
+
|
|
1679
|
+
<a href="https://github.com/microsoft" target="_blank"><img src="https://avatars.githubusercontent.com/u/6154722?s=200&v=4"></a>
|
|
1680
|
+
|
|
1675
1681
|
## Backers
|
|
1676
1682
|
|
|
1677
|
-
Support us with a monthly donation and help us continue our activities.
|
|
1683
|
+
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/javascript-obfuscator#backer)]
|
|
1678
1684
|
|
|
1679
1685
|
<a href="https://opencollective.com/javascript-obfuscator/backer/0/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/backer/0/avatar.svg"></a>
|
|
1680
1686
|
<a href="https://opencollective.com/javascript-obfuscator/backer/1/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/backer/1/avatar.svg"></a>
|
|
@@ -1708,7 +1714,7 @@ Support us with a monthly donation and help us continue our activities.
|
|
|
1708
1714
|
<a href="https://opencollective.com/javascript-obfuscator/backer/29/website" target="_blank"><img src="https://opencollective.com/javascript-obfuscator/backer/29/avatar.svg"></a>
|
|
1709
1715
|
|
|
1710
1716
|
|
|
1711
|
-
## Sponsors
|
|
1717
|
+
## Open Collective Sponsors
|
|
1712
1718
|
|
|
1713
1719
|
Become a sponsor and get your logo on our README on Github with a link to your site.
|
|
1714
1720
|
|
|
@@ -1727,7 +1733,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
|
|
|
1727
1733
|
## License
|
|
1728
1734
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjavascript-obfuscator%2Fjavascript-obfuscator?ref=badge_large)
|
|
1729
1735
|
|
|
1730
|
-
Copyright (C) 2016-
|
|
1736
|
+
Copyright (C) 2016-2024 [Timofey Kachalov](http://github.com/sanex3339).
|
|
1731
1737
|
|
|
1732
1738
|
Redistribution and use in source and binary forms, with or without
|
|
1733
1739
|
modification, are permitted provided that the following conditions are met:
|