pino-pretty
Advanced tools
Comparing version 5.0.1 to 5.0.2
'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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289372
2722