state-tree
Advanced tools
Comparing version 0.1.14 to 0.1.15
{ | ||
"name": "state-tree", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "A state tree that handles reference updates and lets you flush a description of changes", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -302,4 +302,8 @@ var subscribers = []; | ||
value = cb(Object.keys(deps).reduce(function (props, key) { | ||
var path = deps[key].split('.'); | ||
props[key] = getByPath(path, passedState); | ||
if (typeof deps[key] === 'string') { | ||
var path = deps[key].split('.'); | ||
props[key] = getByPath(path, passedState); | ||
} else { | ||
props[key] = deps[key].get(passedState); | ||
} | ||
return props; | ||
@@ -306,0 +310,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
36850
21
913