Skip to content

Commit 9b2918d

Browse files
committed
npm release patched
1 parent 63200ef commit 9b2918d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cf/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function parseOptions(a, b) {
457457
}
458458

459459
return {
460-
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[\[\]]/g, '')),
460+
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[[\]]/g, '')),
461461
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL('s://' + x).port || port)),
462462
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
463463
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || user,

cjs/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function parseOptions(a, b) {
456456
}
457457

458458
return {
459-
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[\[\]]/g, '')),
459+
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[[\]]/g, '')),
460460
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL('s://' + x).port || port)),
461461
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
462462
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || user,

cjs/tests/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const crypto = require('crypto')
88
const postgres = require('../src/index.js')
99
const delay = ms => new Promise(r => setTimeout(r, ms))
1010

11-
const rel = x => require('path').join(__dirname, x)
11+
const rel = x => require("path").join(__dirname, x)
1212
const idle_timeout = 1
1313

1414
const login = {

deno/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function parseOptions(a, b) {
457457
}
458458

459459
return {
460-
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[\[\]]/g, '')),
460+
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[[\]]/g, '')),
461461
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL('s://' + x).port || port)),
462462
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
463463
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || user,

deno/tests/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2583,4 +2583,4 @@ t('arrays in reserved connection', async() => {
25832583
]
25842584
})
25852585

2586-
globalThis.addEventListener('unload', () => Deno.exit(process.exitCode))
2586+
;globalThis.addEventListener("unload", () => Deno.exit(process.exitCode))

0 commit comments

Comments
 (0)