mongo-schema
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "tiny-webrtc", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/paul-em/tiny-webrtc", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -43,3 +43,3 @@ var MongoSchema = function () { | ||
if (!value.hasOwnProperty(i)) continue; | ||
re = self.check(value[i], properties[0]); | ||
re = self.check(value[i], properties[0], update); | ||
newData[key][i] = re.data; | ||
@@ -51,3 +51,3 @@ errors = errors.concat(re.errors); | ||
if (!isUndefined(value)) { | ||
re = self.check(value, properties); | ||
re = self.check(value, properties, update); | ||
newData[key] = re.data; | ||
@@ -54,0 +54,0 @@ errors = errors.concat(re.errors); |
{ | ||
"name": "mongo-schema", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"main": "lib/mongo-schema.js", | ||
@@ -5,0 +5,0 @@ "description": "Basic schema for mongodb", |
55296