fp-ts-std
fp-ts-std copied to clipboard
URLPath origin/base can be lost
unsafeUnwrap(fromStringO("//x")) = new URL("https://x")
The only bug I can see this causing is that isURLPath would fail its check.
A generalised path parser for URL which URLPath could use here in fromString may be helpful.