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

capitano

Package Overview
Dependencies
Maintainers
3
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.8.2-67-fix-ignored-error-in-async-action-functions-6d532b2a9ec102a60f57eb0e28a30849855ff6d6 to 1.8.2-67-fix-ignored-error-in-async-action-functions-832fb77823678e31bb969060712b3f7956e2ac53

27

build/command.js

@@ -99,11 +99,2 @@ var Command, Option, Signature, _, parse, settings, state, utils;

actionPromise = _this.action(params, parsedOptions, callback);
if (actionPromise != null) {
if (typeof actionPromise["catch"] === "function") {
actionPromise["catch"](function(_error) {
if (_error) {
return typeof callback === "function" ? callback(_error) : void 0;
}
});
}
}
} catch (error1) {

@@ -113,4 +104,18 @@ error = error1;

}
if (_this.action.length < 3) {
return typeof callback === "function" ? callback() : void 0;
if (callback != null) {
if ((actionPromise != null ? actionPromise.then : void 0) != null) {
return actionPromise.then(function(_value) {
if (_this.action.length < 3) {
return callback();
}
}, function(_error) {
if (_error) {
return callback(_error);
}
});
} else {
if (_this.action.length < 3) {
return callback();
}
}
}

@@ -117,0 +122,0 @@ });

{
"name": "capitano",
"version": "1.8.2-67-fix-ignored-error-in-async-action-functions-6d532b2a9ec102a60f57eb0e28a30849855ff6d6",
"version": "1.8.2-67-fix-ignored-error-in-async-action-functions-832fb77823678e31bb969060712b3f7956e2ac53",
"description": "Powerful, non opitionated command line parser for serious applications",

@@ -29,2 +29,3 @@ "main": "build/capitano.js",

"devDependencies": {
"bluebird": "^3.3.3",
"chai": "~2.3.0",

@@ -31,0 +32,0 @@ "coffee-script": "~1.9.2",

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