New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-embedded-document

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-embedded-document - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/plugin.js

@@ -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

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