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

clever-frontend-utils

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clever-frontend-utils - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

4

dist/reduxAsyncUtils/selectors.js

@@ -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",

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