redux-promise-middleware
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -52,3 +52,3 @@ 'use strict'; | ||
var isAction = function isAction(resolved) { | ||
return resolved.meta || resolved.payload; | ||
return resolved && (resolved.meta || resolved.payload); | ||
}; | ||
@@ -74,3 +74,2 @@ var isThunk = function isThunk(resolved) { | ||
var resolveAction = getResolveAction(); | ||
return dispatch(isThunk(resolved) ? resolved.bind(null, resolveAction) : _extends({}, resolveAction, isAction(resolved) ? resolved : _extends({}, !!resolved && { payload: resolved }))); | ||
@@ -81,3 +80,2 @@ }, function () { | ||
var resolveAction = getResolveAction(true); | ||
return dispatch(isThunk(rejected) ? rejected.bind(null, resolveAction) : _extends({}, resolveAction, isAction(rejected) ? rejected : _extends({}, !!rejected && { payload: rejected }))); | ||
@@ -84,0 +82,0 @@ }); |
{ | ||
"name": "redux-promise-middleware", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Redux middleware for handling promises", | ||
@@ -39,7 +39,10 @@ "main": "dist/index.js", | ||
"redux": "^3.0.4", | ||
"redux-mock-store": "0.0.2" | ||
"redux-mock-store": "0.0.2", | ||
"sinon": "^1.17.2", | ||
"sinon-chai": "^2.8.0" | ||
}, | ||
"peerDependencies": { | ||
"redux": "^2.0.0 || ^3.0.0" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
# 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)](https://travis-ci.org/pburtchaell/redux-promise-middleware) [![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)](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) | ||
@@ -5,0 +5,0 @@ # Getting Started |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
0
10726
11
9
75