@mgcrea/fastify-request-logger
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24410