You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f305419 made it possible to import and use pg-connection-string on the browser; however, the parser does not work correctly.
On the browser, parse("postgres://user:pass@host:123/base") is currently returning {user: '', password: '', host: '', port: '', database: '/user:pass@host:123/base'}.
That is happening because of the difference between the URL constructor on node vs. browser. At least on Chrome (I'm on Chromium 120.0.6099.217, to be specific), new URL("postgres://user:pass@host:123/base") is not properly parsed:
The failure happens because it seems to only support some specific protocols -- if I replace postgresql with ftp, I get the correctly parsing:
The text was updated successfully, but these errors were encountered:
f305419 made it possible to import and use
pg-connection-string
on the browser; however, the parser does not work correctly.On the browser,
parse("postgres://user:pass@host:123/base")
is currently returning{user: '', password: '', host: '', port: '', database: '/user:pass@host:123/base'}
.That is happening because of the difference between the URL constructor on node vs. browser. At least on Chrome (I'm on Chromium 120.0.6099.217, to be specific),
new URL("postgres://user:pass@host:123/base")
is not properly parsed:The failure happens because it seems to only support some specific protocols -- if I replace
postgresql
withftp
, I get the correctly parsing:The text was updated successfully, but these errors were encountered: