| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
bunyan-middleware has not had an update for four years in either its GitHub repo or its npm version. It is tiny and easy to replicate without dependencies, so let's do that.
There was a problem hiding this comment.
This PR replaces the unmaintained bunyan-middleware dependency with an in-repo request logging middleware that attaches request-scoped Bunyan child loggers and obscures the GitHub webhook signature in serialized request headers.
Changes:
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file| File | Description |
|---|---|
| app.js | Replaces bunyan-middleware usage with the new local request logger middleware. |
| lib/request-logger.js | Implements request-scoped logging, request-id propagation, and header obscuring in serializers. |
| test/unit/request-logger.test.js | Adds unit coverage for request logger behavior (request id propagation and finish logging). |
| package.json | Removes the bunyan-middleware dependency. |
| package-lock.json | Removes bunyan-middleware and updates lockfile resolution metadata / transitive versions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| assert.equal(logger.logs[0][0].res, res) | ||
| assert.equal(typeof logger.logs[0][0].duration, 'number') | ||
| assert.equal(logger.logs[0][1], 'request finish') | ||
| }) |
| Back | FazBrowse Home | New Git URL |
bunyan-middleware has not had an update for four years in either its GitHub repo or its npm version. It is tiny and easy to replicate without dependencies, so let's do that.