Comparing version 1.1.7 to 1.1.8
1.1.8 / 2011-03-23 | ||
================== | ||
* Fixed 'id' overriding. [bnoguchi] | ||
1.1.7 / 2011-03-22 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -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 }); | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3169347
80
209
25805