Comparing version 1.2.0 to 1.3.0
@@ -209,4 +209,14 @@ 'use strict'; | ||
module.exports = function (options) { | ||
return new Datamodel(options); | ||
module.exports = function (models) { | ||
var model = new Datamodel(); | ||
if (Array.isArray(models)) { | ||
models.forEach(function(func, i) { | ||
if (typeof func === 'function') { | ||
func(model); | ||
} | ||
}); | ||
} | ||
return model; | ||
} |
{ | ||
"name": "datamodel", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
27841
807