redux-promise-middleware
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -149,4 +149,9 @@ 'use strict'; | ||
dispatch(rejectedAction); | ||
reject({ reason: reason, action: rejectedAction }); | ||
var error = new Error(); | ||
error.reason = reason; | ||
error.action = rejectedAction; | ||
reject(error); | ||
return; | ||
@@ -153,0 +158,0 @@ }); |
{ | ||
"name": "redux-promise-middleware", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Redux middleware for handling promises and optimistic updates", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# Redux Promise Middleware | ||
[![npm version](https://img.shields.io/npm/v/redux-promise-middleware.svg?style=flat)](https://www.npmjs.com/package/redux-promise-middleware) [![Build Status](https://travis-ci.org/pburtchaell/redux-promise-middleware.svg?branch=master)](https://travis-ci.org/pburtchaell/redux-promise-middleware) [![Coverage Status](https://coveralls.io/repos/pburtchaell/redux-promise-middleware/badge.svg?branch=master&service=github)](https://coveralls.io/github/pburtchaell/redux-promise-middleware?branch=master) [![npm downloads](https://img.shields.io/npm/dm/redux-promise-middleware.svg?style=flat)](https://www.npmjs.com/package/redux-promise-middleware) | ||
[![npm version](https://img.shields.io/npm/v/redux-promise-middleware.svg?style=flat)](https://www.npmjs.com/package/redux-promise-middleware) [![Build Status](https://travis-ci.org/pburtchaell/redux-promise-middleware.svg?branch=master)](https://travis-ci.org/pburtchaell/redux-promise-middleware) [![Coverage Status](https://coveralls.io/repos/pburtchaell/redux-promise-middleware/badge.svg?branch=master&service=github)](https://coveralls.io/github/pburtchaell/redux-promise-middleware?branch=master) [![npm downloads](https://img.shields.io/npm/dm/redux-promise-middleware.svg?style=flat)](https://www.npmjs.com/package/redux-promise-middleware) [![Known Vulnerabilities](https://snyk.io/test/npm/redux-promise-middleware/badge.svg)](https://snyk.io/test/npm/redux-promise-middleware) | ||
Redux promise middleware enables robust handling of async code in [Redux](http://redux.js.org). The middleware enables optimistic updates and dispatches pending, fulfilled and rejected actions. It can be combined with [redux-thunk](https://github.com/gaearon/redux-thunk) to chain async actions. | ||
@@ -6,0 +7,0 @@ |
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
261942
5683
23