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 2.4.1 to 2.4.2

4

changelog.md

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

## 2.4.2/2017-02-10
- add `collName` opt
## 2.4.1/2016-12-20

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

3

lib/model.js

@@ -11,6 +11,7 @@ 'use strict';

constructor(name, schema, db, opts) {
opts = opts || {};
this._db = db;
this._schema = schema;
this._name = name;
this._collName = inflected.pluralize(name).toLowerCase();
this._collName = opts.collName || inflected.pluralize(name).toLowerCase();
this._opts = opts;

@@ -17,0 +18,0 @@ this._plugins = {};

{
"name": "mongolass",
"version": "2.4.1",
"version": "2.4.2",
"description": "Elegant MongoDB driver for Node.js.",

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

@@ -102,3 +102,3 @@ ## Mongolass

at Model.insertOne (/Users/nswbmw/Desktop/mongolass-demo/node_modules/mongolass/lib/query.js:108:16)
at Object.<anonymous> (/Users/nswbmw/Desktop/mongolass-demo/app.js:77:4)
at Object.<anonymous> (/Users/nswbmw/Desktop/mongolass-demo/app.js:23:4)
at Module._compile (module.js:409:26)

@@ -125,3 +125,3 @@ at Object.Module._extensions..js (module.js:416:10)

author: { type: Mongolass.Types.ObjectId }
});
}, { collName: 'post' });

@@ -138,2 +138,3 @@ Post.insertOne({ author: '111111111111111111111111' })

```
**NB:** You can pass `collName` as collection name.

@@ -217,3 +218,3 @@ ## Mongolass vs Mongoose

at Model.insertOne (/Users/nswbmw/Desktop/mongolass-demo/node_modules/mongolass/lib/query.js:108:16)
at Object.<anonymous> (/Users/nswbmw/Desktop/mongolass-demo/app.js:77:4)
at Object.<anonymous> (/Users/nswbmw/Desktop/mongolass-demo/app.js:23:4)
at Module._compile (module.js:409:26)

@@ -220,0 +221,0 @@ at Object.Module._extensions..js (module.js:416:10)

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