Socket
Socket
Sign inDemoInstall

@brickyang/easy-mongodb

Package Overview
Dependencies
21
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 2.0.0

7

lib/mongo.js

@@ -71,6 +71,3 @@ 'use strict';

connect() {
return MongoClient.connect(
this.url,
this.clientOptions
)
return MongoClient.connect(this.url, this.clientOptions)
.then(async client => {

@@ -653,2 +650,2 @@ this.client = client;

module.exports = MongoDB;
module.exports = { default: MongoDB };
{
"name": "@brickyang/easy-mongodb",
"version": "1.1.2",
"version": "2.0.0",
"description": "Based on MongoDB Native Node.js Driver.",

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

@@ -99,4 +99,7 @@ [![NPM version][npm-image]][npm-url]

```js
const MongoDB = require('@brickyang/easy-mongodb');
// TypeScript
// import MongoDB from '@brickyang/easy-mongodb';
const MongoDB = require('@brickyang/easy-mongodb').default;
const mongo = new MongoDB(config);

@@ -103,0 +106,0 @@

@@ -98,4 +98,7 @@ [![NPM version][npm-image]][npm-url]

```js
const MongoDB = require('@brickyang/easy-mongodb');
// TypeScript
// import MongoDB from '@brickyang/easy-mongodb';
const MongoDB = require('@brickyang/easy-mongodb').default;
const mongo = new MongoDB(config);

@@ -102,0 +105,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc