@rubriclab/bunl 0.0.0 → 0.0.2

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/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## A Bun WebSocket re-write of LocalTunnel
4
4
 
5
+ To try it:
6
+
7
+ ```bash
8
+ bun x bunl -p 3000 -d dev.rubric.me -s my-name
9
+ ```
10
+
5
11
  To install dependencies:
6
12
 
7
13
  ```bash
package/build/client.js CHANGED
@@ -12,7 +12,7 @@ async function main({
12
12
  const data = JSON.parse(event.data);
13
13
  console.log("message:", data);
14
14
  if (data.method) {
15
- fetch(`${domain}${data.path}`, {
15
+ fetch(`${url}${data.path}`, {
16
16
  method: data.method,
17
17
  headers: data.headers
18
18
  }).then((res) => res.text()).then((res) => {
package/client.ts CHANGED
@@ -19,7 +19,7 @@ async function main({
19
19
  console.log("message:", data);
20
20
 
21
21
  if (data.method) {
22
- fetch(`${domain}${data.path}`, {
22
+ fetch(`${url}${data.path}`, {
23
23
  method: data.method,
24
24
  headers: data.headers,
25
25
  })
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bin": {
3
- "bunl": "./client.js"
3
+ "bunl": "./build/client.js"
4
4
  },
5
5
  "name": "@rubriclab/bunl",
6
6
  "description": "expose localhost to the world",
7
- "version": "0.0.0",
7
+ "version": "0.0.2",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",