Comparing version 1.1.1 to 1.2.0
# Change Log | ||
## 1.2.0 | ||
### Enhancement | ||
* [#536] Use errorHandler for exceptions thrown inside stores by @ash14 | ||
## 1.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -159,2 +159,7 @@ /** | ||
if (this.errorHandler) { | ||
meta = meta || {}; | ||
if (!meta.error) { | ||
meta.error = new Error(message); | ||
} | ||
this.errorHandler({ | ||
@@ -161,0 +166,0 @@ message: message, |
@@ -113,3 +113,7 @@ /** | ||
} catch (e) { | ||
throw e; | ||
var message = e.message; | ||
var meta = { | ||
error: e | ||
}; | ||
return this.dispatcher._throwOrCallErrorHandler(message, 'DISPATCH_EXCEPTION', this.context, meta); | ||
} finally { | ||
@@ -116,0 +120,0 @@ debug('finished ' + actionName); |
{ | ||
"name": "dispatchr", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A Flux dispatcher for applications that run on the server and the client.", | ||
@@ -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
28235
571