Skip to content

Commit

Permalink
misc: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Sep 18, 2024
1 parent e9126b1 commit 6e90f78
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-crabs-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-feature-flag-middleware": patch
---

Bump
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2"
},
"dependencies": {
"changeset": "^0.2.6"
}
}
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BunnySDK.net.http.servePullZone({ url: "https://echo.free.beeceptor.com/" })
const path = new URL(ctx.request.url).pathname;
if (path === "/d") {
if (!featureFlags.includes("route-d-preview")) {
return new Response("You cannot use this route.", { status: 400 });
return Promise.resolve(new Response("You cannot use this route.", { status: 400 }));
}
}

Expand Down

0 comments on commit 6e90f78

Please sign in to comment.