Skip to content

Commit f55e6c5

Browse files
committed
deno.land packaged release
1 parent 27f427f commit f55e6c5

File tree

6 files changed

+9
-51
lines changed

6 files changed

+9
-51
lines changed

.github/workflows/publish.yml.bak

Lines changed: 0 additions & 19 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
<br>
1111

12+
## About The Fork
13+
14+
This is a fork of [postgresjs](https://github.com/porsager/postgres), mainly for minor bug fixes and quick patching. Some of the pending upstream pull requests are already merged here.
15+
16+
Use `npm:postgresjs-patched` for nodejs, and `deno.land/x/postgresjs_patched` for deno to use this fork.
17+
1218
## Getting started
1319

1420
<br>

jsr.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postgresjs-patched",
3-
"version": "3.4.5",
3+
"version": "3.4.6",
44
"description": "Fastest full featured PostgreSQL client for Node.js",
55
"type": "module",
66
"module": "src/index.js",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ 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, '')),
460-
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL('s://' + x).port || port)),
459+
host : Array.isArray(host) ? host : host.split(',').map(x => new URL(x).hostname.replace(/[[\]]/g, '')),
460+
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL(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,
463463
user : user,

0 commit comments

Comments
 (0)