mongodb-connection-string-url
Advanced tools
Comparing version 2.2.0 to 2.3.0
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
31985
10
284