New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1 to 0.1.2

13

index.js
var mongoose = require('mongoose'),
clone = require('clone');
owl = require('owl-deepcopy');

@@ -12,13 +12,4 @@ var Schema = mongoose.Schema,

// Deep clone the existing schema so we can add without changing it
var newSchema = clone(this);
var newSchema = owl.deepCopy(this);
// Fix for callQueue arguments, todo: fix clone implementation
newSchema.callQueue.forEach(function(k) {
var args = [];
for(var i in k[1]) {
args.push(k[1][i]);
}
k[1] = args;
});
// Override the existing options with any newly supplied ones

@@ -25,0 +16,0 @@ for(var k in options) {

8

package.json
{
"name": "mongoose-schema-extend",
"version": "0.1.1",
"version": "0.1.2",
"description": "mongoose schema inheritance and discriminator key extension",

@@ -22,5 +22,9 @@ "main": "index.js",

"author": "Brian Kirchoff <briankircho@gmail.com>",
"contributors": [
{ "name": "Brian Kirchoff", "email": "briankircho@gmail.com" },
{ "name": "Ajay Sabhaney", "email": "ajay@mothercreative.com" }
],
"license": "BSD",
"dependencies": {
"clone": "~0.1.0",
"owl-deepcopy": "~0.0.1",
"mocha": "~1.3.2"

@@ -27,0 +31,0 @@ },

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