Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add named hooks for improved visibility and debugging
This commit introduces named hooks in place of anonymous functions for the Fastify Helmet plugin. The changes include: 1. Renamed the first onRequest hook to 'helmetConfigureReply' 2. Renamed the second onRequest hook to 'helmetApplyHeaders' These named hooks provide better visibility when inspecting routes and improve the debugging experience. This change aligns the plugin with other Fastify plugins like @fastify/cors that use named hooks. The functionality remains unchanged; this is purely a developer experience improvement.
- Loading branch information