Skip to content

Commit

Permalink
feat: set name of middleware function to improve interop with monitor…
Browse files Browse the repository at this point in the history
…ing tools
  • Loading branch information
satazor committed Mar 24, 2024
1 parent 664cd7c commit be09db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function bodyParserWrapper(opts: BodyParserOptions = {}) {
>;
}

return async function (ctx: Koa.Context, next: Koa.Next) {
return async function bodyParser(ctx: Koa.Context, next: Koa.Next) {

Check failure on line 76 in src/body-parser.ts

View workflow job for this annotation

GitHub Actions / ci (16)

Unexpected named async function 'bodyParser'.

Check failure on line 76 in src/body-parser.ts

View workflow job for this annotation

GitHub Actions / ci (18)

Unexpected named async function 'bodyParser'.

Check failure on line 76 in src/body-parser.ts

View workflow job for this annotation

GitHub Actions / ci (20)

Unexpected named async function 'bodyParser'.
if (
// method souldn't be parsed
!parsedMethods.includes(ctx.method.toUpperCase()) ||
Expand Down

0 comments on commit be09db5

Please sign in to comment.