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

@cerebral/fluent

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerebral/fluent - npm Package Compare versions

Comparing version 1.0.0-1518858486644 to 1.0.0-1518864840251

7

lib/Model.js

@@ -234,3 +234,8 @@ import { extractModuleProp, isObject, BaseModel } from 'cerebral/internal';

updateIn(this.state, path, (parentState, key) => {
parentState[key] = value;
if (isObservableMap(parentState)) {
parentState.set(key, value);
}
else {
parentState[key] = value;
}
});

@@ -237,0 +242,0 @@ }

7

lib/utils.js

@@ -17,6 +17,2 @@ import { isObservable, isObservableMap } from 'mobx';

return Object.keys(obj).reduce((newObj, key) => {
if (isObservable(obj[key]) || obj[key] instanceof ComputedClass) {
newObj[key] = obj[key];
return newObj;
}
const propertyDescriptor = Object.getOwnPropertyDescriptor(obj, key);

@@ -26,2 +22,5 @@ if (propertyDescriptor && 'get' in propertyDescriptor) {

}
else if (isObservable(obj[key]) || obj[key] instanceof ComputedClass) {
newObj[key] = obj[key];
}
else if (isObject(obj[key])) {

@@ -28,0 +27,0 @@ path.push(key);

{
"name": "@cerebral/fluent",
"version": "1.0.0-1518858486644",
"version": "1.0.0-1518864840251",
"description": "Makes Cerebral typescript friendly",

@@ -27,3 +27,3 @@ "main": "index.js",

"dependencies": {
"cerebral": "^4.2.0-1518858486644",
"cerebral": "^4.2.0-1518864840251",
"mobx": "^3.4.1"

@@ -30,0 +30,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