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

adonis-lucid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-lucid-mongodb - npm Package Compare versions

Comparing version 1.0.50 to 1.0.51

16

package.json
{
"name": "adonis-lucid-mongodb",
"description": "AdonisJs Mongodb ODM",
"description": "AdonisJs Mongodb ORM",
"main": "index.js",

@@ -8,11 +8,3 @@ "directories": {

},
"version": "1.0.50",
"keywords": [
"adonis",
"lucid",
"mongo",
"mongodb",
"orm",
"odm"
],
"version": "1.0.51",
"scripts": {

@@ -37,3 +29,3 @@ "lint": "standard",

},
"author": "Duy Luong",
"author": "adonisjs + LuongND",
"license": "MIT",

@@ -85,4 +77,4 @@ "devDependencies": {

"type": "git",
"url": "https://github.com/duyluonglc/lucid-mongo.git"
"url": "https://github.com/duyluonglc/adonis-lucid-mongodb.git"
}
}

@@ -14,4 +14,3 @@ # AdonisJS Lucid MongoDB

### Breaking update
Version 2.x for adonis v4 was published to npm with new name lucid-mongo https://www.npmjs.com/package/lucid-mongo
Version 2.x was published to npm
| Adonis version | Lucid Mongo version |

@@ -344,3 +343,7 @@ | ------------- | ------------- |

password: Env.get('DB_PASSWORD', ''),
database: Env.get('DB_DATABASE', 'adonis')
database: Env.get('DB_DATABASE', 'adonis'),
auth: {
source: Env.get('DB_AUTH_SOURCE', 'admin'),
mechanism: Env.get('DB_AUTH_MECHANISM', 'MONGODB-CR')
}
}

@@ -347,0 +350,0 @@ }

@@ -148,3 +148,8 @@ 'use strict'

: (process.env.DB_USER ? `${process.env.DB_USER}@` : '')
const connectionString = `mongodb://${security}${config.connection.host}:${config.connection.port}/${config.connection.database}`
const authString = (config.connection.auth && config.connection.auth.source && config.connection.auth.mechanism)
? `?authSource=${config.connection.auth.source}&authMechanism=${config.connection.auth.mechanism}`
: ''
const connectionString = `mongodb://${security}${config.connection.host}:${config.connection.port}/${config.connection.database}${authString}`
MongoClient.connect(connectionString).then(dbConnection => {

@@ -151,0 +156,0 @@ connectionPools[connection] = dbConnection

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