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

mongodb-connection-string-url

Package Overview
Dependencies
Maintainers
29
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-connection-string-url - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

16

lib/index.js

@@ -125,3 +125,17 @@ "use strict";

authString += '@';
super(`${protocol.toLowerCase()}://${authString}${DUMMY_HOSTNAME}${rest}`);
try {
super(`${protocol.toLowerCase()}://${authString}${DUMMY_HOSTNAME}${rest}`);
}
catch (err) {
if (looseValidation) {
new ConnectionString(uri, {
...options,
looseValidation: false
});
}
if (typeof err.message === 'string') {
err.message = err.message.replace(DUMMY_HOSTNAME, hosts);
}
throw err;
}
this._hosts = hosts.split(',');

@@ -128,0 +142,0 @@ if (!looseValidation) {

2

package.json
{
"name": "mongodb-connection-string-url",
"version": "2.5.1",
"version": "2.5.2",
"description": "MongoDB connection strings, based on the WhatWG URL API",

@@ -5,0 +5,0 @@ "keywords": [

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