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.2.2 to 2.2.3

2

index.js

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

for (var i = 0; i < keys.length; i += 1) {
if (errorLikeObjectKeys.indexOf(keys[i]) !== -1) {
if (errorLikeObjectKeys.indexOf(keys[i]) !== -1 && value[keys[i]] !== undefined) {
const arrayOfLines = (

@@ -226,0 +226,0 @@ IDENT + keys[i] + ': ' +

{
"name": "pino-pretty",
"version": "2.2.2",
"version": "2.2.3",
"description": "Prettifier for Pino log lines",

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

"pump": "^3.0.0",
"readable-stream": "^3.0.2",
"readable-stream": "^3.0.6",
"split2": "^3.0.0"
},
"devDependencies": {
"pino": "^5.5.0",
"pino": "^5.8.0",
"pre-commit": "^1.2.2",
"snazzy": "^7.1.1",
"snazzy": "^8.0.0",
"standard": "^12.0.1",

@@ -48,0 +48,0 @@ "tap": "^12.0.1"

@@ -70,2 +70,9 @@ 'use strict'

t.test('prettifies ignores undefined errorLikeObject', (t) => {
const pretty = prettyFactory()
pretty({ err: undefined })
pretty({ error: undefined })
t.end()
})
t.test('prettifies Error in property within errorLikeObjectKeys', (t) => {

@@ -72,0 +79,0 @@ t.plan(8)

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