浏览代码

Fixed wrong `stringArrayWrappersParametersMaxCount` CLI option name

sanex 4 年之前
父节点
当前提交
c7cc68bedb
共有 7 个文件被更改,包括 10 次插入4 次删除
  1. 5 1
      CHANGELOG.md
  2. 3 1
      README.md
  3. 0 0
      dist/index.browser.js
  4. 0 0
      dist/index.cli.js
  5. 0 0
      dist/index.js
  6. 1 1
      package.json
  7. 1 1
      src/cli/JavaScriptObfuscatorCLI.ts

+ 5 - 1
CHANGELOG.md

@@ -1,11 +1,15 @@
 Change Log
 
+v2.9.1
+---
+* Fixed wrong `stringArrayWrappersParametersMaxCount` CLI option name
+
 v2.9.0
 ---
 * New option: `stringArrayIndexesType` accepts an array of types of string array call indexes
 * Changed default type of all string array call indexes from `hexadecimal-numeric-string` to `hexadecimal-number`
 * New option: `stringArrayIndexShift` enables additional index shift for all string array calls
-* New option: `stringArrayWrappersParametersMaxCount` allows to control the maximum number of string array wrappers parameters
+* New option: ``stringArrayWrappersParametersMaxCount`` allows to control the maximum number of string array wrappers parameters
 * `stringArrayWrappersType: 'function'` option value moved from `high-obfuscation` to `medium-obfuscation` options preset
 
 v2.8.1

+ 3 - 1
README.md

@@ -371,6 +371,7 @@ Following options are available for the JS Obfuscator:
     stringArrayIndexShift: true,
     stringArrayWrappersCount: 1,
     stringArrayWrappersChainedCalls: true,
+    stringArrayWrappersParametersMaxCount: 2,
     stringArrayWrappersType: 'variable',
     stringArrayThreshold: 0.75,
     target: 'browser',
@@ -426,6 +427,7 @@ Following options are available for the JS Obfuscator:
     --string-array-index-shift <boolean>
     --string-array-wrappers-count <number>
     --string-array-wrappers-chained-calls <boolean>
+    --string-array-wrappers-parameters-max-count <number>
     --string-array-wrappers-type <string> [variable, function]
     --string-array-threshold <number>
     --target <string> [browser, browser-no-eval, node]
@@ -1126,7 +1128,7 @@ function test() {
 }
 ```
 
-### `stringArrayWrappersParametersCount`
+### `stringArrayWrappersParametersMaxCount`
 Type: `number` Default: `2`
 
 ##### :warning: [`stringArray`](#stringarray) option must be enabled

文件差异内容过多而无法显示
+ 0 - 0
dist/index.browser.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.cli.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.js


+ 1 - 1
package.json

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

+ 1 - 1
src/cli/JavaScriptObfuscatorCLI.ts

@@ -374,7 +374,7 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
                 BooleanSanitizer
             )
             .option(
-                '--string-array-wrappers-parameters-count <number>',
+                '--string-array-wrappers-parameters-max-count <number>',
                 'Allows to control the maximum number of string array wrappers parameters',
                 parseInt
             )

部分文件因为文件数量过多而无法显示