Huge News!Announcing our $40M Series B led by Abstract Ventures.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 4.4.4 to 4.4.5

4

changelog.md

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

## 4.4.5/2019-09-16
- add `useUnifiedTopology`
## 4.4.4/2019-09-16

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

2

lib/index.js

@@ -42,3 +42,3 @@ const _ = require('lodash')

this._client = await mongodb.MongoClient.connect(this._url, _.assign({ useNewUrlParser: true }, _.omit(this._opts, 'dbName')))
this._client = await mongodb.MongoClient.connect(this._url, _.assign({ useNewUrlParser: true, useUnifiedTopology: true }, _.omit(this._opts, 'dbName')))
this._db = this._client.db(this._opts.dbName || muri(this._url).db)

@@ -45,0 +45,0 @@ debug(`Connected ${this._url}`)

{
"name": "mongolass",
"version": "4.4.4",
"version": "4.4.5",
"description": "Elegant MongoDB driver for Node.js.",

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

@@ -66,3 +66,3 @@ const MONGODB = process.env.MONGODB || 'mongodb://localhost:27017/test'

assert.deepStrictEqual(error.name, 'MongoNetworkError')
assert.deepStrictEqual(error.message, 'failed to connect to server [localhost:27018] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27018]')
assert.deepStrictEqual(error.message, 'connect ECONNREFUSED 127.0.0.1:27018')
})

@@ -69,0 +69,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