Socket
Socket
Sign inDemoInstall

pino-pretty

Package Overview
Dependencies
Maintainers
4
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-pretty - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

7

index.js

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

var line = `[${log.time}]`
var line = log.time ? `[${log.time}]` : ''

@@ -132,3 +132,6 @@ const coloredLevel = levels.hasOwnProperty(log.level)

} else {
line = `${line} ${coloredLevel}`
// If the line is not empty (timestamps are enabled) output it
// with a space after it - otherwise output the empty string
const lineOrEmpty = line && line + ' '
line = `${lineOrEmpty}${coloredLevel}`
}

@@ -135,0 +138,0 @@

{
"name": "pino-pretty",
"version": "2.3.0",
"version": "2.4.0",
"description": "Prettifier for Pino log lines",

@@ -5,0 +5,0 @@ "main": "index.js",

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

const formatted = pretty(chunk.toString())
t.is(formatted, `[undefined] INFO (${pid} on ${hostname}): hello world\n`)
t.is(formatted, `INFO (${pid} on ${hostname}): hello world\n`)
cb()

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