update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
11
node_modules/pino/test/fixtures/stdout-hack-protection.js
generated
vendored
Normal file
11
node_modules/pino/test/fixtures/stdout-hack-protection.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
global.process = { __proto__: process, pid: 123456 }
|
||||
|
||||
const write = process.stdout.write.bind(process.stdout)
|
||||
process.stdout.write = function (chunk) {
|
||||
write('hack ' + chunk)
|
||||
}
|
||||
|
||||
Date.now = function () { return 1459875739796 }
|
||||
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
||||
var pino = require(require.resolve('../../'))()
|
||||
pino.info('me')
|
||||
Loading…
Add table
Add a link
Reference in a new issue