@rife/logger 0.0.6-beta.11 → 0.0.6-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/common.cjs +3 -3
  2. package/dist/cjs/env.cjs +3 -3
  3. package/dist/cjs/index.cjs +7 -9
  4. package/dist/cjs/pino/index.cjs +25 -8
  5. package/dist/cjs/pino/rotate.cjs +6 -6
  6. package/dist/cjs/pino/worker/pino-file.cjs +221 -128
  7. package/dist/cjs/pino/worker/pino-pretty.cjs +327 -420
  8. package/dist/cjs/pino/worker/pino-rotate.cjs +21 -20
  9. package/dist/cjs/pino/worker/pino-worker.cjs +296 -203
  10. package/dist/cjs/pino/worker/thread-stream.cjs +39 -37
  11. package/dist/cjs/pino/worker.cjs +116 -0
  12. package/dist/cjs/test.cjs +6 -2
  13. package/dist/cjs/trace.cjs +3 -3
  14. package/dist/cjs/worker/index.cjs +5 -0
  15. package/dist/esm/common.mjs +3 -4
  16. package/dist/esm/env.mjs +1 -2
  17. package/dist/esm/index.mjs +1 -2
  18. package/dist/esm/pino/index.mjs +29 -25
  19. package/dist/esm/pino/rotate.mjs +8 -18
  20. package/dist/esm/pino/worker/pino-file.cjs +221 -128
  21. package/dist/esm/pino/worker/pino-pretty.cjs +327 -420
  22. package/dist/esm/pino/worker/pino-rotate.cjs +21 -20
  23. package/dist/esm/pino/worker/pino-worker.cjs +296 -203
  24. package/dist/esm/pino/worker/thread-stream.cjs +39 -37
  25. package/dist/esm/pino/worker.mjs +74 -0
  26. package/dist/esm/rslib-runtime.mjs +19 -0
  27. package/dist/esm/test.mjs +8 -5
  28. package/dist/esm/trace.mjs +1 -2
  29. package/dist/esm/worker/index.mjs +1 -0
  30. package/dist/worker/pino-file.cjs +221 -128
  31. package/dist/worker/pino-pretty.cjs +327 -420
  32. package/dist/worker/pino-rotate.cjs +21 -20
  33. package/dist/worker/pino-worker.cjs +296 -203
  34. package/dist/worker/thread-stream.cjs +39 -37
  35. package/package.json +16 -8
  36. package/src/pino/index.ts +30 -3
  37. package/src/pino/worker.ts +82 -0
  38. package/src/test.ts +5 -2
  39. package/src/worker/index.ts +3 -0
@@ -1,5 +1,6 @@
1
+ "use strict";
1
2
  var __webpack_modules__ = {
2
- "../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js": function(module1) {
3
+ "../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js" (module1) {
3
4
  "use strict";
4
5
  function deepClone(obj) {
5
6
  if (null === obj || 'object' != typeof obj) return obj;
@@ -297,9 +298,9 @@ var __webpack_modules__ = {
297
298
  }
298
299
  module1.exports = slowRedact;
299
300
  },
300
- "../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js": function(module1) {
301
+ "../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js" (module1) {
301
302
  "use strict";
302
- if ('undefined' != typeof SharedArrayBuffer && 'undefined' != typeof Atomics) {
303
+ if ("u" > typeof SharedArrayBuffer && "u" > typeof Atomics) {
303
304
  const nil = new Int32Array(new SharedArrayBuffer(4));
304
305
  function sleep(ms) {
305
306
  const valid = ms > 0 && ms < 1 / 0;
@@ -323,7 +324,7 @@ var __webpack_modules__ = {
323
324
  module1.exports = sleep1;
324
325
  }
325
326
  },
326
- "../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js": function(module1) {
327
+ "../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js" (module1) {
327
328
  "use strict";
328
329
  const refs = {
329
330
  exit: [],
@@ -405,7 +406,7 @@ var __webpack_modules__ = {
405
406
  unregister
406
407
  };
407
408
  },
408
- "../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
409
+ "../../node_modules/.pnpm/pino-abstract-transport@3.0.0/node_modules/pino-abstract-transport/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
409
410
  "use strict";
410
411
  const metadata = Symbol.for('pino.metadata');
411
412
  const split = __webpack_require__("../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js");
@@ -511,7 +512,7 @@ var __webpack_modules__ = {
511
512
  process.nextTick(cb, err);
512
513
  }
513
514
  },
514
- "../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js": function(module1) {
515
+ "../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js" (module1) {
515
516
  "use strict";
516
517
  function tryStringify(o) {
517
518
  try {
@@ -607,7 +608,7 @@ var __webpack_modules__ = {
607
608
  return str;
608
609
  }
609
610
  },
610
- "../../node_modules/.pnpm/real-require@0.2.0/node_modules/real-require/src/index.js": function(module1) {
611
+ "../../node_modules/.pnpm/real-require@0.2.0/node_modules/real-require/src/index.js" (module1) {
611
612
  const realImport = new Function('modulePath', 'return import(modulePath)');
612
613
  function realRequire(modulePath) {
613
614
  if ('function' == typeof __non_webpack__require__) return __non_webpack__require__(modulePath);
@@ -618,7 +619,7 @@ var __webpack_modules__ = {
618
619
  realRequire
619
620
  };
620
621
  },
621
- "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js": function(module1, exports) {
622
+ "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js" (module1, exports) {
622
623
  "use strict";
623
624
  const { hasOwnProperty } = Object.prototype;
624
625
  const stringify = configure();
@@ -1062,7 +1063,7 @@ var __webpack_modules__ = {
1062
1063
  return stringify;
1063
1064
  }
1064
1065
  },
1065
- "../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1066
+ "../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
1066
1067
  "use strict";
1067
1068
  const { Transform } = __webpack_require__("stream");
1068
1069
  const { StringDecoder } = __webpack_require__("string_decoder");
@@ -1150,15 +1151,15 @@ var __webpack_modules__ = {
1150
1151
  }
1151
1152
  module1.exports = split;
1152
1153
  },
1153
- "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1154
+ "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
1154
1155
  "use strict";
1155
- const { version } = __webpack_require__("../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json");
1156
+ const { version } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json");
1156
1157
  const { EventEmitter } = __webpack_require__("events");
1157
1158
  const { Worker } = __webpack_require__("worker_threads");
1158
1159
  const { join } = __webpack_require__("path");
1159
1160
  const { pathToFileURL } = __webpack_require__("url");
1160
- const { wait } = __webpack_require__("../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js");
1161
- const { WRITE_INDEX, READ_INDEX } = __webpack_require__("../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js");
1161
+ const { wait } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js");
1162
+ const { WRITE_INDEX, READ_INDEX } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js");
1162
1163
  const buffer = __webpack_require__("buffer");
1163
1164
  const assert = __webpack_require__("assert");
1164
1165
  const kImpl = Symbol('kImpl');
@@ -1232,6 +1233,7 @@ var __webpack_modules__ = {
1232
1233
  if (stream.destroyed) return;
1233
1234
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
1234
1235
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
1236
+ Atomics.notify(stream[kImpl].state, READ_INDEX);
1235
1237
  while(toWriteBytes > stream[kImpl].data.length){
1236
1238
  leftover /= 2;
1237
1239
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -1245,6 +1247,7 @@ var __webpack_modules__ = {
1245
1247
  stream.flush(()=>{
1246
1248
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
1247
1249
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
1250
+ Atomics.notify(stream[kImpl].state, READ_INDEX);
1248
1251
  nextFlush(stream);
1249
1252
  });
1250
1253
  } else destroy(stream, new Error('overwritten'));
@@ -1468,6 +1471,7 @@ var __webpack_modules__ = {
1468
1471
  flushSync(stream);
1469
1472
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
1470
1473
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
1474
+ Atomics.notify(stream[kImpl].state, READ_INDEX);
1471
1475
  continue;
1472
1476
  }
1473
1477
  if (leftover < 0) throw new Error('overwritten');
@@ -1480,6 +1484,7 @@ var __webpack_modules__ = {
1480
1484
  flushSync(stream);
1481
1485
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
1482
1486
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
1487
+ Atomics.notify(stream[kImpl].state, READ_INDEX);
1483
1488
  while(toWriteBytes > stream[kImpl].buf.length){
1484
1489
  leftover /= 2;
1485
1490
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -1504,7 +1509,7 @@ var __webpack_modules__ = {
1504
1509
  }
1505
1510
  module1.exports = ThreadStream;
1506
1511
  },
1507
- "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js": function(module1) {
1512
+ "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js" (module1) {
1508
1513
  "use strict";
1509
1514
  const WRITE_INDEX = 4;
1510
1515
  const READ_INDEX = 8;
@@ -1513,197 +1518,118 @@ var __webpack_modules__ = {
1513
1518
  READ_INDEX
1514
1519
  };
1515
1520
  },
1516
- "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js": function(module1) {
1521
+ "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js" (module1) {
1517
1522
  "use strict";
1518
- const MAX_TIMEOUT = 1000;
1523
+ const WAIT_MS = 10000;
1519
1524
  function wait(state, index, expected, timeout, done) {
1520
- const max = Date.now() + timeout;
1521
- let current = Atomics.load(state, index);
1522
- if (current === expected) return void done(null, 'ok');
1523
- let prior = current;
1524
- const check = (backoff)=>{
1525
- if (Date.now() > max) done(null, 'timed-out');
1526
- else setTimeout(()=>{
1527
- prior = current;
1528
- current = Atomics.load(state, index);
1529
- if (current === prior) check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : 2 * backoff);
1530
- else current === expected ? done(null, 'ok') : done(null, 'not-equal');
1531
- }, backoff);
1525
+ const max = timeout === 1 / 0 ? 1 / 0 : Date.now() + timeout;
1526
+ const check = ()=>{
1527
+ const current = Atomics.load(state, index);
1528
+ if (current === expected) return void done(null, 'ok');
1529
+ if (max !== 1 / 0 && Date.now() > max) return void done(null, 'timed-out');
1530
+ const remaining = max === 1 / 0 ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
1531
+ const result = Atomics.waitAsync(state, index, current, remaining);
1532
+ if (result.async) result.value.then(check);
1533
+ else setImmediate(check);
1532
1534
  };
1533
- check(1);
1535
+ check();
1534
1536
  }
1535
1537
  function waitDiff(state, index, expected, timeout, done) {
1536
- const max = Date.now() + timeout;
1537
- let current = Atomics.load(state, index);
1538
- if (current !== expected) return void done(null, 'ok');
1539
- const check = (backoff)=>{
1540
- if (Date.now() > max) done(null, 'timed-out');
1541
- else setTimeout(()=>{
1542
- current = Atomics.load(state, index);
1543
- if (current !== expected) done(null, 'ok');
1544
- else check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : 2 * backoff);
1545
- }, backoff);
1538
+ const max = timeout === 1 / 0 ? 1 / 0 : Date.now() + timeout;
1539
+ const check = ()=>{
1540
+ const current = Atomics.load(state, index);
1541
+ if (current !== expected) return void done(null, 'ok');
1542
+ if (max !== 1 / 0 && Date.now() > max) return void done(null, 'timed-out');
1543
+ const remaining = max === 1 / 0 ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
1544
+ const result = Atomics.waitAsync(state, index, expected, remaining);
1545
+ if (result.async) result.value.then(check);
1546
+ else setImmediate(check);
1546
1547
  };
1547
- check(1);
1548
+ check();
1548
1549
  }
1549
1550
  module1.exports = {
1550
1551
  wait,
1551
1552
  waitDiff
1552
1553
  };
1553
1554
  },
1554
- assert: function(module1) {
1555
+ assert (module1) {
1555
1556
  "use strict";
1556
1557
  module1.exports = require("assert");
1557
1558
  },
1558
- buffer: function(module1) {
1559
+ buffer (module1) {
1559
1560
  "use strict";
1560
1561
  module1.exports = require("buffer");
1561
1562
  },
1562
- events: function(module1) {
1563
+ events (module1) {
1563
1564
  "use strict";
1564
1565
  module1.exports = require("events");
1565
1566
  },
1566
- fs: function(module1) {
1567
+ fs (module1) {
1567
1568
  "use strict";
1568
1569
  module1.exports = require("fs");
1569
1570
  },
1570
- module: function(module1) {
1571
+ module (module1) {
1571
1572
  "use strict";
1572
1573
  module1.exports = require("module");
1573
1574
  },
1574
- "node:diagnostics_channel": function(module1) {
1575
+ "node:diagnostics_channel" (module1) {
1575
1576
  "use strict";
1576
1577
  module1.exports = require("node:diagnostics_channel");
1577
1578
  },
1578
- "node:events": function(module1) {
1579
+ "node:events" (module1) {
1579
1580
  "use strict";
1580
1581
  module1.exports = require("node:events");
1581
1582
  },
1582
- "node:os": function(module1) {
1583
+ "node:fs" (module1) {
1584
+ "use strict";
1585
+ module1.exports = require("node:fs");
1586
+ },
1587
+ "node:os" (module1) {
1583
1588
  "use strict";
1584
1589
  module1.exports = require("node:os");
1585
1590
  },
1586
- "node:path": function(module1) {
1591
+ "node:path" (module1) {
1587
1592
  "use strict";
1588
1593
  module1.exports = require("node:path");
1589
1594
  },
1590
- "node:stream": function(module1) {
1595
+ "node:stream" (module1) {
1591
1596
  "use strict";
1592
1597
  module1.exports = require("node:stream");
1593
1598
  },
1594
- path: function(module1) {
1599
+ "node:url" (module1) {
1600
+ "use strict";
1601
+ module1.exports = require("node:url");
1602
+ },
1603
+ path (module1) {
1595
1604
  "use strict";
1596
1605
  module1.exports = require("path");
1597
1606
  },
1598
- stream: function(module1) {
1607
+ stream (module1) {
1599
1608
  "use strict";
1600
1609
  module1.exports = require("stream");
1601
1610
  },
1602
- string_decoder: function(module1) {
1611
+ string_decoder (module1) {
1603
1612
  "use strict";
1604
1613
  module1.exports = require("string_decoder");
1605
1614
  },
1606
- url: function(module1) {
1615
+ url (module1) {
1607
1616
  "use strict";
1608
1617
  module1.exports = require("url");
1609
1618
  },
1610
- util: function(module1) {
1619
+ util (module1) {
1611
1620
  "use strict";
1612
1621
  module1.exports = require("util");
1613
1622
  },
1614
- worker_threads: function(module1) {
1623
+ worker_threads (module1) {
1615
1624
  "use strict";
1616
1625
  module1.exports = require("worker_threads");
1617
1626
  },
1618
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/worker.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1619
- "use strict";
1620
- const EE = __webpack_require__("node:events");
1621
- const { pipeline, PassThrough } = __webpack_require__("node:stream");
1622
- const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/pino.js");
1623
- const build = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js");
1624
- const loadTransportStreamBuilder = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport-stream.js");
1625
- module1.exports = async function({ targets, pipelines, levels, dedupe }) {
1626
- const targetStreams = [];
1627
- if (targets && targets.length) {
1628
- targets = await Promise.all(targets.map(async (t)=>{
1629
- const fn = await loadTransportStreamBuilder(t.target);
1630
- const stream = await fn(t.options);
1631
- return {
1632
- level: t.level,
1633
- stream
1634
- };
1635
- }));
1636
- targetStreams.push(...targets);
1637
- }
1638
- if (pipelines && pipelines.length) {
1639
- pipelines = await Promise.all(pipelines.map(async (p)=>{
1640
- let level;
1641
- const pipeDests = await Promise.all(p.map(async (t)=>{
1642
- level = t.level;
1643
- const fn = await loadTransportStreamBuilder(t.target);
1644
- const stream = await fn(t.options);
1645
- return stream;
1646
- }));
1647
- return {
1648
- level,
1649
- stream: createPipeline(pipeDests)
1650
- };
1651
- }));
1652
- targetStreams.push(...pipelines);
1653
- }
1654
- if (1 === targetStreams.length) return targetStreams[0].stream;
1655
- return build(process1, {
1656
- parse: 'lines',
1657
- metadata: true,
1658
- close (err, cb) {
1659
- let expected = 0;
1660
- for (const transport of targetStreams){
1661
- expected++;
1662
- transport.stream.on('close', closeCb);
1663
- transport.stream.end();
1664
- }
1665
- function closeCb() {
1666
- if (0 === --expected) cb(err);
1667
- }
1668
- }
1669
- });
1670
- function process1(stream) {
1671
- const multi = pino.multistream(targetStreams, {
1672
- levels,
1673
- dedupe
1674
- });
1675
- stream.on('data', function(chunk) {
1676
- const { lastTime, lastMsg, lastObj, lastLevel } = this;
1677
- multi.lastLevel = lastLevel;
1678
- multi.lastTime = lastTime;
1679
- multi.lastMsg = lastMsg;
1680
- multi.lastObj = lastObj;
1681
- multi.write(chunk + '\n');
1682
- });
1683
- }
1684
- function createPipeline(streams) {
1685
- const ee = new EE();
1686
- const stream = new PassThrough({
1687
- autoDestroy: true,
1688
- destroy (_, cb) {
1689
- ee.on('error', cb);
1690
- ee.on('closed', cb);
1691
- }
1692
- });
1693
- pipeline(stream, ...streams, function(err) {
1694
- if (err && 'ERR_STREAM_PREMATURE_CLOSE' !== err.code) return void ee.emit('error', err);
1695
- ee.emit('closed');
1696
- });
1697
- return stream;
1698
- }
1699
- };
1700
- },
1701
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1627
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
1702
1628
  "use strict";
1703
- const errSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js");
1704
- const errWithCauseSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js");
1705
- const reqSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js");
1706
- const resSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js");
1629
+ const errSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err.js");
1630
+ const errWithCauseSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-with-cause.js");
1631
+ const reqSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/req.js");
1632
+ const resSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/res.js");
1707
1633
  module1.exports = {
1708
1634
  err: errSerializer,
1709
1635
  errWithCause: errWithCauseSerializer,
@@ -1731,7 +1657,7 @@ var __webpack_modules__ = {
1731
1657
  }
1732
1658
  };
1733
1659
  },
1734
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js": function(module1) {
1660
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js" (module1) {
1735
1661
  "use strict";
1736
1662
  const isErrorLike = (err)=>err && 'string' == typeof err.message;
1737
1663
  const getErrorCause = (err)=>{
@@ -1773,7 +1699,7 @@ var __webpack_modules__ = {
1773
1699
  messageWithCauses
1774
1700
  };
1775
1701
  },
1776
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js": function(module1) {
1702
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js" (module1) {
1777
1703
  "use strict";
1778
1704
  const seen = Symbol('circular-ref-tag');
1779
1705
  const rawSymbol = Symbol('pino-raw-err-ref');
@@ -1820,11 +1746,11 @@ var __webpack_modules__ = {
1820
1746
  }
1821
1747
  };
1822
1748
  },
1823
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1749
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-with-cause.js" (module1, __unused_rspack_exports, __webpack_require__) {
1824
1750
  "use strict";
1825
1751
  module1.exports = errWithCauseSerializer;
1826
- const { isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js");
1827
- const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js");
1752
+ const { isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js");
1753
+ const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js");
1828
1754
  const { seen } = pinoErrorSymbols;
1829
1755
  const { toString } = Object.prototype;
1830
1756
  function errWithCauseSerializer(err) {
@@ -1847,11 +1773,11 @@ var __webpack_modules__ = {
1847
1773
  return _err;
1848
1774
  }
1849
1775
  },
1850
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1776
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err.js" (module1, __unused_rspack_exports, __webpack_require__) {
1851
1777
  "use strict";
1852
1778
  module1.exports = errSerializer;
1853
- const { messageWithCauses, stackWithCauses, isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js");
1854
- const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js");
1779
+ const { messageWithCauses, stackWithCauses, isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js");
1780
+ const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js");
1855
1781
  const { seen } = pinoErrorSymbols;
1856
1782
  const { toString } = Object.prototype;
1857
1783
  function errSerializer(err) {
@@ -1873,7 +1799,7 @@ var __webpack_modules__ = {
1873
1799
  return _err;
1874
1800
  }
1875
1801
  },
1876
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js": function(module1) {
1802
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/req.js" (module1) {
1877
1803
  "use strict";
1878
1804
  module1.exports = {
1879
1805
  mapHttpRequest,
@@ -1959,7 +1885,7 @@ var __webpack_modules__ = {
1959
1885
  };
1960
1886
  }
1961
1887
  },
1962
- "../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js": function(module1) {
1888
+ "../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/res.js" (module1) {
1963
1889
  "use strict";
1964
1890
  module1.exports = {
1965
1891
  mapHttpResponse,
@@ -2004,7 +1930,7 @@ var __webpack_modules__ = {
2004
1930
  };
2005
1931
  }
2006
1932
  },
2007
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js": function(module1) {
1933
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js" (module1) {
2008
1934
  "use strict";
2009
1935
  function noOpPrepareStackTrace(_, stack) {
2010
1936
  return stack;
@@ -2021,7 +1947,7 @@ var __webpack_modules__ = {
2021
1947
  return fileNames;
2022
1948
  };
2023
1949
  },
2024
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js": function(module1) {
1950
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js" (module1) {
2025
1951
  const DEFAULT_LEVELS = {
2026
1952
  trace: 10,
2027
1953
  debug: 20,
@@ -2039,11 +1965,11 @@ var __webpack_modules__ = {
2039
1965
  SORTING_ORDER
2040
1966
  };
2041
1967
  },
2042
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1968
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js" (module1, __unused_rspack_exports, __webpack_require__) {
2043
1969
  "use strict";
2044
- const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
2045
- const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
2046
- const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
1970
+ const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
1971
+ const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
1972
+ const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
2047
1973
  const levelMethods = {
2048
1974
  fatal: (hook)=>{
2049
1975
  const logFatal = genLog(DEFAULT_LEVELS.fatal, hook);
@@ -2191,16 +2117,16 @@ var __webpack_modules__ = {
2191
2117
  assertLevelComparison
2192
2118
  };
2193
2119
  },
2194
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js": function(module1) {
2120
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js" (module1) {
2195
2121
  "use strict";
2196
2122
  module1.exports = {
2197
- version: '10.1.0'
2123
+ version: '10.3.1'
2198
2124
  };
2199
2125
  },
2200
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/multistream.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2126
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js" (module1, __unused_rspack_exports, __webpack_require__) {
2201
2127
  "use strict";
2202
2128
  const metadata = Symbol.for('pino.metadata');
2203
- const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
2129
+ const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
2204
2130
  const DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
2205
2131
  function multistream(streamsArray, opts) {
2206
2132
  streamsArray = streamsArray || [];
@@ -2328,14 +2254,14 @@ var __webpack_modules__ = {
2328
2254
  }
2329
2255
  module1.exports = multistream;
2330
2256
  },
2331
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/proto.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2257
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js" (module1, __unused_rspack_exports, __webpack_require__) {
2332
2258
  "use strict";
2333
2259
  const { EventEmitter } = __webpack_require__("node:events");
2334
- const { lsCacheSym, levelValSym, setLevelSym, getLevelSym, chindingsSym, mixinSym, asJsonSym, writeSym, mixinMergeStrategySym, timeSym, timeSliceIndexSym, streamSym, serializersSym, formattersSym, errorKeySym, messageKeySym, useOnlyCustomLevelsSym, needsMetadataGsym, redactFmtSym, stringifySym, formatOptsSym, stringifiersSym, msgPrefixSym, hooksSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
2335
- const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js");
2336
- const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
2337
- const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js");
2338
- const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js");
2260
+ const { lsCacheSym, levelValSym, setLevelSym, getLevelSym, chindingsSym, mixinSym, asJsonSym, writeSym, mixinMergeStrategySym, timeSym, timeSliceIndexSym, streamSym, serializersSym, formattersSym, errorKeySym, messageKeySym, useOnlyCustomLevelsSym, needsMetadataGsym, redactFmtSym, stringifySym, formatOptsSym, stringifiersSym, msgPrefixSym, hooksSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
2261
+ const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js");
2262
+ const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
2263
+ const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js");
2264
+ const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js");
2339
2265
  const constructor = class {
2340
2266
  };
2341
2267
  const prototype = {
@@ -2481,10 +2407,10 @@ var __webpack_modules__ = {
2481
2407
  else if (cb) cb();
2482
2408
  }
2483
2409
  },
2484
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2410
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js" (module1, __unused_rspack_exports, __webpack_require__) {
2485
2411
  "use strict";
2486
2412
  const Redact = __webpack_require__("../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js");
2487
- const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
2413
+ const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
2488
2414
  const rx = /[^.[\]]+|\[([^[\]]*?)\]/g;
2489
2415
  const CENSOR = '[Redacted]';
2490
2416
  const strict = false;
@@ -2563,7 +2489,7 @@ var __webpack_modules__ = {
2563
2489
  }
2564
2490
  module1.exports = redaction;
2565
2491
  },
2566
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js": function(module1) {
2492
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js" (module1) {
2567
2493
  "use strict";
2568
2494
  const setLevelSym = Symbol('pino.setLevel');
2569
2495
  const getLevelSym = Symbol('pino.getLevel');
@@ -2630,7 +2556,7 @@ var __webpack_modules__ = {
2630
2556
  msgPrefixSym
2631
2557
  };
2632
2558
  },
2633
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/time.js": function(module1) {
2559
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js" (module1) {
2634
2560
  "use strict";
2635
2561
  const nullTime = ()=>'';
2636
2562
  const epochTime = ()=>`,"time":${Date.now()}`;
@@ -2663,17 +2589,19 @@ var __webpack_modules__ = {
2663
2589
  isoTimeNano
2664
2590
  };
2665
2591
  },
2666
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2592
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js" (module1, __unused_rspack_exports, __webpack_require__) {
2667
2593
  "use strict";
2668
2594
  const diagChan = __webpack_require__("node:diagnostics_channel");
2669
2595
  const format = __webpack_require__("../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js");
2670
- const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js");
2596
+ const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
2671
2597
  const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js");
2672
2598
  const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
2673
- const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
2599
+ const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
2674
2600
  const { isMainThread } = __webpack_require__("worker_threads");
2675
- const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js");
2601
+ const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js");
2602
+ const [nodeMajor] = process.versions.node.split('.').map((v)=>Number(v));
2676
2603
  const asJsonChan = diagChan.tracingChannel('pino_asJson');
2604
+ const asString = nodeMajor >= 25 ? (str)=>JSON.stringify(str) : _asString;
2677
2605
  function noop() {}
2678
2606
  function genLog(level, hook) {
2679
2607
  if (!hook) return LOG;
@@ -2704,7 +2632,7 @@ var __webpack_modules__ = {
2704
2632
  }
2705
2633
  }
2706
2634
  }
2707
- function asString(str) {
2635
+ function _asString(str) {
2708
2636
  let result = '';
2709
2637
  let last = 0;
2710
2638
  let found = false;
@@ -2933,7 +2861,7 @@ var __webpack_modules__ = {
2933
2861
  normalizeDestFileDescriptor
2934
2862
  };
2935
2863
  },
2936
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport-stream.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2864
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport-stream.js" (module1, __unused_rspack_exports, __webpack_require__) {
2937
2865
  "use strict";
2938
2866
  const { realImport, realRequire } = __webpack_require__("../../node_modules/.pnpm/real-require@0.2.0/node_modules/real-require/src/index.js");
2939
2867
  module1.exports = loadTransportStreamBuilder;
@@ -2961,14 +2889,16 @@ var __webpack_modules__ = {
2961
2889
  return fn;
2962
2890
  }
2963
2891
  },
2964
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2892
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js" (module1, __unused_rspack_exports, __webpack_require__) {
2965
2893
  "use strict";
2966
2894
  const { createRequire } = __webpack_require__("module");
2967
- const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js");
2895
+ const { existsSync } = __webpack_require__("node:fs");
2896
+ const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js");
2968
2897
  const { join, isAbsolute, sep } = __webpack_require__("node:path");
2898
+ const { fileURLToPath } = __webpack_require__("node:url");
2969
2899
  const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
2970
2900
  const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
2971
- const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js");
2901
+ const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js");
2972
2902
  function setupOnExit(stream) {
2973
2903
  onExit.register(stream, autoEnd);
2974
2904
  onExit.registerBeforeExit(stream, flush);
@@ -2976,7 +2906,83 @@ var __webpack_modules__ = {
2976
2906
  onExit.unregister(stream);
2977
2907
  });
2978
2908
  }
2979
- function buildStream(filename, workerData, workerOpts, sync) {
2909
+ function hasPreloadFlags() {
2910
+ const execArgv = process.execArgv;
2911
+ for(let i = 0; i < execArgv.length; i++){
2912
+ const arg = execArgv[i];
2913
+ if ('--import' === arg || '--require' === arg || '-r' === arg) return true;
2914
+ if (arg.startsWith('--import=') || arg.startsWith('--require=') || arg.startsWith('-r=')) return true;
2915
+ }
2916
+ return false;
2917
+ }
2918
+ function sanitizeNodeOptions(nodeOptions) {
2919
+ const tokens = nodeOptions.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
2920
+ if (!tokens) return nodeOptions;
2921
+ const sanitized = [];
2922
+ let changed = false;
2923
+ for(let i = 0; i < tokens.length; i++){
2924
+ const token = tokens[i];
2925
+ if ('--require' === token || '-r' === token || '--import' === token) {
2926
+ const next = tokens[i + 1];
2927
+ if (next && shouldDropPreload(next)) {
2928
+ changed = true;
2929
+ i++;
2930
+ continue;
2931
+ }
2932
+ sanitized.push(token);
2933
+ if (next) {
2934
+ sanitized.push(next);
2935
+ i++;
2936
+ }
2937
+ continue;
2938
+ }
2939
+ if (token.startsWith('--require=') || token.startsWith('-r=') || token.startsWith('--import=')) {
2940
+ const value = token.slice(token.indexOf('=') + 1);
2941
+ if (shouldDropPreload(value)) {
2942
+ changed = true;
2943
+ continue;
2944
+ }
2945
+ }
2946
+ sanitized.push(token);
2947
+ }
2948
+ return changed ? sanitized.join(' ') : nodeOptions;
2949
+ }
2950
+ function shouldDropPreload(value) {
2951
+ const unquoted = stripQuotes(value);
2952
+ if (!unquoted) return false;
2953
+ let path = unquoted;
2954
+ if (path.startsWith('file://')) try {
2955
+ path = fileURLToPath(path);
2956
+ } catch {
2957
+ return false;
2958
+ }
2959
+ return isAbsolute(path) && !existsSync(path);
2960
+ }
2961
+ function stripQuotes(value) {
2962
+ const first = value[0];
2963
+ const last = value[value.length - 1];
2964
+ if ('"' === first && '"' === last || "'" === first && "'" === last) return value.slice(1, -1);
2965
+ return value;
2966
+ }
2967
+ function buildStream(filename, workerData, workerOpts, sync, name) {
2968
+ if (!workerOpts.execArgv && hasPreloadFlags() && void 0 === __webpack_require__.c[__webpack_require__.s]) workerOpts = {
2969
+ ...workerOpts,
2970
+ execArgv: []
2971
+ };
2972
+ if (!workerOpts.env && process.env.NODE_OPTIONS) {
2973
+ const nodeOptions = sanitizeNodeOptions(process.env.NODE_OPTIONS);
2974
+ if (nodeOptions !== process.env.NODE_OPTIONS) workerOpts = {
2975
+ ...workerOpts,
2976
+ env: {
2977
+ ...process.env,
2978
+ NODE_OPTIONS: nodeOptions
2979
+ }
2980
+ };
2981
+ }
2982
+ workerOpts = {
2983
+ ...workerOpts,
2984
+ name
2985
+ };
2980
2986
  const stream = new ThreadStream({
2981
2987
  filename,
2982
2988
  workerData,
@@ -3020,7 +3026,7 @@ var __webpack_modules__ = {
3020
3026
  const callers = 'string' == typeof caller ? [
3021
3027
  caller
3022
3028
  ] : caller;
3023
- const bundlerOverrides = '__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {};
3029
+ const bundlerOverrides = 'object' == typeof globalThis && Object.prototype.hasOwnProperty.call(globalThis, '__bundlerPathsOverrides') && globalThis.__bundlerPathsOverrides && 'object' == typeof globalThis.__bundlerPathsOverrides ? globalThis.__bundlerPathsOverrides : Object.create(null);
3024
3030
  let target = fullOptions.target;
3025
3031
  if (target && targets) throw new Error('only one of target or targets can be specified');
3026
3032
  if (targets) {
@@ -3046,7 +3052,8 @@ var __webpack_modules__ = {
3046
3052
  if (levels) options.levels = levels;
3047
3053
  if (dedupe) options.dedupe = dedupe;
3048
3054
  options.pinoWillSendConfig = true;
3049
- return buildStream(fixTarget(target), options, worker, sync);
3055
+ const name = targets || pipeline ? 'pino.transport' : target;
3056
+ return buildStream(fixTarget(target), options, worker, sync, name);
3050
3057
  function fixTarget(origin) {
3051
3058
  origin = bundlerOverrides[origin] || origin;
3052
3059
  if (isAbsolute(origin) || 0 === origin.indexOf('file://')) return origin;
@@ -3065,20 +3072,103 @@ var __webpack_modules__ = {
3065
3072
  }
3066
3073
  module1.exports = transport;
3067
3074
  },
3068
- "../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/pino.js": function(module1, __unused_webpack_exports, __webpack_require__) {
3075
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/worker.js" (module1, __unused_rspack_exports, __webpack_require__) {
3076
+ "use strict";
3077
+ const EE = __webpack_require__("node:events");
3078
+ const { pipeline, PassThrough } = __webpack_require__("node:stream");
3079
+ const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js");
3080
+ const build = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@3.0.0/node_modules/pino-abstract-transport/index.js");
3081
+ const loadTransportStreamBuilder = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport-stream.js");
3082
+ module1.exports = async function({ targets, pipelines, levels, dedupe }) {
3083
+ const targetStreams = [];
3084
+ if (targets && targets.length) {
3085
+ targets = await Promise.all(targets.map(async (t)=>{
3086
+ const fn = await loadTransportStreamBuilder(t.target);
3087
+ const stream = await fn(t.options);
3088
+ return {
3089
+ level: t.level,
3090
+ stream
3091
+ };
3092
+ }));
3093
+ targetStreams.push(...targets);
3094
+ }
3095
+ if (pipelines && pipelines.length) {
3096
+ pipelines = await Promise.all(pipelines.map(async (p)=>{
3097
+ let level;
3098
+ const pipeDests = await Promise.all(p.map(async (t)=>{
3099
+ level = t.level;
3100
+ const fn = await loadTransportStreamBuilder(t.target);
3101
+ const stream = await fn(t.options);
3102
+ return stream;
3103
+ }));
3104
+ return {
3105
+ level,
3106
+ stream: createPipeline(pipeDests)
3107
+ };
3108
+ }));
3109
+ targetStreams.push(...pipelines);
3110
+ }
3111
+ if (1 === targetStreams.length) return targetStreams[0].stream;
3112
+ return build(process1, {
3113
+ parse: 'lines',
3114
+ metadata: true,
3115
+ close (err, cb) {
3116
+ let expected = 0;
3117
+ for (const transport of targetStreams){
3118
+ expected++;
3119
+ transport.stream.on('close', closeCb);
3120
+ transport.stream.end();
3121
+ }
3122
+ function closeCb() {
3123
+ if (0 === --expected) cb(err);
3124
+ }
3125
+ }
3126
+ });
3127
+ function process1(stream) {
3128
+ const multi = pino.multistream(targetStreams, {
3129
+ levels,
3130
+ dedupe
3131
+ });
3132
+ stream.on('data', function(chunk) {
3133
+ const { lastTime, lastMsg, lastObj, lastLevel } = this;
3134
+ multi.lastLevel = lastLevel;
3135
+ multi.lastTime = lastTime;
3136
+ multi.lastMsg = lastMsg;
3137
+ multi.lastObj = lastObj;
3138
+ multi.write(chunk + '\n');
3139
+ });
3140
+ }
3141
+ function createPipeline(streams) {
3142
+ const ee = new EE();
3143
+ const stream = new PassThrough({
3144
+ autoDestroy: true,
3145
+ destroy (_, cb) {
3146
+ ee.on('error', cb);
3147
+ ee.on('closed', cb);
3148
+ }
3149
+ });
3150
+ pipeline(stream, ...streams, function(err) {
3151
+ if (err && 'ERR_STREAM_PREMATURE_CLOSE' !== err.code) return void ee.emit('error', err);
3152
+ ee.emit('closed');
3153
+ });
3154
+ return stream;
3155
+ }
3156
+ };
3157
+ },
3158
+ "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js" (module1, __unused_rspack_exports, __webpack_require__) {
3069
3159
  "use strict";
3070
3160
  const os = __webpack_require__("node:os");
3071
- const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js");
3072
- const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js");
3073
- const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js");
3074
- const time = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/time.js");
3075
- const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/proto.js");
3076
- const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
3161
+ const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
3162
+ const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js");
3163
+ const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js");
3164
+ const time = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js");
3165
+ const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js");
3166
+ const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
3077
3167
  const { configure } = __webpack_require__("../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js");
3078
- const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js");
3079
- const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
3080
- const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
3081
- const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js");
3168
+ const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js");
3169
+ const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
3170
+ const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
3171
+ const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js");
3082
3172
  const { chindingsSym, redactFmtSym, serializersSym, timeSym, timeSliceIndexSym, streamSym, stringifySym, stringifySafeSym, stringifiersSym, setLevelSym, endSym, formatOptsSym, messageKeySym, errorKeySym, nestedKeySym, mixinSym, levelCompSym, useOnlyCustomLevelsSym, formattersSym, hooksSym, nestedKeyStrSym, mixinMergeStrategySym, msgPrefixSym } = symbols;
3083
3173
  const { epochTime, nullTime } = time;
3084
3174
  const { pid } = process;
@@ -3212,8 +3302,8 @@ var __webpack_modules__ = {
3212
3302
  dest.dest = normalizeDestFileDescriptor(dest.dest || process.stdout.fd);
3213
3303
  return buildSafeSonicBoom(dest);
3214
3304
  };
3215
- module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js");
3216
- module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/multistream.js");
3305
+ module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js");
3306
+ module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js");
3217
3307
  module1.exports.levels = mappings();
3218
3308
  module1.exports.stdSerializers = serializers;
3219
3309
  module1.exports.stdTimeFunctions = Object.assign({}, time);
@@ -3222,7 +3312,7 @@ var __webpack_modules__ = {
3222
3312
  module1.exports["default"] = pino;
3223
3313
  module1.exports.pino = pino;
3224
3314
  },
3225
- "../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
3315
+ "../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
3226
3316
  "use strict";
3227
3317
  const fs = __webpack_require__("fs");
3228
3318
  const EventEmitter = __webpack_require__("events");
@@ -3647,9 +3737,11 @@ var __webpack_modules__ = {
3647
3737
  SonicBoom.default = SonicBoom;
3648
3738
  module1.exports = SonicBoom;
3649
3739
  },
3650
- "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json": function(module1) {
3740
+ "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json" (module1) {
3651
3741
  "use strict";
3652
- module1.exports = JSON.parse('{"name":"thread-stream","version":"3.1.0","description":"A streaming way to send data to a Node.js Worker Thread","main":"index.js","types":"index.d.ts","dependencies":{"real-require":"^0.2.0"},"devDependencies":{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5","desm":"^1.3.0","fastbench":"^1.0.1","husky":"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1","standard":"^17.0.0","tap":"^16.2.0","ts-node":"^10.8.0","typescript":"^5.3.2","why-is-node-running":"^2.2.2"},"scripts":{"build":"tsc --noEmit","test":"standard && npm run build && npm run transpile && tap \\"test/**/*.test.*js\\" && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":"tap --no-check-coverage --timeout=120 --coverage-report=lcovonly \\"test/**/*.test.*js\\"","test:ci:ts":"tap --ts --no-check-coverage --coverage-report=lcovonly \\"test/**/*.test.*ts\\"","test:yarn":"npm run transpile && tap \\"test/**/*.test.js\\" --no-check-coverage","transpile":"sh ./test/ts/transpile.sh","prepare":"husky install"},"standard":{"ignore":["test/ts/**/*","test/syntax-error.mjs"]},"repository":{"type":"git","url":"git+https://github.com/mcollina/thread-stream.git"},"keywords":["worker","thread","threads","stream"],"author":"Matteo Collina <hello@matteocollina.com>","license":"MIT","bugs":{"url":"https://github.com/mcollina/thread-stream/issues"},"homepage":"https://github.com/mcollina/thread-stream#readme"}');
3742
+ module1.exports = {
3743
+ version: "4.0.0"
3744
+ };
3653
3745
  }
3654
3746
  };
3655
3747
  var __webpack_module_cache__ = {};
@@ -3662,5 +3754,6 @@ function __webpack_require__(moduleId) {
3662
3754
  __webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
3663
3755
  return module1.exports;
3664
3756
  }
3665
- var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/worker.js");
3757
+ __webpack_require__.c = __webpack_module_cache__;
3758
+ var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/worker.js");
3666
3759
  module.exports = __webpack_exports__;