From 6e90f7898b560829dcee5d9e21b524ebb1e9e381 Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Wed, 18 Sep 2024 15:43:39 +0200 Subject: [PATCH] misc: lint --- .changeset/chilled-crabs-tie.md | 5 +++++ package.json | 3 +++ pnpm-lock.yaml | 20 ++++++++++++++++++++ src/main.ts | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .changeset/chilled-crabs-tie.md diff --git a/.changeset/chilled-crabs-tie.md b/.changeset/chilled-crabs-tie.md new file mode 100644 index 0000000..7449a4f --- /dev/null +++ b/.changeset/chilled-crabs-tie.md @@ -0,0 +1,5 @@ +--- +"es-feature-flag-middleware": patch +--- + +Bump diff --git a/package.json b/package.json index 2d5033c..3e1c51f 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,8 @@ }, "devDependencies": { "@changesets/cli": "^2.26.2" + }, + "dependencies": { + "changeset": "^0.2.6" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5c9786..728f9ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +dependencies: + changeset: + specifier: ^0.2.6 + version: 0.2.6 + devDependencies: '@changesets/cli': specifier: ^2.26.2 @@ -311,6 +316,13 @@ packages: supports-color: 5.5.0 dev: true + /changeset@0.2.6: + resolution: {integrity: sha512-d21ym9zLPOKMVhIa8ulJo5IV3QR2NNdK6BWuwg48qJA0XSQaMeDjo1UGThcTn7YDmU08j3UpKyFNvb3zplk8mw==} + dependencies: + udc: 1.0.1 + underscore: 1.13.7 + dev: false + /chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} dev: true @@ -806,6 +818,14 @@ packages: is-number: 7.0.0 dev: true + /udc@1.0.1: + resolution: {integrity: sha512-jv+D9de1flsum5QkFtBdjyppCQAdz9kTck/0xST5Vx48T9LL2BYnw0Iw77dSKDQ9KZ/PS3qPO1vfXHDpLZlxcQ==} + dev: false + + /underscore@1.13.7: + resolution: {integrity: sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==} + dev: false + /universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} engines: {node: '>= 4.0.0'} diff --git a/src/main.ts b/src/main.ts index 5068825..aac01b6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 })); } }