Comparing version 1.9.0 to 1.9.1-readme-async-action-c4e4dc9a040c9348695830e85c03c912f974a1cd
@@ -7,2 +7,7 @@ # Change Log | ||
## 1.9.1 - 2019-11-15 | ||
* Update gulp for Node 12 compatibility and update Travis CI config [Paulo Castro] | ||
* Improve README re action function: callback and async [Paulo Castro] | ||
## 1.9.0 - 2019-02-25 | ||
@@ -9,0 +14,0 @@ |
{ | ||
"name": "capitano", | ||
"version": "1.9.0", | ||
"version": "1.9.1-readme-async-action-c4e4dc9a040c9348695830e85c03c912f974a1cd", | ||
"description": "Powerful, non opitionated command line parser for serious applications", | ||
@@ -31,3 +31,3 @@ "main": "build/capitano.js", | ||
"coffee-script": "~1.9.2", | ||
"gulp": "~3.8.11", | ||
"gulp": "~4.0.2", | ||
"gulp-coffeelint": "~0.5.0", | ||
@@ -34,0 +34,0 @@ "gulp-mocha": "~2.0.1", |
@@ -103,3 +103,8 @@ Capitano | ||
If the `callback` argument is not declared in the action function, it'll be called implicitly, however in order to ensure Capitano works as expected, call the `callback` function if your action is async. | ||
If the `callback` argument is not declared in the action function, it'll be called implicitly. | ||
If this applies and the action function is asynchronous (returns a promise), Capitano will await | ||
for the promise to resolve (fulfilled or rejected) before calling the `callback`. To emphasize it, | ||
the callback must not be declared among the action function arguments in order for this behavior | ||
to apply. If the callback is declared, Capitano will not implicitly call it. | ||
Capitano uses the `action.length` property to determine whether the `action` function declares the `callback` argument. | ||
@@ -106,0 +111,0 @@ This doesn't work with [default function parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
157442
481
1