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
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
156050
800
0
7
+ Addedbluebird@^3.3.3
+ Addedbluebird@3.7.2(transitive)