Quellcode durchsuchen

Changed version, fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/252

sanex3339 vor 7 Jahren
Ursprung
Commit
cedc54f5e2
6 geänderte Dateien mit 17 neuen und 7 gelöschten Zeilen
  1. 1 0
      CHANGELOG.md
  2. 0 0
      dist/index.cli.js
  3. 0 0
      dist/index.js
  4. 0 0
      dist/index.web.js
  5. 1 1
      package.json
  6. 15 6
      src/cli/JavaScriptObfuscatorCLI.ts

+ 1 - 0
CHANGELOG.md

@@ -3,6 +3,7 @@ Change Log
 v0.17.0
 ---
 * **Web version**: Added web version dist
+* Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/252
 * Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/247
 
 v0.16.0

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.cli.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.web.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "javascript-obfuscator",
-  "version": "0.16.0",
+  "version": "0.17.0-dev.0",
   "description": "JavaScript obfuscator",
   "keywords": [
     "obfuscator",

+ 15 - 6
src/cli/JavaScriptObfuscatorCLI.ts

@@ -247,7 +247,10 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
                 ArraySanitizer
             )
             .option(
-                '--identifier-names-generator <string> [hexadecimal, mangled]', 'Sets identifier names generator (Default: hexadecimal)',
+                '--identifier-names-generator <string>',
+                'Sets identifier names generator. ' +
+                'Values: hexadecimal, mangled. ' +
+                'Default: hexadecimal',
                 IdentifierNamesGeneratorSanitizer
             )
             .option(
@@ -295,8 +298,10 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
                 'Sets file name for output source map when `--source-map-mode=separate`'
             )
             .option(
-                '--source-map-mode <string> [inline, separate]',
-                'Specify source map output mode',
+                '--source-map-mode <string>',
+                'Specify source map output mode. ' +
+                'Values: inline, separate. ' +
+                'Default: separate',
                 SourceMapModeSanitizer
             )
             .option(
@@ -305,8 +310,10 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
                 BooleanSanitizer
             )
             .option(
-                '--string-array-encoding <string|boolean> [true, false, base64, rc4]',
-                'Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed',
+                '--string-array-encoding <string|boolean>',
+                'Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. ' +
+                'Values: true, false, base64, rc4. ' +
+                'Default: false',
                 StringArrayEncodingSanitizer
             )
             .option(
@@ -316,7 +323,9 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
             )
             .option(
                 '--target <string>',
-                'Allows to set target environment for obfuscated code.',
+                'Allows to set target environment for obfuscated code. ' +
+                'Values: browser, browser-no-eval, node. ' +
+                'Default: browser',
                 ObfuscationTargetSanitizer
             )
             .option(

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.