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

fun-model

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-model - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "fun-model",
"version": "1.0.4",
"version": "1.0.5",
"description": "fun-model is pure functional implementation of FLUX architecture.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -20,3 +20,3 @@ import * as h from './helpers';

let prop = innerState[subPath];
return Array.isArray(prop)
return Array.isArray(prop) && path.length > 0
? getInnerState(prop[Number(path.shift())], path)

@@ -38,3 +38,3 @@ : getInnerState(prop, path);

let newSubState = null;
if (Array.isArray(prop)) {
if (Array.isArray(prop) && path.length > 0) {
let index = Number(path.shift());

@@ -41,0 +41,0 @@ prop[index] = setInnerState(prop[index], path);

@@ -35,3 +35,3 @@ import * as h from './helpers';

let prop = innerState[subPath];
return Array.isArray(prop)
return Array.isArray(prop) && path.length > 0
? getInnerState(prop[Number(path.shift())], path)

@@ -54,3 +54,3 @@ : getInnerState(prop, path);

let newSubState = null;
if (Array.isArray(prop)) {
if (Array.isArray(prop) && path.length > 0) {
let index = Number(path.shift());

@@ -57,0 +57,0 @@ prop[index] = setInnerState(prop[index], path);

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