Socket
Socket
Sign inDemoInstall

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 1.2.0 to 1.2.1

8

dist/reduxAsyncUtils/reducers.js

@@ -115,2 +115,10 @@ "use strict";

var items = action.payload;
// If items is null or undefined just give them empty data. We need to allow
// null or undefined items for backwards compatibility.
if (items === null || items === undefined) {
return newState;
}
if (!Array.isArray(items)) {
throw new Error("AsyncListReducer received non-array items as input.");
}
for (var i = 0, len = items.length; i < len; i++) {

@@ -117,0 +125,0 @@ var item = items[i];

@@ -116,2 +116,13 @@ /**

const items = action.payload;
// If items is null or undefined just give them empty data. We need to allow
// null or undefined items for backwards compatibility.
if (items === null || items === undefined) {
return newState;
}
if (!Array.isArray(items)) {
throw new Error("AsyncListReducer received non-array items as input.");
}
for (let i = 0, len = items.length; i < len; i++) {

@@ -118,0 +129,0 @@ const item = items[i];

2

package.json
{
"name": "clever-frontend-utils",
"version": "1.2.0",
"version": "1.2.1",
"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