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.6.0 to 2.6.1

10

index.js

@@ -136,5 +136,7 @@ 'use strict'

const coloredLevel = levels.hasOwnProperty(log.level)
? color[log.level](levels[log.level])
: color.default(levels.default)
const coloredLevel = log.level
? levels.hasOwnProperty(log.level)
? color[log.level](levels[log.level])
: color.default(levels.default)
: ''
if (opts.levelFirst) {

@@ -172,3 +174,3 @@ line = `${coloredLevel} ${line}`

line += ': '
line += line ? ': ' : ''

@@ -175,0 +177,0 @@ if (log[messageKey] && typeof log[messageKey] === 'string') {

2

package.json
{
"name": "pino-pretty",
"version": "2.6.0",
"version": "2.6.1",
"description": "Prettifier for Pino log lines",

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

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

const expectedLines = [
' type: "Error"',
' some: "property"',
' stack: null',
' some: "property"'
' type: "Error"'
]

@@ -234,0 +234,0 @@ const log = pino({}, new Writable({

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