mongoose-schema-extend
Advanced tools
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) { |
{ | ||
"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 @@ }, |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
0
8600
157
1
+ Addedowl-deepcopy@~0.0.1
+ Addedowl-deepcopy@0.0.6(transitive)
- Removedclone@~0.1.0
- Removedclone@0.1.19(transitive)