Comparing version 5.0.8 to 5.0.9
@@ -429,7 +429,10 @@ 'use strict'; | ||
let res = command.handler(input, flags); | ||
Promise.resolve(res) | ||
.then(() => { | ||
if (res.then) { | ||
res.then(() => { | ||
this.emit('executed', command, input, flags); | ||
}).catch((err) => this.handleError(err)); | ||
} | ||
else { | ||
this.emit('executed', command, input, flags); | ||
}) | ||
.catch(err => this.handleError(err)); | ||
} | ||
} | ||
@@ -436,0 +439,0 @@ catch (err) { |
{ | ||
"name": "cac", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"description": "Command-line queen.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
32139
688