pg-connection-string
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -41,3 +41,2 @@ 'use strict' | ||
config.port = result.port | ||
if (result.protocol == 'socket:') { | ||
@@ -57,2 +56,6 @@ config.host = decodeURI(result.pathname) | ||
} | ||
if (!config.port) { | ||
// Only set the port if there is no equivalent query param. | ||
config.port = result.port | ||
} | ||
@@ -59,0 +62,0 @@ const pathname = result.pathname.slice(1) || null |
{ | ||
"name": "pg-connection-string", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Functions for dealing with a PostgresSQL connection string", | ||
@@ -39,3 +39,3 @@ "main": "./index.js", | ||
], | ||
"gitHead": "eaafac36dc8f4a13f1fecc9e3420d35559fd8e2b" | ||
"gitHead": "a2a355a6807bf75d92d7f0cb0f219588811a5356" | ||
} |
9097
105