redux-promise-middleware
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -45,5 +45,4 @@ 'use strict'; | ||
next(_extends({ | ||
type: type + '_' + PENDING, | ||
payload: data | ||
}, meta && { meta: meta })); | ||
type: type + '_' + PENDING | ||
}, data && { payload: data }, meta && { meta: meta })); | ||
@@ -57,5 +56,3 @@ /** | ||
type: type + '_' + FULFILLED | ||
}, resolved.meta || resolved.payload ? resolved : _extends({ | ||
payload: resolved | ||
}, meta && { meta: meta }))); | ||
}, resolved.meta || resolved.payload ? resolved : _extends({}, resolved && { payload: resolved }, meta && { meta: meta }))); | ||
}, function (error) { | ||
@@ -62,0 +59,0 @@ return next(_extends({ |
{ | ||
"name": "redux-promise-middleware", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Redux middleware for handling promises", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
19457
456