Socket
Socket
Sign inDemoInstall

@mgcrea/fastify-request-logger

Package Overview
Dependencies
7
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

8

lib/plugin.js

@@ -11,7 +11,4 @@ "use strict";

const isIgnoredRequest = (request) => {
const { routerPath, log } = request;
const { routerPath } = request;
if (ignoredPaths.includes(routerPath)) {
if (ignoredBindings) {
log.setBindings(ignoredBindings);
}
return true;

@@ -23,2 +20,5 @@ }

if (isIgnoredRequest(request)) {
if (ignoredBindings) {
request.log.setBindings(ignoredBindings);
}
return;

@@ -25,0 +25,0 @@ }

{
"name": "@mgcrea/fastify-request-logger",
"version": "0.5.0",
"version": "0.5.1",
"description": "Compact request logger plugin for fastify written in TypeScript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc