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

mongodb-collection-model

Package Overview
Dependencies
Maintainers
38
Versions
550
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-collection-model - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

45

lib/collection-model.js

@@ -86,3 +86,15 @@ var AmpersandModel = require('ampersand-model');

*/
wired_tiger: 'object'
wired_tiger: 'object',
type: {
type: 'string',
default: 'collection'
},
view_on: {
type: 'string',
default: undefined
},
pipeline: {
type: 'array',
default: undefined
}
},

@@ -125,13 +137,24 @@ collections: {

serialize: function() {
var res = this.getAttributes({
props: true,
derived: true
}, true);
var res = this.getAttributes(
{
props: true,
derived: true
},
true
);
each(this._children, function(value, key) {
res[key] = this[key].serialize();
}, this);
each(this._collections, function(value, key) {
res[key] = this[key].serialize();
}, this);
each(
this._children,
function(value, key) {
res[key] = this[key].serialize();
},
this
);
each(
this._collections,
function(value, key) {
res[key] = this[key].serialize();
},
this
);
return res;

@@ -138,0 +161,0 @@ }

@@ -5,3 +5,3 @@ {

"author": "Lucas Hrabovsky <lucas@mongodb.com>",
"version": "2.0.3",
"version": "2.0.4",
"bugs": "https://github.com/mongodb-js/mongodb-collection-model/issues",

@@ -8,0 +8,0 @@ "homepage": "https://github.com/mongodb-js/mongodb-collection-model",

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