sails-mongo
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -22,3 +22,3 @@ /*--------------------------------------------------------------- | ||
// to track schema internally | ||
syncable: false, | ||
syncable: true, | ||
@@ -25,0 +25,0 @@ // Expose all the connection options with default settings |
@@ -315,12 +315,19 @@ | ||
if (val === "false") { | ||
return false; | ||
} | ||
// If we can verify that the field is NOT a string type, translate | ||
// certain values into booleans or null. Otherwise they'll be left | ||
// as strings. | ||
if (hop(self.schema, field) && self.schema[field].type != 'string') { | ||
if (val === "false") { | ||
return false; | ||
} | ||
if (val === "true") { | ||
return true; | ||
} | ||
if (val === "true") { | ||
return true; | ||
} | ||
if (val === "null") { | ||
return null; | ||
if (val === "null") { | ||
return null; | ||
} | ||
} | ||
@@ -327,0 +334,0 @@ |
{ | ||
"name": "sails-mongo", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "Mongo DB adapter for Sails.js", | ||
@@ -44,3 +44,3 @@ "main": "./lib/adapter.js", | ||
"waterline-errors": "~0.10.0", | ||
"waterline-cursor": "~0.0.3" | ||
"waterline-cursor": "~0.0.4" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
61825
1766
Updatedwaterline-cursor@~0.0.4