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

state-tree

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

state-tree - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "state-tree",
"version": "0.1.7",
"version": "0.1.8",
"description": "A state tree that handles reference updates and lets you flush a description of changes",

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

@@ -24,3 +24,3 @@ var React = require('react');

(typeof paths[key] === 'object' && paths[key].hasChanged(changes)) ||
(hasChanged(paths[key], changes))
(typeof paths[key] !== 'object' && hasChanged(paths[key], changes))
) {

@@ -27,0 +27,0 @@ return this.forceUpdate();

@@ -170,3 +170,3 @@ # state-tree (EXPERIMENTAL)

var hasUpdate = listPath.reduce(function (changes, key) {
return changes[key];
return changes ? changes[key] : false;
}, changes); // undefined

@@ -173,0 +173,0 @@ if (hasUpdate) {

@@ -124,3 +124,3 @@ var subscribers = [];

return path.split('.').reduce(function (changes, key) {
return changes[key];
return changes ? changes[key] : false;
}, changes);

@@ -127,0 +127,0 @@ }

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