Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updated dependencies #1449

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 0 additions & 16 deletions test/error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down