Socket
Socket
Sign inDemoInstall

mongodb-connection-string-url

Package Overview
Dependencies
8
Maintainers
29
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.3.0

lib/redact.d.ts

4

lib/index.d.ts
import { URL } from 'whatwg-url';
import { redactConnectionString } from './redact';
export { redactConnectionString };
declare class CaseInsensitiveMap extends Map<string, string> {

@@ -35,2 +37,3 @@ delete(name: any): boolean;

clone(): ConnectionString;
redact(): ConnectionString;
}

@@ -41,2 +44,1 @@ export declare class CommaAndColonSeparatedRecord extends CaseInsensitiveMap {

}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommaAndColonSeparatedRecord = void 0;
exports.CommaAndColonSeparatedRecord = exports.redactConnectionString = void 0;
const whatwg_url_1 = require("whatwg-url");
const redact_1 = require("./redact");
Object.defineProperty(exports, "redactConnectionString", { enumerable: true, get: function () { return redact_1.redactConnectionString; } });
const DUMMY_HOSTNAME = '__this_is_a_placeholder__';

@@ -135,2 +137,5 @@ const HOSTS_REGEX = new RegExp(String.raw `(?<protocol>mongodb(?:\+srv|)):\/\/(?:(?<username>[^:]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^\/?@]+)(?<rest>.*)`);

}
redact() {
return (0, redact_1.redactValidConnectionString)(this);
}
[Symbol.for('nodejs.util.inspect.custom')]() {

@@ -137,0 +142,0 @@ const { href, origin, protocol, username, password, hosts, pathname, search, searchParams, hash } = this;

{
"name": "mongodb-connection-string-url",
"version": "2.2.0",
"version": "2.3.0",
"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

Sorry, the diff of this file is not supported yet

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