mongodb-connection-string-url
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,7 +0,11 @@ | ||
import { URL } from './whatwg-url'; | ||
import { URL } from 'whatwg-url'; | ||
declare abstract class URLWithoutHost extends URL { | ||
abstract host: never; | ||
abstract hostname: never; | ||
abstract port: never; | ||
abstract href: string; | ||
abstract get host(): never; | ||
abstract set host(value: never); | ||
abstract get hostname(): never; | ||
abstract set hostname(value: never); | ||
abstract get port(): never; | ||
abstract set port(value: never); | ||
abstract get href(): string; | ||
abstract set href(value: string); | ||
} | ||
@@ -8,0 +12,0 @@ export default class ConnectionString extends URLWithoutHost { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const whatwg_url_1 = require("./whatwg-url"); | ||
const whatwg_url_1 = require("whatwg-url"); | ||
const DUMMY_HOSTNAME = '__this_is_a_placeholder__'; | ||
@@ -5,0 +5,0 @@ const HOSTS_REGEX = new RegExp(String.raw `(?<protocol>mongodb(?:\+srv|)):\/\/(?:(?<username>[^:]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^\/?@]+)(?<rest>.*)`); |
{ | ||
"name": "mongodb-connection-string-url", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
25152
173