Skip to content

Commit

Permalink
Updated dependencies (#1449)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina authored Jun 1, 2022
1 parent ab96a7c commit 4f65c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
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

0 comments on commit 4f65c92

Please sign in to comment.