mongo-schema
Advanced tools
Comparing version 0.1.20 to 0.1.21
{ | ||
"name": "tiny-webrtc", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"homepage": "https://github.com/paul-em/tiny-webrtc", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -254,3 +254,3 @@ var MongoSchema = function () { | ||
function normalizeType(type) { | ||
if (isObject(type) && type.name) { | ||
if (isObject(type) && type.name && !type.hasOwnProperty('name')) { | ||
type = type.name.toLowerCase(); | ||
@@ -257,0 +257,0 @@ if (types.indexOf(type) !== -1) { |
{ | ||
"name": "mongo-schema", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"main": "lib/mongo-schema.js", | ||
@@ -5,0 +5,0 @@ "description": "Basic schema for mongodb", |
75275