diff --git a/package.json b/package.json index e28d47043..98b21288e 100644 --- a/package.json +++ b/package.json @@ -110,13 +110,13 @@ "fast-redact": "^3.0.0", "on-exit-leak-free": "^1.0.0", "pino-abstract-transport": "v0.5.0", - "pino-std-serializers": "^4.0.0", + "pino-std-serializers": "^5.0.0", "process-warning": "^2.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.1.0", "safe-stable-stringify": "^2.1.0", - "sonic-boom": "^2.2.1", - "thread-stream": "^0.15.1" + "sonic-boom": "^3.0.0", + "thread-stream": "^1.0.0" }, "tsd": { "directory": "test/types" diff --git a/test/error.test.js b/test/error.test.js index a0da655ba..0eb0b560c 100644 --- a/test/error.test.js +++ b/test/error.test.js @@ -150,22 +150,6 @@ test('stack is omitted if it is not set on err', t => { instance[name](err) }) -test('stack is rendered as any other property if it\'s not a string', t => { - t.plan(3) - const err = new Error('myerror') - err.stack = null - const instance = pino(sink(function (chunk, enc, cb) { - t.ok(new Date(chunk.time) <= new Date(), 'time is greater than Date.now()') - delete chunk.time - t.equal(chunk.err.hasOwnProperty('stack'), true) - t.equal(chunk.err.stack, null) - cb() - })) - - instance.level = name - instance[name](err) -}) - test('correctly ignores toString on errors', async ({ same }) => { const err = new Error('myerror') err.toString = () => undefined