v-connection-string
Advanced tools
Comparing version
/** | ||
* @license | ||
* Copyright (c) 2022-2023 Open Text. | ||
* Copyright (c) 2022-2024 Open Text. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
// Copyright (c) 2022-2023 Open Text. | ||
// Copyright (c) 2022-2024 Open Text. | ||
// | ||
@@ -22,3 +22,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
//Original work Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com) | ||
//Modified work Copyright (c) 2022-2023 Open Text. | ||
//Modified work Copyright (c) 2022-2024 Open Text. | ||
@@ -60,3 +60,6 @@ //parses a connection string | ||
return config | ||
} else if (result.protocol !== 'vertica:') { | ||
throw new Error("Invalid connection string. Only vertica:// scheme is supported."); | ||
} | ||
if (!config.host) { | ||
@@ -63,0 +66,0 @@ // Only set the host if there is no equivalent query param. |
{ | ||
"name": "v-connection-string", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Functions for dealing with a Vertica connection string", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
6595
2.11%103
1.98%