Comparing version 0.2.6 to 0.2.7
@@ -78,7 +78,8 @@ /** | ||
*/ | ||
Fluxible.prototype._defaultComponentActionHandler = function defaultComponentActionHandler(err) { | ||
if (err) { | ||
debug('Action returned error', err); | ||
throw err; | ||
Fluxible.prototype._defaultComponentActionHandler = function defaultComponentActionHandler(context, payload, done) { | ||
if (payload.err) { | ||
debug('Action returned error', payload.err); | ||
throw payload.err; | ||
} | ||
done(); | ||
}; | ||
@@ -85,0 +86,0 @@ |
@@ -152,4 +152,6 @@ /** | ||
executeAction: function componentExecuteAction(action, payload) { | ||
var actionHandler = self._app._componentActionHandler; | ||
self.executeAction(action, payload, actionHandler); | ||
self.executeAction(action, payload, function actionHandlerWrapper(err) { | ||
var noop = function () {}; | ||
self.executeAction(self._app._componentActionHandler, { err: err }, noop); | ||
}); | ||
} | ||
@@ -156,0 +158,0 @@ }; |
{ | ||
"name": "fluxible", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "A pluggable container for isomorphic flux applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
41387
683
0