@cerebral/fluent
Advanced tools
Comparing version 1.0.0-1518858486644 to 1.0.0-1518864840251
@@ -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 @@ } |
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61717
1509