Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-schema-extend

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-schema-extend - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

6

index.js

@@ -61,4 +61,5 @@ var mongoose = require('mongoose'),

var type = doc[key];
var model = this.db.model(type);
if(model) {
if(type) {
// this will throw exception if the model isn't registered
var model = this.db.model(type);
var newFn = function() {

@@ -76,3 +77,2 @@ // this is pretty ugly, but we need to run the code below before the callback

}
}

@@ -79,0 +79,0 @@

{
"name": "mongoose-schema-extend",
"version": "0.1.6",
"version": "0.1.7",
"description": "mongoose schema inheritance and discriminator key extension",

@@ -33,4 +33,5 @@ "main": "index.js",

"mocha": "~1.3.2",
"should": "~1.1.0"
"should": "~1.1.0",
"mongoose": "~3.5.7"
}
}
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