redux-json-api-handlers
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -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", |
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
79739