Socket
Socket
Sign inDemoInstall

@mgcrea/fastify-request-logger

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.4.0

8

dist/index.js

@@ -7,3 +7,3 @@ // src/index.ts

var plugin = async (fastify, options2 = {}) => {
const supportsArt = color.options.supportLevel === 2;
const supportsArt = color.options.supportLevel >= 2;
const icons = { req: supportsArt ? "\u2190" : "<", res: supportsArt ? "\u2192" : ">" };

@@ -54,3 +54,7 @@ const {

if (request.body && logBody) {
request.log.debug({ ...logBindings, body: request.body }, `Request body`);
if (Buffer.isBuffer(request.body)) {
request.log.debug({ ...logBindings, body: `<Buffer ${request.body.length} bytes>` }, `Request body`);
} else {
request.log.debug({ ...logBindings, body: request.body }, `Request body`);
}
}

@@ -57,0 +61,0 @@ });

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

@@ -39,16 +39,16 @@ "author": "Olivier Louvignes <olivier@mgcrea.io>",

"devDependencies": {
"@mgcrea/eslint-config-node": "^0.8.1",
"@mgcrea/eslint-config-node": "^0.8.3",
"@tsconfig/node-lts": "^18.12.5",
"@tsconfig/strictest": "^2.0.2",
"@types/node": "^18.17.15",
"eslint": "^8.49.0",
"fastify": "^4.23.2",
"pino": "^8.15.1",
"pino-pretty": "^10.2.0",
"@types/node": "^18.18.6",
"eslint": "^8.51.0",
"fastify": "^4.24.3",
"pino": "^8.16.0",
"pino-pretty": "^10.2.3",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"rimraf": "^5.0.1",
"rimraf": "^5.0.5",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vitest": "^0.34.4"
"vitest": "^0.34.6"
},

@@ -55,0 +55,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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc