Permalink
Browse files

v0.0.4 update mongoose

  • Loading branch information...
1 parent e9c1c9e commit 898a2f126f11c082186a306cabcf342ea7d76e92 lowol committed Oct 8, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 formatdate.js
  2. +2 −2 package.json
View
@@ -4,6 +4,7 @@ var mongoose = require('mongoose'),
var moment = require('moment');
+
/**
* FormatDate
*/
@@ -25,7 +26,7 @@ FormatDate.prototype.cast = function(value) {
}
if (value instanceof Number ||
- 'number' == typeof value ||
+ 'number' == typeof value ||
String(value) == Number(value)) {
// support for timestamps
return new Date(Number(value));
View
@@ -1,10 +1,10 @@
{
"name": "mongoose-schema-formatdate",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "mongoose formatdate schema",
"main": "formatdate.js",
"dependencies": {
- "mongoose": "~2.7.1",
+ "mongoose": "*",
"moment": "*"
},
"devDependencies": {

0 comments on commit 898a2f1

Please sign in to comment.