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

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-ae2494d9dad68c9f17c759af82954154680bf42d",
"description": "Powerful, non opitionated command line parser for serious applications",

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

"async": "^1.0.0",
"bluebird": "^3.3.3",
"get-stdin": "^4.0.1",

@@ -44,0 +45,0 @@ "is-elevated": "^1.0.0",

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