Comparing version 6.2.0 to 6.3.0
{ | ||
"name": "pino-http", | ||
"version": "6.2.0", | ||
"version": "6.3.0", | ||
"description": "High-speed HTTP logger for Node.js", | ||
@@ -11,3 +11,3 @@ "main": "logger.js", | ||
"pino": "^7.0.5", | ||
"pino-std-serializers": "^4.0.0" | ||
"pino-std-serializers": "^5.0.0" | ||
}, | ||
@@ -19,2 +19,3 @@ "devDependencies": { | ||
"http-ndjson": "^3.1.0", | ||
"pino-http-print": "^3.1.0", | ||
"pino-pretty": "^7.1.0", | ||
@@ -31,3 +32,3 @@ "pre-commit": "^1.1.2", | ||
"benchmark": "bash ./scripts/benchmark-all", | ||
"test": "standard && tap test.js && npm run test-types", | ||
"test": "standard && tap test/*.js && npm run test-types", | ||
"fix": "standard --fix", | ||
@@ -34,0 +35,0 @@ "test-types": "tsc && tsd && ts-node index.test-d.ts" |
@@ -232,2 +232,21 @@ # pino-http [![Build Status](https://img.shields.io/github/workflow/status/pinojs/pino-http/CI)](https://github.com/pinojs/pino-http/actions) | ||
##### Custom formatters | ||
You can customize the format of the log output by passing a [Pino transport](https://github.com/pinojs/pino/blob/master/docs/transports.md#v7-transports). | ||
```js | ||
const logger = require('pino-http')({ | ||
quietReqLogger: true, // turn off the default logging output | ||
transport: { | ||
target: 'pino-http-print', // use the pino-http-print transport and its formatting output | ||
options: { | ||
destination: 1, | ||
all: true, | ||
translateTime: true | ||
} | ||
} | ||
}) | ||
``` | ||
#### Default serializers | ||
@@ -234,0 +253,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
57840
20
1312
400
13
13
+ Addedpino-std-serializers@5.6.0(transitive)
Updatedpino-std-serializers@^5.0.0