Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capitano

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capitano - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1-readme-async-action-c4e4dc9a040c9348695830e85c03c912f974a1cd

5

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc