diff --git a/.changeset/few-dolls-exist.md b/.changeset/few-dolls-exist.md new file mode 100644 index 0000000..7155fe6 --- /dev/null +++ b/.changeset/few-dolls-exist.md @@ -0,0 +1,5 @@ +--- +"es-empty-script": patch +--- + +Use new version of edge scripting to avoid indicating the port & host diff --git a/package.json b/package.json index 69c056a..58615cd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/main.ts b/src/main.ts index bb9b216..216b925 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 { return new Promise((resolve) => setTimeout(resolve, ms)); @@ -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);