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 53f8521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/body-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export function bodyParserWrapper(opts: BodyParserOptions = {}) {
>;
}

return async function (ctx: Koa.Context, next: Koa.Next) {
// eslint-disable-next-line func-names
return async function bodyParser(ctx: Koa.Context, next: Koa.Next) {
if (
// method souldn't be parsed
!parsedMethods.includes(ctx.method.toUpperCase()) ||
Expand Down

0 comments on commit 53f8521

Please sign in to comment.