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

@examgoal/mongodb

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@examgoal/mongodb - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

dist/index.d.ts

@@ -14,4 +14,4 @@ import { ClientSession, Db, MongoClient } from 'mongodb';

static initializeApp(config: ConfigOptions): void;
static getInstance(name: string): MongodbClient;
static getInstance(name?: string): MongodbClient;
}
export = MongodbClient;

@@ -44,3 +44,3 @@ "use strict";

a.connect().catch(err => {
throw new Error(`${a.name} MongoDB App\'s Error Occurred on first initialization ${err.toString()}`);
throw new Error(`${a.name} MongoDB App\'s Error Occurred on first initialization : Error = ${err.toString()}`);
});

@@ -52,5 +52,5 @@ }

}
return instances[name];
return instances[name || '[DEFAULT]'];
}
}
module.exports = MongodbClient;
{
"name": "@examgoal/mongodb",
"version": "1.0.5",
"version": "1.0.6",
"description": "MongoDB Session Management Helper for ExpressJS or any Node JS Projects",

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

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