mongoose-timestamp
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -31,3 +31,3 @@ /*! | ||
dataObj[updatedAt] = updatedAtType; | ||
if (schema.path('createdAt')) { | ||
if (schema.path(createdAt)) { | ||
schema.add(dataObj); | ||
@@ -34,0 +34,0 @@ schema.virtual(createdAt) |
{ | ||
"name": "mongoose-timestamp" | ||
, "description": "Mongoose plugin that adds createdAt and updatedAt auto-assigned date properties" | ||
, "version": "0.2.0" | ||
, "author": "Nicholas Penree <nick@penree.com>" | ||
, "keywords": ["mongodb", "mongoose", "plugin", "timestamps", "createdAt", "updatedAt"] | ||
, "repository": { | ||
"type": "git" | ||
, "url": "git://github.com/drudge/mongoose-timestamp" | ||
} | ||
, "dependencies": { | ||
"bson": "0.2.2" | ||
} | ||
, "devDependencies": { | ||
"mongoose": ">= 3.0" | ||
, "should": ">= 0.2.1" | ||
, "mocha": ">= 0.13.0" | ||
} | ||
, "scripts": { | ||
"test": "mocha -u bdd -R spec -c ./test/*test.js" | ||
} | ||
, "license": "MIT" | ||
, "engine": { | ||
"node": ">= 0.6" | ||
} | ||
"name": "mongoose-timestamp", | ||
"description": "Mongoose plugin that adds createdAt and updatedAt auto-assigned date properties", | ||
"version": "0.2.1", | ||
"author": "Nicholas Penree <nick@penree.com>", | ||
"keywords": [ | ||
"mongodb", | ||
"mongoose", | ||
"plugin", | ||
"timestamps", | ||
"createdAt", | ||
"updatedAt" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/drudge/mongoose-timestamp" | ||
}, | ||
"devDependencies": { | ||
"mongoose": "^3.8.8", | ||
"should": "^3.2.0-beta1", | ||
"mocha": "^1.18.2" | ||
}, | ||
"scripts": { | ||
"test": "mocha -u bdd -R spec -c ./test/*test.js" | ||
}, | ||
"license": "MIT", | ||
"engine": { | ||
"node": ">= 0.6" | ||
} | ||
} |
0
11925
- Removedbson@0.2.2
- Removedbson@0.2.2(transitive)