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 5.0.1 to 5.0.2

2

lib/utils.js
'use strict'
const clone = require('rfdc')()
const clone = require('rfdc')({ circles: true })
const dateformat = require('dateformat')

@@ -5,0 +5,0 @@ const stringifySafe = require('fast-safe-stringify')

{
"name": "pino-pretty",
"version": "5.0.1",
"version": "5.0.2",
"description": "Prettifier for Pino log lines",

@@ -56,3 +56,3 @@ "type": "commonjs",

"tap": "^14.10.7",
"tsd": "^0.15.1",
"tsd": "^0.16.0",
"typescript": "^4.2.4"

@@ -59,0 +59,0 @@ },

@@ -367,1 +367,23 @@ 'use strict'

})
tap.test('#filterLog with circular references', t => {
const { filterLog } = utils
const logData = {
level: 30,
time: 1522431328992,
data1: 'test'
}
logData.circular = logData
t.test('filterLog removes single entry', async t => {
const result = filterLog(logData, ['data1'])
t.same(result.circular.level, result.level)
t.same(result.circular.time, result.time)
delete result.circular
t.same(result, { level: 30, time: 1522431328992 })
})
t.end()
})

Sorry, the diff of this file is not supported yet

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