clever-frontend-utils
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -25,4 +25,4 @@ "use strict"; | ||
listLoaded: function (state) { return !!listState(state).lastUpdated; }, | ||
list: reselect_1.createSelector(listData, function (data) { return _.map(data, function (value) { return value.data; }); }), | ||
itemsByID: reselect_1.createSelector(listData, function (data) { return _.mapValues(data, function (value) { return value.data; }); }), | ||
list: reselect_1.createSelector(listData, function (data) { return _.map(data, function (value) { return value.data || options.itemDefault; }); }), | ||
itemsByID: reselect_1.createSelector(listData, function (data) { return _.mapValues(data, function (value) { return value.data || options.itemDefault; }); }), | ||
itemLoading: function (state, id) { return !!itemState(state, id).isLoading; }, | ||
@@ -29,0 +29,0 @@ itemLoadError: function (state, id) { return itemState(state, id).error; }, |
@@ -27,7 +27,7 @@ import { createSelector as createMemoizedSelector } from "reselect"; | ||
listData, | ||
(data) => _.map(data, (value) => value.data), | ||
(data) => _.map(data, (value) => value.data || options.itemDefault), | ||
), | ||
itemsByID: createMemoizedSelector( | ||
listData, | ||
(data) => _.mapValues(data, (value) => value.data), | ||
(data) => _.mapValues(data, (value) => value.data || options.itemDefault), | ||
), | ||
@@ -34,0 +34,0 @@ |
{ | ||
"name": "clever-frontend-utils", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A set of utils for frontend projects at Clever (and potentially elsewhere!)", | ||
@@ -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
41536