Socket
Socket
Sign inDemoInstall

mongoose

Package Overview
Dependencies
Maintainers
0
Versions
883
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.7 to 1.1.8

lib/mongoose/schema/.array.js.swp

5

History.md
1.1.8 / 2011-03-23
==================
* Fixed 'id' overriding. [bnoguchi]
1.1.7 / 2011-03-22

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

2

lib/mongoose/index.js

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

exports.version = '1.1.7';
exports.version = '1.1.8';

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

@@ -43,3 +43,3 @@

this.virtual('id').get(function () {
if (!this.paths['id']) this.virtual('id').get(function () {
return this._id.toString();

@@ -361,3 +361,3 @@ });

Schema.prototype.virtual = function (name) {
var virtuals = this.virtuals || (this.virtuals = {})
var virtuals = this.virtuals || (this.virtuals = {});
var parts = name.split('.');

@@ -364,0 +364,0 @@ return virtuals[name] = parts.reduce( function (mem, part, i) {

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

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

@@ -751,4 +751,8 @@

Contact.virtualpath('fullName').should.be.an.instanceof(VirtualType);
},
'test GH-298 - The default creation of a virtual `id` should be muted when someone defines their own `id` attribute': function () {
new Schema({ id: String });
}
};
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