🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

proxy-state-tree

Package Overview
Dependencies
Maintainers
1
Versions
896
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-state-tree - npm Package Compare versions

Comparing version

to
1.0.0-1531951520682

4

es/index.js
import proxify, { IS_PROXY, STATUS } from './proxify';
const isPlainObject = require('is-plain-object');
class ProxyStateTree {
constructor(state, options = { devmode: true }) {
if (!isPlainObject(state)) {
throw new Error('You have to pass a plain object to the Proxy State Tree');
}
this.state = state;

@@ -5,0 +9,0 @@ this.options = options;

@@ -60,2 +60,5 @@ const isPlainObject = require('is-plain-object');

}
if (target[prop] === undefined) {
return undefined;
}
return (target[prop] = proxify(tree, target[prop], nestedPath));

@@ -96,2 +99,5 @@ },

}
if (targetValue === undefined) {
return undefined;
}
return (target[prop] = proxify(tree, targetValue, nestedPath));

@@ -98,0 +104,0 @@ },

@@ -5,4 +5,8 @@ "use strict";

exports.IS_PROXY = proxify_1.IS_PROXY;
const isPlainObject = require('is-plain-object');
class ProxyStateTree {
constructor(state, options = { devmode: true }) {
if (!isPlainObject(state)) {
throw new Error('You have to pass a plain object to the Proxy State Tree');
}
this.state = state;

@@ -9,0 +13,0 @@ this.options = options;

@@ -62,2 +62,5 @@ "use strict";

}
if (target[prop] === undefined) {
return undefined;
}
return (target[prop] = proxify(tree, target[prop], nestedPath));

@@ -98,2 +101,5 @@ },

}
if (targetValue === undefined) {
return undefined;
}
return (target[prop] = proxify(tree, targetValue, nestedPath));

@@ -100,0 +106,0 @@ },

2

package.json
{
"name": "proxy-state-tree",
"version": "1.0.0-1531949621045",
"version": "1.0.0-1531951520682",
"description": "An implementation of the Mobx/Vue state tracking approach, for library authors",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet