Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-timestamp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-timestamp - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc