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

@dasmeta/event-manager-platform-helper

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dasmeta/event-manager-platform-helper - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

2

package.json
{
"name": "@dasmeta/event-manager-platform-helper",
"version": "1.0.3",
"version": "1.1.0",
"description": "Event platform helper",

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

@@ -16,2 +16,3 @@

MONGODB_EVENT_DB=event
MONGODB_EVENT_AUTHENTICATION_DATABASE=admin
```

@@ -18,0 +19,0 @@ ## Usage

@@ -25,4 +25,4 @@ const { MongoClient, ObjectId } = require("mongodb");

const { username, password, host, port, db } = options;
const url = `mongodb://${username || password ? `${username}:${password}@` : ""}${host}:${port}/${db}`;
const { username, password, host, port, db, authenticationDatabase } = options;
const url = `mongodb://${username || password ? `${username}:${password}@` : ""}${host}:${port}/${db}?authSource=${authenticationDatabase}`;

@@ -46,3 +46,5 @@ const connection = await MongoClient.connect(url, {

const db = process.env[`MONGODB_${ALIAS}_DB`] || alias;
return { username, password, host, port, db };
const authenticationDatabase = process.env[`MONGODB_${ALIAS}_AUTHENTICATION_DATABASE`] || 'admin';
return { username, password, host, port, db, authenticationDatabase };
};

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