Socket
Socket
Sign inDemoInstall

mongodb-uri

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.3 to 0.9.4

14

mongodb-uri.js

@@ -201,13 +201,13 @@ /*

}
var uriString = '';
var connectionString = '';
uri.hosts.forEach(function (h, i) {
if (i > 0) {
uriString += ',';
connectionString += ',';
}
// This trick is okay because format() never dynamically inspects the keys in its argument
var singleUri = Object.create(uri);
singleUri.hosts = [ h ];
uriString += parser.format(singleUri);
var singleUriObject = Object.create(uri);
singleUriObject.hosts = [ h ];
connectionString += parser.format(singleUriObject);
});
return uriString;
return connectionString;
};

@@ -218,4 +218,4 @@

var defaultParser = new MongodbUriParser();
['parse', 'format', 'formatMongoose'].forEach(function (f) {
[ 'parse', 'format', 'formatMongoose' ].forEach(function (f) {
exports[f] = defaultParser[f].bind(defaultParser);
});
{
"name": "mongodb-uri",
"version": "0.9.3",
"version": "0.9.4",
"description": "A parser and formatter for MongoDB URIs.",

@@ -5,0 +5,0 @@ "keywords": [ "mongodb", "uri", "url", "parser", "formatter", "mongoose" ],

@@ -114,3 +114,3 @@ # mongodb-uri

// Reformat into a Mongoose connect string and connect()
// Reformat to a Mongoose connect string and connect()
var mongooseConnectString = mongodbUri.formatMongoose(uri);

@@ -117,0 +117,0 @@ mongoose.connect(mongooseConnectString);

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