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

mongolass

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongolass - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

changelog.md

@@ -0,1 +1,5 @@

## 1.0.4/2016-03-22
- update `.populate` can pass model instead of modelName
## 1.0.3/2016-03-14

@@ -2,0 +6,0 @@

3

lib/plugins.js

@@ -62,3 +62,4 @@ 'use strict';

}
return this.model(opt.model, null, opt.options)
let model = ('string' === typeof opt.model) ? this.model(opt.model, null, opt.options) : opt.model;
return model
.find(query, options)

@@ -65,0 +66,0 @@ .exec()

{
"name": "mongolass",
"version": "1.0.3",
"version": "1.0.4",
"description": "Elegant MongoDB driver for Node.js.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -94,3 +94,3 @@ 'use strict';

.populate({ path: '_id', model: 'User' })
.populate({ path: '_id._id', model: 'User' })
.populate({ path: '_id._id', model: User })
.exec()

@@ -97,0 +97,0 @@ .then(results => {

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