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

@coya/database

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coya/database - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

database.js

@@ -19,6 +19,6 @@ const crypto = require('crypto');

if(!database || !login || !password)
throw new Error('Invalid database configuration object.');
return Promise.reject(new Error('Invalid database configuration object.'));
logs = new Logs('database', config);
return mongo.connect('mongodb://' + dbLogin + ':' + dbPassword + '@localhost:27017/' + dbName)
return mongo.connect('mongodb://' + login + ':' + password + '@localhost:27017/' + database)
.then(function(database) {

@@ -25,0 +25,0 @@ logs.info('Connected and authenticated to database.');

{
"name": "@coya/database",
"version": "0.0.7",
"version": "0.0.8",
"description": "MongoDB database service",

@@ -5,0 +5,0 @@ "main": "database.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