Browse Source

Add CLI option

Erik Dubbelboer 4 năm trước cách đây
mục cha
commit
02c5e8de0b

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 - 0
dist/index.cli.js


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


+ 4 - 0
src/cli/JavaScriptObfuscatorCLI.ts

@@ -236,6 +236,10 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
                 'Allows to run the obfuscated source code only on specific domains and/or sub-domains (comma separated)',
                 'Allows to run the obfuscated source code only on specific domains and/or sub-domains (comma separated)',
                 ArraySanitizer
                 ArraySanitizer
             )
             )
+            .option(
+                '--domain-dest <string>',
+                'Allows the browser to be redirected to this domain if the source code isn\'t run on the domains specified by --domain-lock',
+            )
             .option(
             .option(
                 '--exclude <list> (comma separated, without whitespaces)',
                 '--exclude <list> (comma separated, without whitespaces)',
                 'A filename or glob which indicates files to exclude from obfuscation',
                 'A filename or glob which indicates files to exclude from obfuscation',

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