/
/
home
/
u523034047
/
domains
/
wasms.shop
/
public_html
/
varified
/
node_modules
/
pino
/
lib
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.60
PHP 8.3.30
Dir:
/home/u523034047/domains/wasms.shop/public_html/varified/node_modules/pino/lib
Edit:
/home/u523034047/domains/wasms.shop/public_html/varified/node_modules/pino/lib/worker-pipeline.js
'use strict' const EE = require('events') const loadTransportStreamBuilder = require('./transport-stream') const { pipeline, PassThrough } = require('stream') // This file is not checked by the code coverage tool, // as it is not reliable. /* istanbul ignore file */ module.exports = async function ({ targets }) { const streams = await Promise.all(targets.map(async (t) => { const fn = await loadTransportStreamBuilder(t.target) const stream = await fn(t.options) return stream })) const ee = new EE() const stream = new PassThrough({ autoDestroy: true, destroy (err, cb) { // destroying one stream is enough streams[0].destroy(err) ee.on('error', cb) ee.on('closed', cb) } }) pipeline(stream, ...streams, function (err) { if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { ee.emit('error', err) return } ee.emit('closed') }) return stream }
Ukuran: 944 B