mongo-schema
Advanced tools
Comparing version 0.1.17 to 0.1.18
{ | ||
"name": "tiny-webrtc", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"homepage": "https://github.com/paul-em/tiny-webrtc", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -41,3 +41,3 @@ var MongoSchema = function () { | ||
var firstEl; | ||
for(var f in value){ | ||
for (var f in value) { | ||
firstEl = f; | ||
@@ -234,3 +234,7 @@ break; | ||
if ((properties.required || !isUndefined(getDefault(properties))) && !isUndefined(factoryDefaults[type])) { | ||
defaults[key] = getDefault(properties) || factoryDefaults[type](); | ||
defaults[key] = getDefault(properties); | ||
if (defaults[key] === undefined) { | ||
defaults[key] = factoryDefaults[type](); | ||
} | ||
} else { | ||
@@ -237,0 +241,0 @@ defaults[key] = undefined; |
{ | ||
"name": "mongo-schema", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"main": "lib/mongo-schema.js", | ||
@@ -5,0 +5,0 @@ "description": "Basic schema for mongodb", |
# mongo-schema [![Build Status](https://secure.travis-ci.org/paul-em/mongo-schema.png?branch=master)](http://travis-ci.org/paul-em/mongo-schema) | ||
Basic schema for mongodb. Can be used on server and client! | ||
Basic schema for mongodb. Can be used on server and client! NOT STABLE YET!!! | ||
@@ -5,0 +5,0 @@ ## Getting Started |
72286
1120