Comparing version 1.1.13 to 1.1.14
1.1.14 / 2011-03-28 | ||
=================== | ||
* Changed; more forgiving date casting, accepting '' as null. | ||
1.1.13 / 2011-03-26 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -284,3 +284,3 @@ | ||
exports.version = '1.1.13'; | ||
exports.version = '1.1.14'; | ||
@@ -287,0 +287,0 @@ /** |
@@ -45,3 +45,5 @@ | ||
SchemaDate.prototype.cast = function (value) { | ||
if (value === null) return value; | ||
if (value === null || value === '') | ||
return null; | ||
if (value instanceof Date) | ||
@@ -67,2 +69,8 @@ return value; | ||
/** | ||
* Date Query casting. | ||
* | ||
* @api private | ||
*/ | ||
function handleSingle (val) { | ||
@@ -88,2 +96,3 @@ return this.cast(val); | ||
}; | ||
SchemaDate.prototype.castForQuery = function ($conditional, val) { | ||
@@ -90,0 +99,0 @@ var handler; |
{ | ||
"name": "mongoose" | ||
, "description": "Mongoose MongoDB ORM" | ||
, "version": "1.1.13" | ||
, "version": "1.1.14" | ||
, "author": "Guillermo Rauch <guillermo@learnboost.com>" | ||
@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1468309
26099