Socket
Socket
Sign inDemoInstall

@mgcrea/fastify-request-logger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mgcrea/fastify-request-logger - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

6

dist/index.js

@@ -18,8 +18,8 @@ // src/index.ts

const isIgnoredRequest = (request) => {
const { routerPath } = request;
const { url } = request.routeOptions;
const isIgnoredPath = ignoredPaths.some((ignoredPath) => {
if (typeof ignoredPath === "string") {
return ignoredPath === routerPath;
return ignoredPath === url;
} else if (ignoredPath instanceof RegExp) {
return ignoredPath.test(routerPath);
return ignoredPath.test(url);
}

@@ -26,0 +26,0 @@ return false;

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

@@ -42,6 +42,6 @@ "author": "Olivier Louvignes <olivier@mgcrea.io>",

"@tsconfig/strictest": "^2.0.2",
"@types/node": "^18.17.14",
"eslint": "^8.48.0",
"fastify": "^4.22.2",
"pino": "^8.15.0",
"@types/node": "^18.17.15",
"eslint": "^8.49.0",
"fastify": "^4.23.2",
"pino": "^8.15.1",
"pino-pretty": "^10.2.0",

@@ -53,3 +53,3 @@ "prettier": "^3.0.3",

"typescript": "^5.2.2",
"vitest": "^0.34.3"
"vitest": "^0.34.4"
},

@@ -56,0 +56,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc