modeled-mobx
Advanced tools
Comparing version 0.0.3-0 to 0.0.3-1
@@ -31,3 +31,3 @@ var mobx = require('mobx'); | ||
function hydrate(model, attrs) { | ||
const m = new model(); | ||
const m = new model(attrs); | ||
@@ -34,0 +34,0 @@ if (typeof m.hydrate == 'function') { |
@@ -31,3 +31,3 @@ import { observable, intercept, makeObservable } from 'mobx'; | ||
function hydrate(model, attrs) { | ||
const m = new model(); | ||
const m = new model(attrs); | ||
@@ -34,0 +34,0 @@ if (typeof m.hydrate == 'function') { |
@@ -31,3 +31,3 @@ import { observable, intercept, makeObservable } from 'mobx'; | ||
function hydrate(model, attrs) { | ||
const m = new model(); | ||
const m = new model(attrs); | ||
@@ -34,0 +34,0 @@ if (typeof m.hydrate == 'function') { |
@@ -34,3 +34,3 @@ (function (global, factory) { | ||
function hydrate(model, attrs) { | ||
const m = new model(); | ||
const m = new model(attrs); | ||
@@ -37,0 +37,0 @@ if (typeof m.hydrate == 'function') { |
{ | ||
"name": "modeled-mobx", | ||
"version": "0.0.3-0", | ||
"version": "0.0.3-1", | ||
"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
73006