@rife/logger 0.0.6-beta.12 → 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.
- package/dist/cjs/pino/index.cjs +14 -1
- package/dist/cjs/pino/worker/pino-file.cjs +187 -95
- package/dist/cjs/pino/worker/pino-pretty.cjs +2 -48
- package/dist/cjs/pino/worker/pino-rotate.cjs +10 -9
- package/dist/cjs/pino/worker/pino-worker.cjs +191 -99
- package/dist/cjs/pino/worker.cjs +116 -0
- package/dist/cjs/worker/index.cjs +5 -0
- package/dist/esm/common.mjs +2 -3
- package/dist/esm/env.mjs +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/pino/index.mjs +18 -18
- package/dist/esm/pino/rotate.mjs +5 -15
- package/dist/esm/pino/worker/pino-file.cjs +187 -95
- package/dist/esm/pino/worker/pino-pretty.cjs +2 -48
- package/dist/esm/pino/worker/pino-rotate.cjs +10 -9
- package/dist/esm/pino/worker/pino-worker.cjs +191 -99
- package/dist/esm/pino/worker.mjs +74 -0
- package/dist/esm/rslib-runtime.mjs +19 -0
- package/dist/esm/test.mjs +2 -3
- package/dist/esm/trace.mjs +1 -2
- package/dist/esm/worker/index.mjs +1 -0
- package/dist/worker/pino-file.cjs +187 -95
- package/dist/worker/pino-pretty.cjs +2 -48
- package/dist/worker/pino-rotate.cjs +10 -9
- package/dist/worker/pino-worker.cjs +191 -99
- package/package.json +14 -6
- package/src/pino/index.ts +26 -1
- package/src/pino/worker.ts +82 -0
- package/src/worker/index.ts +3 -0
|
@@ -946,15 +946,15 @@ var __webpack_modules__ = {
|
|
|
946
946
|
return stringify;
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
|
-
"../../node_modules/.pnpm/thread-stream@
|
|
949
|
+
"../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
950
950
|
"use strict";
|
|
951
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/thread-stream@
|
|
951
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json");
|
|
952
952
|
const { EventEmitter } = __webpack_require__("events");
|
|
953
953
|
const { Worker } = __webpack_require__("worker_threads");
|
|
954
954
|
const { join } = __webpack_require__("path");
|
|
955
955
|
const { pathToFileURL } = __webpack_require__("url");
|
|
956
|
-
const { wait } = __webpack_require__("../../node_modules/.pnpm/thread-stream@
|
|
957
|
-
const { WRITE_INDEX, READ_INDEX } = __webpack_require__("../../node_modules/.pnpm/thread-stream@
|
|
956
|
+
const { wait } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js");
|
|
957
|
+
const { WRITE_INDEX, READ_INDEX } = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js");
|
|
958
958
|
const buffer = __webpack_require__("buffer");
|
|
959
959
|
const assert = __webpack_require__("assert");
|
|
960
960
|
const kImpl = Symbol('kImpl');
|
|
@@ -1028,6 +1028,7 @@ var __webpack_modules__ = {
|
|
|
1028
1028
|
if (stream.destroyed) return;
|
|
1029
1029
|
Atomics.store(stream[kImpl].state, READ_INDEX, 0);
|
|
1030
1030
|
Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
|
|
1031
|
+
Atomics.notify(stream[kImpl].state, READ_INDEX);
|
|
1031
1032
|
while(toWriteBytes > stream[kImpl].data.length){
|
|
1032
1033
|
leftover /= 2;
|
|
1033
1034
|
toWrite = stream[kImpl].buf.slice(0, leftover);
|
|
@@ -1041,6 +1042,7 @@ var __webpack_modules__ = {
|
|
|
1041
1042
|
stream.flush(()=>{
|
|
1042
1043
|
Atomics.store(stream[kImpl].state, READ_INDEX, 0);
|
|
1043
1044
|
Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
|
|
1045
|
+
Atomics.notify(stream[kImpl].state, READ_INDEX);
|
|
1044
1046
|
nextFlush(stream);
|
|
1045
1047
|
});
|
|
1046
1048
|
} else destroy(stream, new Error('overwritten'));
|
|
@@ -1264,6 +1266,7 @@ var __webpack_modules__ = {
|
|
|
1264
1266
|
flushSync(stream);
|
|
1265
1267
|
Atomics.store(stream[kImpl].state, READ_INDEX, 0);
|
|
1266
1268
|
Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
|
|
1269
|
+
Atomics.notify(stream[kImpl].state, READ_INDEX);
|
|
1267
1270
|
continue;
|
|
1268
1271
|
}
|
|
1269
1272
|
if (leftover < 0) throw new Error('overwritten');
|
|
@@ -1276,6 +1279,7 @@ var __webpack_modules__ = {
|
|
|
1276
1279
|
flushSync(stream);
|
|
1277
1280
|
Atomics.store(stream[kImpl].state, READ_INDEX, 0);
|
|
1278
1281
|
Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
|
|
1282
|
+
Atomics.notify(stream[kImpl].state, READ_INDEX);
|
|
1279
1283
|
while(toWriteBytes > stream[kImpl].buf.length){
|
|
1280
1284
|
leftover /= 2;
|
|
1281
1285
|
toWrite = stream[kImpl].buf.slice(0, leftover);
|
|
@@ -1300,7 +1304,7 @@ var __webpack_modules__ = {
|
|
|
1300
1304
|
}
|
|
1301
1305
|
module1.exports = ThreadStream;
|
|
1302
1306
|
},
|
|
1303
|
-
"../../node_modules/.pnpm/thread-stream@
|
|
1307
|
+
"../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js" (module1) {
|
|
1304
1308
|
"use strict";
|
|
1305
1309
|
const WRITE_INDEX = 4;
|
|
1306
1310
|
const READ_INDEX = 8;
|
|
@@ -1309,38 +1313,34 @@ var __webpack_modules__ = {
|
|
|
1309
1313
|
READ_INDEX
|
|
1310
1314
|
};
|
|
1311
1315
|
},
|
|
1312
|
-
"../../node_modules/.pnpm/thread-stream@
|
|
1316
|
+
"../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js" (module1) {
|
|
1313
1317
|
"use strict";
|
|
1314
|
-
const
|
|
1318
|
+
const WAIT_MS = 10000;
|
|
1315
1319
|
function wait(state, index, expected, timeout, done) {
|
|
1316
|
-
const max = Date.now() + timeout;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
if (current === prior) check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : 2 * backoff);
|
|
1326
|
-
else current === expected ? done(null, 'ok') : done(null, 'not-equal');
|
|
1327
|
-
}, backoff);
|
|
1320
|
+
const max = timeout === 1 / 0 ? 1 / 0 : Date.now() + timeout;
|
|
1321
|
+
const check = ()=>{
|
|
1322
|
+
const current = Atomics.load(state, index);
|
|
1323
|
+
if (current === expected) return void done(null, 'ok');
|
|
1324
|
+
if (max !== 1 / 0 && Date.now() > max) return void done(null, 'timed-out');
|
|
1325
|
+
const remaining = max === 1 / 0 ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1326
|
+
const result = Atomics.waitAsync(state, index, current, remaining);
|
|
1327
|
+
if (result.async) result.value.then(check);
|
|
1328
|
+
else setImmediate(check);
|
|
1328
1329
|
};
|
|
1329
|
-
check(
|
|
1330
|
+
check();
|
|
1330
1331
|
}
|
|
1331
1332
|
function waitDiff(state, index, expected, timeout, done) {
|
|
1332
|
-
const max = Date.now() + timeout;
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
if (Date.now() > max) done(null, 'timed-out');
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}, backoff);
|
|
1333
|
+
const max = timeout === 1 / 0 ? 1 / 0 : Date.now() + timeout;
|
|
1334
|
+
const check = ()=>{
|
|
1335
|
+
const current = Atomics.load(state, index);
|
|
1336
|
+
if (current !== expected) return void done(null, 'ok');
|
|
1337
|
+
if (max !== 1 / 0 && Date.now() > max) return void done(null, 'timed-out');
|
|
1338
|
+
const remaining = max === 1 / 0 ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1339
|
+
const result = Atomics.waitAsync(state, index, expected, remaining);
|
|
1340
|
+
if (result.async) result.value.then(check);
|
|
1341
|
+
else setImmediate(check);
|
|
1342
1342
|
};
|
|
1343
|
-
check(
|
|
1343
|
+
check();
|
|
1344
1344
|
}
|
|
1345
1345
|
module1.exports = {
|
|
1346
1346
|
wait,
|
|
@@ -1375,6 +1375,10 @@ var __webpack_modules__ = {
|
|
|
1375
1375
|
"use strict";
|
|
1376
1376
|
module1.exports = require("node:events");
|
|
1377
1377
|
},
|
|
1378
|
+
"node:fs" (module1) {
|
|
1379
|
+
"use strict";
|
|
1380
|
+
module1.exports = require("node:fs");
|
|
1381
|
+
},
|
|
1378
1382
|
"node:os" (module1) {
|
|
1379
1383
|
"use strict";
|
|
1380
1384
|
module1.exports = require("node:os");
|
|
@@ -1383,6 +1387,10 @@ var __webpack_modules__ = {
|
|
|
1383
1387
|
"use strict";
|
|
1384
1388
|
module1.exports = require("node:path");
|
|
1385
1389
|
},
|
|
1390
|
+
"node:url" (module1) {
|
|
1391
|
+
"use strict";
|
|
1392
|
+
module1.exports = require("node:url");
|
|
1393
|
+
},
|
|
1386
1394
|
path (module1) {
|
|
1387
1395
|
"use strict";
|
|
1388
1396
|
module1.exports = require("path");
|
|
@@ -1399,12 +1407,12 @@ var __webpack_modules__ = {
|
|
|
1399
1407
|
"use strict";
|
|
1400
1408
|
module1.exports = require("worker_threads");
|
|
1401
1409
|
},
|
|
1402
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1410
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1403
1411
|
"use strict";
|
|
1404
|
-
const errSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1405
|
-
const errWithCauseSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1406
|
-
const reqSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1407
|
-
const resSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1412
|
+
const errSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err.js");
|
|
1413
|
+
const errWithCauseSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-with-cause.js");
|
|
1414
|
+
const reqSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/req.js");
|
|
1415
|
+
const resSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/res.js");
|
|
1408
1416
|
module1.exports = {
|
|
1409
1417
|
err: errSerializer,
|
|
1410
1418
|
errWithCause: errWithCauseSerializer,
|
|
@@ -1432,7 +1440,7 @@ var __webpack_modules__ = {
|
|
|
1432
1440
|
}
|
|
1433
1441
|
};
|
|
1434
1442
|
},
|
|
1435
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1443
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js" (module1) {
|
|
1436
1444
|
"use strict";
|
|
1437
1445
|
const isErrorLike = (err)=>err && 'string' == typeof err.message;
|
|
1438
1446
|
const getErrorCause = (err)=>{
|
|
@@ -1474,7 +1482,7 @@ var __webpack_modules__ = {
|
|
|
1474
1482
|
messageWithCauses
|
|
1475
1483
|
};
|
|
1476
1484
|
},
|
|
1477
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1485
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js" (module1) {
|
|
1478
1486
|
"use strict";
|
|
1479
1487
|
const seen = Symbol('circular-ref-tag');
|
|
1480
1488
|
const rawSymbol = Symbol('pino-raw-err-ref');
|
|
@@ -1521,11 +1529,11 @@ var __webpack_modules__ = {
|
|
|
1521
1529
|
}
|
|
1522
1530
|
};
|
|
1523
1531
|
},
|
|
1524
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1532
|
+
"../../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__) {
|
|
1525
1533
|
"use strict";
|
|
1526
1534
|
module1.exports = errWithCauseSerializer;
|
|
1527
|
-
const { isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1528
|
-
const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1535
|
+
const { isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js");
|
|
1536
|
+
const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js");
|
|
1529
1537
|
const { seen } = pinoErrorSymbols;
|
|
1530
1538
|
const { toString } = Object.prototype;
|
|
1531
1539
|
function errWithCauseSerializer(err) {
|
|
@@ -1548,11 +1556,11 @@ var __webpack_modules__ = {
|
|
|
1548
1556
|
return _err;
|
|
1549
1557
|
}
|
|
1550
1558
|
},
|
|
1551
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1559
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1552
1560
|
"use strict";
|
|
1553
1561
|
module1.exports = errSerializer;
|
|
1554
|
-
const { messageWithCauses, stackWithCauses, isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1555
|
-
const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1562
|
+
const { messageWithCauses, stackWithCauses, isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-helpers.js");
|
|
1563
|
+
const { pinoErrProto, pinoErrorSymbols } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/err-proto.js");
|
|
1556
1564
|
const { seen } = pinoErrorSymbols;
|
|
1557
1565
|
const { toString } = Object.prototype;
|
|
1558
1566
|
function errSerializer(err) {
|
|
@@ -1574,7 +1582,7 @@ var __webpack_modules__ = {
|
|
|
1574
1582
|
return _err;
|
|
1575
1583
|
}
|
|
1576
1584
|
},
|
|
1577
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1585
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/req.js" (module1) {
|
|
1578
1586
|
"use strict";
|
|
1579
1587
|
module1.exports = {
|
|
1580
1588
|
mapHttpRequest,
|
|
@@ -1660,7 +1668,7 @@ var __webpack_modules__ = {
|
|
|
1660
1668
|
};
|
|
1661
1669
|
}
|
|
1662
1670
|
},
|
|
1663
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.
|
|
1671
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/lib/res.js" (module1) {
|
|
1664
1672
|
"use strict";
|
|
1665
1673
|
module1.exports = {
|
|
1666
1674
|
mapHttpResponse,
|
|
@@ -1705,9 +1713,9 @@ var __webpack_modules__ = {
|
|
|
1705
1713
|
};
|
|
1706
1714
|
}
|
|
1707
1715
|
},
|
|
1708
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1716
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/file.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1709
1717
|
"use strict";
|
|
1710
|
-
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
1718
|
+
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js");
|
|
1711
1719
|
const { once } = __webpack_require__("node:events");
|
|
1712
1720
|
module1.exports = async function(opts = {}) {
|
|
1713
1721
|
const destOpts = Object.assign({}, opts, {
|
|
@@ -1720,7 +1728,7 @@ var __webpack_modules__ = {
|
|
|
1720
1728
|
return destination;
|
|
1721
1729
|
};
|
|
1722
1730
|
},
|
|
1723
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1731
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js" (module1) {
|
|
1724
1732
|
"use strict";
|
|
1725
1733
|
function noOpPrepareStackTrace(_, stack) {
|
|
1726
1734
|
return stack;
|
|
@@ -1737,7 +1745,7 @@ var __webpack_modules__ = {
|
|
|
1737
1745
|
return fileNames;
|
|
1738
1746
|
};
|
|
1739
1747
|
},
|
|
1740
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1748
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js" (module1) {
|
|
1741
1749
|
const DEFAULT_LEVELS = {
|
|
1742
1750
|
trace: 10,
|
|
1743
1751
|
debug: 20,
|
|
@@ -1755,11 +1763,11 @@ var __webpack_modules__ = {
|
|
|
1755
1763
|
SORTING_ORDER
|
|
1756
1764
|
};
|
|
1757
1765
|
},
|
|
1758
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1766
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1759
1767
|
"use strict";
|
|
1760
|
-
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
1761
|
-
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
1762
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
1768
|
+
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
|
|
1769
|
+
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
|
|
1770
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
|
|
1763
1771
|
const levelMethods = {
|
|
1764
1772
|
fatal: (hook)=>{
|
|
1765
1773
|
const logFatal = genLog(DEFAULT_LEVELS.fatal, hook);
|
|
@@ -1907,16 +1915,16 @@ var __webpack_modules__ = {
|
|
|
1907
1915
|
assertLevelComparison
|
|
1908
1916
|
};
|
|
1909
1917
|
},
|
|
1910
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1918
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js" (module1) {
|
|
1911
1919
|
"use strict";
|
|
1912
1920
|
module1.exports = {
|
|
1913
|
-
version: '10.1
|
|
1921
|
+
version: '10.3.1'
|
|
1914
1922
|
};
|
|
1915
1923
|
},
|
|
1916
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
1924
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1917
1925
|
"use strict";
|
|
1918
1926
|
const metadata = Symbol.for('pino.metadata');
|
|
1919
|
-
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
1927
|
+
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
|
|
1920
1928
|
const DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
|
|
1921
1929
|
function multistream(streamsArray, opts) {
|
|
1922
1930
|
streamsArray = streamsArray || [];
|
|
@@ -2044,14 +2052,14 @@ var __webpack_modules__ = {
|
|
|
2044
2052
|
}
|
|
2045
2053
|
module1.exports = multistream;
|
|
2046
2054
|
},
|
|
2047
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2055
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2048
2056
|
"use strict";
|
|
2049
2057
|
const { EventEmitter } = __webpack_require__("node:events");
|
|
2050
|
-
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
|
|
2051
|
-
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2052
|
-
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2053
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2054
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2058
|
+
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");
|
|
2059
|
+
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js");
|
|
2060
|
+
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
|
|
2061
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js");
|
|
2062
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js");
|
|
2055
2063
|
const constructor = class {
|
|
2056
2064
|
};
|
|
2057
2065
|
const prototype = {
|
|
@@ -2197,10 +2205,10 @@ var __webpack_modules__ = {
|
|
|
2197
2205
|
else if (cb) cb();
|
|
2198
2206
|
}
|
|
2199
2207
|
},
|
|
2200
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2208
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2201
2209
|
"use strict";
|
|
2202
2210
|
const Redact = __webpack_require__("../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js");
|
|
2203
|
-
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2211
|
+
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
|
|
2204
2212
|
const rx = /[^.[\]]+|\[([^[\]]*?)\]/g;
|
|
2205
2213
|
const CENSOR = '[Redacted]';
|
|
2206
2214
|
const strict = false;
|
|
@@ -2279,7 +2287,7 @@ var __webpack_modules__ = {
|
|
|
2279
2287
|
}
|
|
2280
2288
|
module1.exports = redaction;
|
|
2281
2289
|
},
|
|
2282
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2290
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js" (module1) {
|
|
2283
2291
|
"use strict";
|
|
2284
2292
|
const setLevelSym = Symbol('pino.setLevel');
|
|
2285
2293
|
const getLevelSym = Symbol('pino.getLevel');
|
|
@@ -2346,7 +2354,7 @@ var __webpack_modules__ = {
|
|
|
2346
2354
|
msgPrefixSym
|
|
2347
2355
|
};
|
|
2348
2356
|
},
|
|
2349
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2357
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js" (module1) {
|
|
2350
2358
|
"use strict";
|
|
2351
2359
|
const nullTime = ()=>'';
|
|
2352
2360
|
const epochTime = ()=>`,"time":${Date.now()}`;
|
|
@@ -2379,17 +2387,19 @@ var __webpack_modules__ = {
|
|
|
2379
2387
|
isoTimeNano
|
|
2380
2388
|
};
|
|
2381
2389
|
},
|
|
2382
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2390
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2383
2391
|
"use strict";
|
|
2384
2392
|
const diagChan = __webpack_require__("node:diagnostics_channel");
|
|
2385
2393
|
const format = __webpack_require__("../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js");
|
|
2386
|
-
const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
2394
|
+
const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
2387
2395
|
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js");
|
|
2388
2396
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2389
|
-
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
|
|
2397
|
+
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");
|
|
2390
2398
|
const { isMainThread } = __webpack_require__("worker_threads");
|
|
2391
|
-
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2399
|
+
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js");
|
|
2400
|
+
const [nodeMajor] = process.versions.node.split('.').map((v)=>Number(v));
|
|
2392
2401
|
const asJsonChan = diagChan.tracingChannel('pino_asJson');
|
|
2402
|
+
const asString = nodeMajor >= 25 ? (str)=>JSON.stringify(str) : _asString;
|
|
2393
2403
|
function noop() {}
|
|
2394
2404
|
function genLog(level, hook) {
|
|
2395
2405
|
if (!hook) return LOG;
|
|
@@ -2420,7 +2430,7 @@ var __webpack_modules__ = {
|
|
|
2420
2430
|
}
|
|
2421
2431
|
}
|
|
2422
2432
|
}
|
|
2423
|
-
function
|
|
2433
|
+
function _asString(str) {
|
|
2424
2434
|
let result = '';
|
|
2425
2435
|
let last = 0;
|
|
2426
2436
|
let found = false;
|
|
@@ -2649,14 +2659,16 @@ var __webpack_modules__ = {
|
|
|
2649
2659
|
normalizeDestFileDescriptor
|
|
2650
2660
|
};
|
|
2651
2661
|
},
|
|
2652
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2662
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2653
2663
|
"use strict";
|
|
2654
2664
|
const { createRequire } = __webpack_require__("module");
|
|
2655
|
-
const
|
|
2665
|
+
const { existsSync } = __webpack_require__("node:fs");
|
|
2666
|
+
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js");
|
|
2656
2667
|
const { join, isAbsolute, sep } = __webpack_require__("node:path");
|
|
2668
|
+
const { fileURLToPath } = __webpack_require__("node:url");
|
|
2657
2669
|
const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
|
|
2658
2670
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2659
|
-
const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@
|
|
2671
|
+
const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js");
|
|
2660
2672
|
function setupOnExit(stream) {
|
|
2661
2673
|
onExit.register(stream, autoEnd);
|
|
2662
2674
|
onExit.registerBeforeExit(stream, flush);
|
|
@@ -2664,7 +2676,83 @@ var __webpack_modules__ = {
|
|
|
2664
2676
|
onExit.unregister(stream);
|
|
2665
2677
|
});
|
|
2666
2678
|
}
|
|
2667
|
-
function
|
|
2679
|
+
function hasPreloadFlags() {
|
|
2680
|
+
const execArgv = process.execArgv;
|
|
2681
|
+
for(let i = 0; i < execArgv.length; i++){
|
|
2682
|
+
const arg = execArgv[i];
|
|
2683
|
+
if ('--import' === arg || '--require' === arg || '-r' === arg) return true;
|
|
2684
|
+
if (arg.startsWith('--import=') || arg.startsWith('--require=') || arg.startsWith('-r=')) return true;
|
|
2685
|
+
}
|
|
2686
|
+
return false;
|
|
2687
|
+
}
|
|
2688
|
+
function sanitizeNodeOptions(nodeOptions) {
|
|
2689
|
+
const tokens = nodeOptions.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
|
|
2690
|
+
if (!tokens) return nodeOptions;
|
|
2691
|
+
const sanitized = [];
|
|
2692
|
+
let changed = false;
|
|
2693
|
+
for(let i = 0; i < tokens.length; i++){
|
|
2694
|
+
const token = tokens[i];
|
|
2695
|
+
if ('--require' === token || '-r' === token || '--import' === token) {
|
|
2696
|
+
const next = tokens[i + 1];
|
|
2697
|
+
if (next && shouldDropPreload(next)) {
|
|
2698
|
+
changed = true;
|
|
2699
|
+
i++;
|
|
2700
|
+
continue;
|
|
2701
|
+
}
|
|
2702
|
+
sanitized.push(token);
|
|
2703
|
+
if (next) {
|
|
2704
|
+
sanitized.push(next);
|
|
2705
|
+
i++;
|
|
2706
|
+
}
|
|
2707
|
+
continue;
|
|
2708
|
+
}
|
|
2709
|
+
if (token.startsWith('--require=') || token.startsWith('-r=') || token.startsWith('--import=')) {
|
|
2710
|
+
const value = token.slice(token.indexOf('=') + 1);
|
|
2711
|
+
if (shouldDropPreload(value)) {
|
|
2712
|
+
changed = true;
|
|
2713
|
+
continue;
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
sanitized.push(token);
|
|
2717
|
+
}
|
|
2718
|
+
return changed ? sanitized.join(' ') : nodeOptions;
|
|
2719
|
+
}
|
|
2720
|
+
function shouldDropPreload(value) {
|
|
2721
|
+
const unquoted = stripQuotes(value);
|
|
2722
|
+
if (!unquoted) return false;
|
|
2723
|
+
let path = unquoted;
|
|
2724
|
+
if (path.startsWith('file://')) try {
|
|
2725
|
+
path = fileURLToPath(path);
|
|
2726
|
+
} catch {
|
|
2727
|
+
return false;
|
|
2728
|
+
}
|
|
2729
|
+
return isAbsolute(path) && !existsSync(path);
|
|
2730
|
+
}
|
|
2731
|
+
function stripQuotes(value) {
|
|
2732
|
+
const first = value[0];
|
|
2733
|
+
const last = value[value.length - 1];
|
|
2734
|
+
if ('"' === first && '"' === last || "'" === first && "'" === last) return value.slice(1, -1);
|
|
2735
|
+
return value;
|
|
2736
|
+
}
|
|
2737
|
+
function buildStream(filename, workerData, workerOpts, sync, name) {
|
|
2738
|
+
if (!workerOpts.execArgv && hasPreloadFlags() && void 0 === __webpack_require__.c[__webpack_require__.s]) workerOpts = {
|
|
2739
|
+
...workerOpts,
|
|
2740
|
+
execArgv: []
|
|
2741
|
+
};
|
|
2742
|
+
if (!workerOpts.env && process.env.NODE_OPTIONS) {
|
|
2743
|
+
const nodeOptions = sanitizeNodeOptions(process.env.NODE_OPTIONS);
|
|
2744
|
+
if (nodeOptions !== process.env.NODE_OPTIONS) workerOpts = {
|
|
2745
|
+
...workerOpts,
|
|
2746
|
+
env: {
|
|
2747
|
+
...process.env,
|
|
2748
|
+
NODE_OPTIONS: nodeOptions
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
workerOpts = {
|
|
2753
|
+
...workerOpts,
|
|
2754
|
+
name
|
|
2755
|
+
};
|
|
2668
2756
|
const stream = new ThreadStream({
|
|
2669
2757
|
filename,
|
|
2670
2758
|
workerData,
|
|
@@ -2708,7 +2796,7 @@ var __webpack_modules__ = {
|
|
|
2708
2796
|
const callers = 'string' == typeof caller ? [
|
|
2709
2797
|
caller
|
|
2710
2798
|
] : caller;
|
|
2711
|
-
const bundlerOverrides = '__bundlerPathsOverrides'
|
|
2799
|
+
const bundlerOverrides = 'object' == typeof globalThis && Object.prototype.hasOwnProperty.call(globalThis, '__bundlerPathsOverrides') && globalThis.__bundlerPathsOverrides && 'object' == typeof globalThis.__bundlerPathsOverrides ? globalThis.__bundlerPathsOverrides : Object.create(null);
|
|
2712
2800
|
let target = fullOptions.target;
|
|
2713
2801
|
if (target && targets) throw new Error('only one of target or targets can be specified');
|
|
2714
2802
|
if (targets) {
|
|
@@ -2734,7 +2822,8 @@ var __webpack_modules__ = {
|
|
|
2734
2822
|
if (levels) options.levels = levels;
|
|
2735
2823
|
if (dedupe) options.dedupe = dedupe;
|
|
2736
2824
|
options.pinoWillSendConfig = true;
|
|
2737
|
-
|
|
2825
|
+
const name = targets || pipeline ? 'pino.transport' : target;
|
|
2826
|
+
return buildStream(fixTarget(target), options, worker, sync, name);
|
|
2738
2827
|
function fixTarget(origin) {
|
|
2739
2828
|
origin = bundlerOverrides[origin] || origin;
|
|
2740
2829
|
if (isAbsolute(origin) || 0 === origin.indexOf('file://')) return origin;
|
|
@@ -2753,20 +2842,20 @@ var __webpack_modules__ = {
|
|
|
2753
2842
|
}
|
|
2754
2843
|
module1.exports = transport;
|
|
2755
2844
|
},
|
|
2756
|
-
"../../node_modules/.pnpm/pino@10.1
|
|
2845
|
+
"../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2757
2846
|
"use strict";
|
|
2758
2847
|
const os = __webpack_require__("node:os");
|
|
2759
|
-
const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.
|
|
2760
|
-
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2761
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2762
|
-
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2763
|
-
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2764
|
-
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2848
|
+
const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
2849
|
+
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js");
|
|
2850
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js");
|
|
2851
|
+
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js");
|
|
2852
|
+
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js");
|
|
2853
|
+
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js");
|
|
2765
2854
|
const { configure } = __webpack_require__("../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js");
|
|
2766
|
-
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2767
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2768
|
-
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2769
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2855
|
+
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js");
|
|
2856
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js");
|
|
2857
|
+
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js");
|
|
2858
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js");
|
|
2770
2859
|
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;
|
|
2771
2860
|
const { epochTime, nullTime } = time;
|
|
2772
2861
|
const { pid } = process;
|
|
@@ -2900,8 +2989,8 @@ var __webpack_modules__ = {
|
|
|
2900
2989
|
dest.dest = normalizeDestFileDescriptor(dest.dest || process.stdout.fd);
|
|
2901
2990
|
return buildSafeSonicBoom(dest);
|
|
2902
2991
|
};
|
|
2903
|
-
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2904
|
-
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.1
|
|
2992
|
+
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js");
|
|
2993
|
+
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js");
|
|
2905
2994
|
module1.exports.levels = mappings();
|
|
2906
2995
|
module1.exports.stdSerializers = serializers;
|
|
2907
2996
|
module1.exports.stdTimeFunctions = Object.assign({}, time);
|
|
@@ -3335,9 +3424,11 @@ var __webpack_modules__ = {
|
|
|
3335
3424
|
SonicBoom.default = SonicBoom;
|
|
3336
3425
|
module1.exports = SonicBoom;
|
|
3337
3426
|
},
|
|
3338
|
-
"../../node_modules/.pnpm/thread-stream@
|
|
3427
|
+
"../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json" (module1) {
|
|
3339
3428
|
"use strict";
|
|
3340
|
-
module1.exports =
|
|
3429
|
+
module1.exports = {
|
|
3430
|
+
version: "4.0.0"
|
|
3431
|
+
};
|
|
3341
3432
|
}
|
|
3342
3433
|
};
|
|
3343
3434
|
var __webpack_module_cache__ = {};
|
|
@@ -3350,5 +3441,6 @@ function __webpack_require__(moduleId) {
|
|
|
3350
3441
|
__webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
|
|
3351
3442
|
return module1.exports;
|
|
3352
3443
|
}
|
|
3353
|
-
|
|
3444
|
+
__webpack_require__.c = __webpack_module_cache__;
|
|
3445
|
+
var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/file.js");
|
|
3354
3446
|
module.exports = __webpack_exports__;
|