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

wappsto-redux

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wappsto-redux - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

13

actions/request.js

@@ -78,3 +78,3 @@ import querystring from 'querystring';

function requestSuccess(id, method, url, responseStatus, json, options){
function requestSuccess(id, method, url, body, responseStatus, json, options){
return {

@@ -85,2 +85,3 @@ type: REQUEST_SUCCESS,

url,
body,
responseStatus,

@@ -92,3 +93,3 @@ json,

function requestError(id, method, url, responseStatus, json, options){
function requestError(id, method, url, body, responseStatus, json, options){
return {

@@ -99,2 +100,3 @@ type: REQUEST_ERROR,

url,
body,
responseStatus,

@@ -118,2 +120,5 @@ json,

dispatch(removeEntities(service, json.deleted, { ...options, parent, reset: false }));
if(json.shared_deleted){
dispatch(removeEntities(service, json.shared_deleted, { ...options, parent, reset: false }));
}
break;

@@ -170,3 +175,3 @@ default:

dispatchMethodAction(dispatch, requestOptions.method, url, response.json, options);
dispatch(requestSuccess(id, requestOptions.method, url, response.status, response.json, options));
dispatch(requestSuccess(id, requestOptions.method, url, data, response.status, response.json, options));
} else {

@@ -176,3 +181,3 @@ if(response.json && response.json.code === 9900025){

}
dispatch(requestError(id, requestOptions.method, url, response.status, response.json, options));
dispatch(requestError(id, requestOptions.method, url, data, response.status, response.json, options));
}

@@ -179,0 +184,0 @@ }

{
"name": "wappsto-redux",
"version": "3.0.5",
"version": "3.0.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,3 +31,3 @@ import { normalize } from 'normalizr';

function removeEntities(state, type, ids){
function removeEntities(state, type, ids = []){
ids.forEach(id => {

@@ -81,3 +81,3 @@ let newData = removeEntity(state, type, id);

if(childDef){
newData = removeEntities(state, child, ids || element[child]);
newData = removeEntities(state, child, ids || element[child] || []);
state = newData.state;

@@ -84,0 +84,0 @@ if(childDef.type === "many"){

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