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
1
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 3.0.0 to 3.0.1

5

example.js

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

// the logger is available in server.app
server.app.logger.warn('Pino is registered')
// also as a decorated API
// as a decorated API
server.logger().info('another way for accessing it')

@@ -42,0 +39,0 @@

3

index.js

@@ -33,2 +33,5 @@ 'use strict'

if (options.prettyPrint) {
// pino has a similar logic that works slightly different
// we must disable that
delete options.prettyPrint
var pretty = pino.pretty()

@@ -35,0 +38,0 @@ pretty.pipe(stream)

{
"name": "hapi-pino",
"version": "3.0.0",
"version": "3.0.1",
"description": "Hapi plugin for the Pino logger ",

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

"flush-write-stream": "^1.0.0",
"hapi": "^17.0.0-rc10",
"hapi": "^17.0.0",
"lab": "^15.0.0",

@@ -33,3 +33,3 @@ "make-promises-safe": "^1.1.0",

"dependencies": {
"pino": "^4.9.0"
"pino": "^4.10.0"
},

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

@@ -54,5 +54,2 @@ # 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)

// the logger is available in server.app
server.app.logger.warn('Pino is registered')
// also as a decorated API

@@ -124,9 +121,5 @@ server.logger().info('another way for accessing it')

**hapi-pino** decorates the Hapi server with:
**hapi-pino** decorates the Hapi server with `server.logger()`, which is a function that returns the current instance of
[pino][pino]. See its doc for the way to actual log.
* `server.logger()`, which is a function that returns the current instance of
[pino][pino], see its doc for the way to actual log.
* `server.app.logger`, same as before, but the logger it is also
attached to the `server.app` object.
<a name="requestdecorations"></a>

@@ -133,0 +126,0 @@ ### Request Decorations

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