Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@meadow/redux-api-middleware

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meadow/redux-api-middleware - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

22

build/middleware.js

@@ -50,8 +50,6 @@ 'use strict';

return promise.then(function (data) {
process.nextTick(function () {
return dispatch({
type: SUCCESS,
payload: data,
meta: meta
});
dispatch({
type: SUCCESS,
payload: data,
meta: meta
});

@@ -61,9 +59,7 @@

}, function (err) {
process.nextTick(function () {
return dispatch({
type: FAILURE,
payload: err,
error: true,
meta: meta
});
dispatch({
type: FAILURE,
payload: err,
error: true,
meta: meta
});

@@ -70,0 +66,0 @@

@@ -34,11 +34,11 @@ 'use strict';

return promise.then(data => {
process.nextTick(() => dispatch({
dispatch({
type: SUCCESS,
payload: data,
meta
}));
});
return data;
}, err => {
process.nextTick(() => dispatch({
dispatch({
type: FAILURE,

@@ -48,3 +48,3 @@ payload: err,

meta
}));
});

@@ -51,0 +51,0 @@ throw err;

{
"name": "@meadow/redux-api-middleware",
"version": "2.0.0",
"version": "3.0.0",
"description": "API middleware for redux",

@@ -5,0 +5,0 @@ "main": "build/middleware.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc