mongoose-embedded-document
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -72,7 +72,7 @@ // Generated by CoffeeScript 1.10.0 | ||
var modelClass, propertyName; | ||
modelClass = mongoose.model(options.ref, false, false); | ||
propertyName = "" + options.path + modelClass.schema.name; | ||
if (data == null) { | ||
return null; | ||
return this[propertyName] = null; | ||
} | ||
modelClass = mongoose.model(options.ref, false, false); | ||
propertyName = "" + options.path + modelClass.schema.name; | ||
if (isSameDocument(this[propertyName], data)) { | ||
@@ -79,0 +79,0 @@ this[propertyName].set((typeof data.toObject === "function" ? data.toObject() : void 0) || data); |
{ | ||
"name": "mongoose-embedded-document", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A Mongoose plugin to provide support for embedding single documents.", | ||
@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15549
0