Comparing version 2.0.0 to 2.0.1
@@ -38,4 +38,4 @@ /// <reference types="node" /> | ||
process(input: string[]): Command<Context>; | ||
run(input: string[], context: Context): Promise<number>; | ||
runExit(input: string[], context: Context): Promise<void>; | ||
run(input: Command<Context> | string[], context: Context): Promise<number>; | ||
runExit(input: Command<Context> | string[], context: Context): Promise<void>; | ||
definitions(): { | ||
@@ -42,0 +42,0 @@ path: string; |
@@ -59,8 +59,13 @@ "use strict"; | ||
let command; | ||
try { | ||
command = this.process(input); | ||
if (!Array.isArray(input)) { | ||
command = input; | ||
} | ||
catch (error) { | ||
context.stdout.write(this.error(error)); | ||
return 1; | ||
else { | ||
try { | ||
command = this.process(input); | ||
} | ||
catch (error) { | ||
context.stdout.write(this.error(error)); | ||
return 1; | ||
} | ||
} | ||
@@ -67,0 +72,0 @@ if (command.help) { |
{ | ||
"name": "clipanion", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "lib/advanced", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71072
1701