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 5.4.1 to 6.0.0

2

benchmarks/hapi-pino-extreme.js

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

@@ -5,3 +5,3 @@ 'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

@@ -8,0 +8,0 @@ async function start () {

'use strict'
const Hoek = require('hoek')
const Hoek = require('@hapi/hoek')
const pino = require('pino')

@@ -83,3 +83,3 @@ const { stdSerializers } = pino

if (event.error) {
logger.warn({ err: event.error })
logger.error({ err: event.error })
} else {

@@ -100,3 +100,3 @@ logEvent(logger, event)

if (event.error && isEnabledLogEvent(options, 'request-error')) {
request.logger.warn({
request.logger.error({
err: event.error

@@ -103,0 +103,0 @@ }, 'request error')

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

@@ -21,7 +21,7 @@ "main": "index.js",

"devDependencies": {
"code": "^5.2.4",
"@hapi/code": "^5.3.0",
"coveralls": "^3.0.2",
"flush-write-stream": "^1.0.3",
"hapi": "^18.0.0",
"lab": "^18.0.0",
"@hapi/hapi": "^18.2.0",
"@hapi/lab": "^18.1.0",
"make-promises-safe": "^4.0.0",

@@ -34,4 +34,4 @@ "pre-commit": "^1.1.2",

"abstract-logging": "^1.0.0",
"hoek": "^6.1.2",
"pino": "^5.10.1",
"@hapi/hoek": "^6.2.0",
"pino": "^5.12.3",
"pino-pretty": "^2.5.0"

@@ -38,0 +38,0 @@ },

'use strict'
const Code = require('code')
const Lab = require('lab')
const Hoek = require('hoek')
const Code = require('@hapi/code')
const Lab = require('@hapi/lab')
const Hoek = require('@hapi/hoek')
const split = require('split2')

@@ -20,3 +20,3 @@ const writeStream = require('flush-write-stream')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')
const Pino = require('.')

@@ -259,3 +259,3 @@

expect(data.err.message).to.equal('boom')
expect(data.level).to.equal(40)
expect(data.level).to.equal(50)
expect(data.msg).to.equal('request error')

@@ -386,3 +386,3 @@ } else {

// highest level tag
expect(data.level).to.equal(40)
expect(data.level).to.equal(50)
resolver()

@@ -389,0 +389,0 @@ })

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