Browse Source

Updated changelog and readme, version update

sanex3339 5 năm trước cách đây
mục cha
commit
7b63ea1e80
6 tập tin đã thay đổi với 18 bổ sung14701 xóa
  1. 8 0
      CHANGELOG.md
  2. 9 1
      README.md
  3. 0 0
      dist/index.browser.js
  4. 0 1072
      dist/index.cli.js
  5. 0 13627
      dist/index.js
  6. 1 1
      package.json

+ 8 - 0
CHANGELOG.md

@@ -1,5 +1,13 @@
 Change Log
 
+v0.20.0
+---
+* **New option value:** `identifierNamesGenerator` now allows to set new `dictionary` identifier names generator.
+* **New option:** `identifiersDictionary` sets identifiers dictionary for `identifierNamesGenerator: dictionary` option
+
+Thanks to our contributors!
+ * [adiantek](https://github.com/adiantek)
+
 v0.19.4
 ---
 * Fixed `reservedNames` option

+ 9 - 1
README.md

@@ -292,6 +292,7 @@ Following options are available for the JS Obfuscator:
     disableConsoleOutput: false,
     domainLock: [],
     identifierNamesGenerator: 'hexadecimal',
+    identifiersDictionary: [],
     identifiersPrefix: '',
     inputFileName: '',
     log: false,
@@ -334,7 +335,8 @@ Following options are available for the JS Obfuscator:
     --disable-console-output <boolean>
     --domain-lock '<list>' (comma separated)
     --exclude '<list>' (comma separated)
-    --identifier-names-generator <string> [hexadecimal, mangled]
+    --identifier-names-generator <string> [dictionary, hexadecimal, mangled]
+    --identifiers-dictionary '<list>' (comma separated)
     --identifiers-prefix <string>
     --log <boolean>
     --rename-globals <boolean>
@@ -597,9 +599,15 @@ Type: `string` Default: `hexadecimal`
 Sets identifier names generator.
 
 Available values:
+* `dictionary`: identifier names from [`identifiersDictionary`](#identifiersDictionary) list
 * `hexadecimal`: identifier names like `_0xabc123`
 * `mangled`: short identifier names like `a`, `b`, `c`
 
+### `identifiersDictionary`
+Type: `string[]` Default: `[]`
+
+Sets identifiers dictionary  for [`identifierNamesGenerator`](#identifierNamesGenerator): `dictionary` option
+
 ### `identifiersPrefix`
 Type: `string` Default: `''`
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.browser.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1072
dist/index.cli.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 13627
dist/index.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "javascript-obfuscator",
-  "version": "0.19.4",
+  "version": "0.20.0",
   "description": "JavaScript obfuscator",
   "keywords": [
     "obfuscator",

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác