Skip to content

Commit

Permalink
feat: remove host & port
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Aug 29, 2024
1 parent 83c0084 commit c8182db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-dolls-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-empty-script": patch
---

Use new version of edge scripting to avoid indicating the port & host
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint": "deno lint",
"test": "deno test --allow-none -A src/**/*.test.ts",
"check": "deno check src/main.ts",
"build": "mkdir dist && deno bundle src/main.ts dist/index.ts",
"build": "mkdir -p dist && deno bundle src/main.ts dist/index.ts",
"dev": "deno run src/main.ts",
"release": "echo \"No release\"",
"ci:version": "pnpm changeset version",
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as BunnySDK from "https://esm.sh/@bunny.net/edgescript-sdk@0.9.3";
import * as BunnySDK from "https://esm.sh/@bunny.net/edgescript-sdk@0.10.0";

function sleep(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
Expand All @@ -9,7 +9,6 @@ const listener = BunnySDK.net.tcp.unstable_new();

console.log("Listening on: ", BunnySDK.net.tcp.toString(listener));
BunnySDK.net.http.serve(
listener,
async (req) => {
console.log(`[INFO]: ${req.method} - ${req.url}`);
await sleep(1);
Expand Down

0 comments on commit c8182db

Please sign in to comment.