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

redux-json-api-handlers

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-json-api-handlers - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

8

__tests__/data/actions.js

@@ -91,6 +91,6 @@ import tests from '../tests'

},
},
meta: {
'/sorting/some': {
data: [{ id: 5 }, { id: 1 }, { id: 3 }],
meta: {
'/sorting/some': {
data: [{ id: 5 }, { id: 1 }, { id: 3 }],
},
},

@@ -97,0 +97,0 @@ },

@@ -61,4 +61,3 @@ 'use strict';

return function (state, _ref) {
var payload = _ref.payload,
meta = _ref.meta;
var payload = _ref.payload;

@@ -74,4 +73,5 @@ var _defaultLoadOptions$o = _extends({}, defaultLoadOptions, options),

var data = (0, _get2.default)(payload, 'data.' + resourceType, false);
var meta = (0, _get2.default)(payload, 'meta', false);
var payloadResource = keepSorting && !singular ? (0, _helpers.keepSortByKey)(meta, data, 'id') : data;
var payloadResource = keepSorting && !singular && meta ? (0, _helpers.keepSortByKey)(meta, data, 'id') : data;

@@ -78,0 +78,0 @@ var mappedResourceType = mapToKey || resourceType;

{
"name": "redux-json-api-handlers",
"version": "2.3.1",
"version": "2.3.2",
"description": "JSON-API entities and relationships handlers",

@@ -5,0 +5,0 @@ "main": "./lib/index.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