mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
CLIUtils tests
This commit is contained in:
@@ -90,7 +90,8 @@ export class JavaScriptObfuscatorCLI {
|
||||
return;
|
||||
}
|
||||
|
||||
this.inputPath = CLIUtils.getInputPath(this.arguments);
|
||||
this.inputPath = this.arguments[0];
|
||||
CLIUtils.validateInputPath(this.inputPath);
|
||||
|
||||
this.getData();
|
||||
this.processData();
|
||||
@@ -156,7 +157,7 @@ export class JavaScriptObfuscatorCLI {
|
||||
|
||||
private processData (): void {
|
||||
let options: IObfuscatorOptions = this.buildOptions(),
|
||||
outputCodePath: string = CLIUtils.getOutputCodePath(this.commands, this.inputPath);
|
||||
outputCodePath: string = CLIUtils.getOutputCodePath((<any>this.commands).output, this.inputPath);
|
||||
|
||||
if (options.sourceMap) {
|
||||
this.processDataWithSourceMap(outputCodePath, options);
|
||||
|
||||
Reference in New Issue
Block a user