@rubriclab/bunl 0.0.20 → 0.0.21

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.
package/build/client.js CHANGED
@@ -458,7 +458,7 @@ async function main({
458
458
  open_default(data.url);
459
459
  }
460
460
  if (data.method) {
461
- const res = await fetch(`${url}${data.pathname}`, {
461
+ const res = await fetch(`${url}${data.pathname || ""}`, {
462
462
  method: data.method,
463
463
  headers: data.headers,
464
464
  body: data.body
package/client.ts CHANGED
@@ -28,7 +28,7 @@ async function main({
28
28
  }
29
29
 
30
30
  if (data.method) {
31
- const res = await fetch(`${url}${data.pathname}`, {
31
+ const res = await fetch(`${url}${data.pathname || ""}`, {
32
32
  method: data.method,
33
33
  headers: data.headers,
34
34
  body: data.body,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@rubriclab/bunl",
6
6
  "description": "Expose localhost to the world",
7
- "version": "0.0.20",
7
+ "version": "0.0.21",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",