Skip to content

Commit

Permalink
[UPDATE] - Add the new listen API for Bunicorn (#6824)
Browse files Browse the repository at this point in the history
* add the new listen API for Bunicorn

* update the old API
  • Loading branch information
ragokan authored Oct 14, 2023
1 parent 1c19e8b commit 622b9e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions javascript/bunicorn/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ app.addRoutes([
rb.post("/user", (ctx) => ctx.ok()),
]);

// @ts-expect-error
Bun.serve({
fetch(req: Request) {
return app.handleRequest(req);
},
port: 3000,
});
app.serve({ port: 3000 });
2 changes: 1 addition & 1 deletion javascript/bunicorn/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
github: ragokan/bunicorn
version: 0.1
version: 0.7

engines:
- bun
2 changes: 1 addition & 1 deletion javascript/bunicorn/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@bunicorn/server": "~0.0.1"
"@bunicorn/server": "~0.0.7"
}
}

0 comments on commit 622b9e0

Please sign in to comment.