modeled-mobx
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -116,2 +116,6 @@ var mobx = require('mobx'); | ||
if (attrs instanceof model) { | ||
return recordParentOf(attrs, parent); | ||
} | ||
if (typeof model.hydrate === 'function') { | ||
@@ -118,0 +122,0 @@ return recordParentOf(model.hydrate(attrs), parent); |
@@ -116,2 +116,6 @@ import { observable, action, isObservableProp, intercept, isObservableArray, makeObservable } from 'mobx'; | ||
if (attrs instanceof model) { | ||
return recordParentOf(attrs, parent); | ||
} | ||
if (typeof model.hydrate === 'function') { | ||
@@ -118,0 +122,0 @@ return recordParentOf(model.hydrate(attrs), parent); |
@@ -116,2 +116,6 @@ import { observable, action, isObservableProp, intercept, isObservableArray, makeObservable } from 'mobx'; | ||
if (attrs instanceof model) { | ||
return recordParentOf(attrs, parent); | ||
} | ||
if (typeof model.hydrate === 'function') { | ||
@@ -118,0 +122,0 @@ return recordParentOf(model.hydrate(attrs), parent); |
@@ -119,2 +119,6 @@ (function (global, factory) { | ||
if (attrs instanceof model) { | ||
return recordParentOf(attrs, parent); | ||
} | ||
if (typeof model.hydrate === 'function') { | ||
@@ -121,0 +125,0 @@ return recordParentOf(model.hydrate(attrs), parent); |
{ | ||
"name": "modeled-mobx", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "MobX powered classes with type-coercion and serialization/hydration", | ||
@@ -5,0 +5,0 @@ "author": "nathanstitt", |
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
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
107750
984