Socket
Socket
Sign inDemoInstall

mongoose

Package Overview
Dependencies
Maintainers
0
Versions
884
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose - npm Package Compare versions

Comparing version 1.1.22 to 1.1.23

5

History.md
1.1.23 / 2011-04-01
===================
* Added Model#model
1.1.22 / 2011-03-31

@@ -3,0 +8,0 @@ ===================

2

lib/mongoose/index.js

@@ -284,3 +284,3 @@

exports.version = '1.1.22';
exports.version = '1.1.23';

@@ -287,0 +287,0 @@ /**

@@ -250,2 +250,12 @@

/**
* Shortcut to access another model.
*
* @param {String} model name
*/
Model.prototype.model = function (name) {
return this.db.model(name);
};
/**
* Access the options defined in the schema

@@ -252,0 +262,0 @@ *

@@ -36,4 +36,4 @@

ObjectId.prototype.checkRequired = function(value){
return value && value instanceof oid;
ObjectId.prototype.checkRequired = function (value) {
return !!value && value instanceof oid;
};

@@ -40,0 +40,0 @@

{
"name": "mongoose"
, "description": "Mongoose MongoDB ORM"
, "version": "1.1.22"
, "version": "1.1.23"
, "author": "Guillermo Rauch <guillermo@learnboost.com>"

@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"]

@@ -337,2 +337,6 @@

});
Loki.path('owner').doValidate(undefined, function(err){
err.should.be.an.instanceof(ValidatorError);
});
},

@@ -339,0 +343,0 @@

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