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

database-helpers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

database-helpers - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

4

dist/mongo.connnection.d.ts

@@ -1,2 +0,2 @@

import { MongoClient } from 'mongodb';
import { Db } from 'mongodb';
/**

@@ -7,2 +7,2 @@ * @description Initializes a mongo database connection

*/
export declare function initializeMongo(url: string): Promise<MongoClient>;
export declare function initializeMongo(url: string): Promise<Db>;

@@ -20,3 +20,4 @@ "use strict";

try {
const db = yield mongodb_1.MongoClient.connect(url);
const client = yield mongodb_1.MongoClient.connect(url);
const db = client.db();
return Promise.resolve(db);

@@ -23,0 +24,0 @@ }

{
"name": "database-helpers",
"version": "2.0.2",
"description": "Functions to start a connection with the database and perform database operations with mongo database.",
"scripts": {
"build": "tsc",
"prepublish": "npm run build && npm --no-git-tag-version version patch"
},
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/futuremdev/database-helpers.git"
},
"author": "Jordan Hansen",
"license": "ISC",
"homepage": "https://bitbucket.org/futuremdev/database-helpers#readme",
"dependencies": {
"mongodb": "^2.2.33",
"typescript": "^3.1.3"
},
"devDependencies": {
"@types/mongodb": "^3.1.12"
}
"name": "database-helpers",
"version": "2.0.3",
"description": "Functions to start a connection with the database and perform database operations with mongo database.",
"scripts": {
"build": "tsc",
"prepublish": "npm run build && npm --no-git-tag-version version patch"
},
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/futuremdev/database-helpers.git"
},
"author": "Jordan Hansen",
"license": "ISC",
"homepage": "https://bitbucket.org/futuremdev/database-helpers#readme",
"dependencies": {
"mongodb": "^3.3.0-beta2",
"typescript": "^3.1.3"
},
"devDependencies": {
"@types/mongodb": "^3.1.31"
}
}

Sorry, the diff of this file is not supported yet

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