New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-pino

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-pino - npm Package Compare versions

Comparing version 4.0.4 to 5.0.0

8

index.js

@@ -6,2 +6,3 @@ 'use strict'

const { stdSerializers } = pino
const { serializersSym } = pino.symbols
const nullLogger = require('abstract-logging')

@@ -33,4 +34,9 @@

if (options.instance) {
options.instance.serializers = Object.assign(options.serializers, options.instance.serializers)
logger = options.instance
const overrideDefaultErrorSerializer = (typeof options.serializers.err === 'function') &&
logger[serializersSym].err === stdSerializers.err
logger[serializersSym] = Object.assign({}, options.serializers, logger[serializersSym])
if (overrideDefaultErrorSerializer) {
logger[serializersSym].err = options.serializers.err
}
} else {

@@ -37,0 +43,0 @@ options.stream = options.stream || process.stdout

20

package.json
{
"name": "hapi-pino",
"version": "4.0.4",
"version": "5.0.0",
"description": "Hapi plugin for the Pino logger ",

@@ -9,3 +9,3 @@ "main": "index.js",

"coveralls": "lab test.js -r lcov | coveralls",
"test": "standard && lab test.js"
"test": "standard && lab --timeout 100000 test.js"
},

@@ -22,16 +22,16 @@ "keywords": [

"devDependencies": {
"code": "^5.1.2",
"coveralls": "^3.0.0",
"flush-write-stream": "^1.0.0",
"hapi": "^17.2.0",
"lab": "^15.0.0",
"code": "^5.2.0",
"coveralls": "^3.0.2",
"flush-write-stream": "^1.0.3",
"hapi": "^17.5.3",
"lab": "^15.5.0",
"make-promises-safe": "^1.1.0",
"pre-commit": "^1.1.2",
"split2": "^2.2.0",
"standard": "^10.0.3"
"standard": "^11.0.0"
},
"dependencies": {
"abstract-logging": "^1.0.0",
"hoek": "^5.0.2",
"pino": "^4.15.3"
"hoek": "^5.0.3",
"pino": "^5.0.0"
},

@@ -38,0 +38,0 @@ "repository": {

@@ -8,10 +8,18 @@ # hapi-pino  [![Build Status](https://travis-ci.org/pinojs/hapi-pino.svg)](https://travis-ci.org/pinojs/hapi-pino) [![Coverage Status](https://coveralls.io/repos/github/pinojs/hapi-pino/badge.svg?branch=master)](https://coveralls.io/github/pinojs/hapi-pino?branch=master)

[__hapi-pino v2.0.0__](https://github.com/pinojs/hapi-pino/tree/v2.x.x) is the LTS line for Hapi v16. __hapi-pino v3+__
support Hapi v17 only.
supports Hapi v17 only. The maximum version that can be used with Hapi v16 is Pino v4.
## Install
For Pino v5+
```
npm i hapi-pino --save
npm install hapi-pino
```
For Pino v4 and below:
```
npm install hapi-pino@legacy #install hapi-pino v4.x.x
```
## Usage

@@ -125,2 +133,4 @@

```
- `[ignorePaths]` - Takes an array of string routes and disables logging for each. Useful for health checks or any route that does not need logging. E.g `['/health']`
- `[level]` - Set the minumum level that Pino should log out. See [Level](https://github.com/pinojs/pino/blob/master/docs/API.md#level). For example, `{level: 'debug'}` would configure Pino to output all `debug` or higher events.

@@ -127,0 +137,0 @@ <a name="serverdecorations"></a>

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