@nxtedition/lib 23.5.13 → 23.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/couch.js +4 -0
  2. package/package.json +1 -1
package/couch.js CHANGED
@@ -1068,6 +1068,10 @@ export function request(url, opts) {
1068
1068
 
1069
1069
  url = opts.url
1070
1070
 
1071
+ if (typeof url === 'string') {
1072
+ url = new URL(url)
1073
+ }
1074
+
1071
1075
  let origin = url.origin
1072
1076
  if (!origin) {
1073
1077
  const protocol = url.protocol ?? 'http:'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.5.13",
3
+ "version": "23.5.14",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",