@rife/logger 0.0.6-beta.18 → 0.0.6-beta.19
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/worker/pino-file.cjs +127 -91
- package/dist/cjs/pino/worker/pino-pretty.cjs +497 -265
- package/dist/cjs/pino/worker/pino-rotate.cjs +7 -5
- package/dist/cjs/pino/worker/pino-worker.cjs +133 -97
- package/dist/cjs/pino/worker/thread-stream.cjs +6 -6
- package/dist/esm/pino/index.mjs +3 -8
- package/dist/esm/pino/rotate.mjs +3 -8
- package/dist/esm/pino/worker/pino-file.cjs +127 -91
- package/dist/esm/pino/worker/pino-pretty.cjs +497 -265
- package/dist/esm/pino/worker/pino-rotate.cjs +7 -5
- package/dist/esm/pino/worker/pino-worker.cjs +133 -97
- package/dist/esm/pino/worker/thread-stream.cjs +6 -6
- package/dist/worker/pino-file.cjs +127 -91
- package/dist/worker/pino-pretty.cjs +497 -265
- package/dist/worker/pino-rotate.cjs +7 -5
- package/dist/worker/pino-worker.cjs +133 -97
- package/dist/worker/thread-stream.cjs +6 -6
- package/package.json +6 -6
- package/tsconfig.json +2 -1
- package/dist/esm/rslib-runtime.mjs +0 -19
|
@@ -26,12 +26,12 @@ var __webpack_modules__ = {
|
|
|
26
26
|
"use strict";
|
|
27
27
|
const WAIT_MS = 10000;
|
|
28
28
|
function wait(state, index, expected, timeout, done) {
|
|
29
|
-
const max =
|
|
29
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
30
30
|
const check = ()=>{
|
|
31
31
|
const current = Atomics.load(state, index);
|
|
32
32
|
if (current === expected) return void done(null, 'ok');
|
|
33
|
-
if (
|
|
34
|
-
const remaining =
|
|
33
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
34
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
35
35
|
const result = Atomics.waitAsync(state, index, current, remaining);
|
|
36
36
|
if (result.async) result.value.then(check);
|
|
37
37
|
else setImmediate(check);
|
|
@@ -39,12 +39,12 @@ var __webpack_modules__ = {
|
|
|
39
39
|
check();
|
|
40
40
|
}
|
|
41
41
|
function waitDiff(state, index, expected, timeout, done) {
|
|
42
|
-
const max =
|
|
42
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
43
43
|
const check = ()=>{
|
|
44
44
|
const current = Atomics.load(state, index);
|
|
45
45
|
if (current !== expected) return void done(null, 'ok');
|
|
46
|
-
if (
|
|
47
|
-
const remaining =
|
|
46
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
47
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
48
48
|
const result = Atomics.waitAsync(state, index, expected, remaining);
|
|
49
49
|
if (result.async) result.value.then((res)=>{
|
|
50
50
|
if ('ok' === res) return void done(null, 'ok');
|
|
@@ -498,7 +498,7 @@ var __webpack_modules__ = {
|
|
|
498
498
|
++i;
|
|
499
499
|
}
|
|
500
500
|
if (-1 === lastPos) return f;
|
|
501
|
-
if (lastPos < flen) str += f.slice(lastPos);
|
|
501
|
+
else if (lastPos < flen) str += f.slice(lastPos);
|
|
502
502
|
return str;
|
|
503
503
|
}
|
|
504
504
|
},
|
|
@@ -1364,8 +1364,7 @@ var __webpack_modules__ = {
|
|
|
1364
1364
|
flushSync(stream);
|
|
1365
1365
|
resetIndexes(stream);
|
|
1366
1366
|
continue;
|
|
1367
|
-
}
|
|
1368
|
-
if (leftover < 0) throw new Error('overwritten');
|
|
1367
|
+
} else if (leftover < 0) throw new Error('overwritten');
|
|
1369
1368
|
write(stream, leftover, cb);
|
|
1370
1369
|
}
|
|
1371
1370
|
}
|
|
@@ -1398,12 +1397,12 @@ var __webpack_modules__ = {
|
|
|
1398
1397
|
"use strict";
|
|
1399
1398
|
const WAIT_MS = 10000;
|
|
1400
1399
|
function wait(state, index, expected, timeout, done) {
|
|
1401
|
-
const max =
|
|
1400
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
1402
1401
|
const check = ()=>{
|
|
1403
1402
|
const current = Atomics.load(state, index);
|
|
1404
1403
|
if (current === expected) return void done(null, 'ok');
|
|
1405
|
-
if (
|
|
1406
|
-
const remaining =
|
|
1404
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
1405
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1407
1406
|
const result = Atomics.waitAsync(state, index, current, remaining);
|
|
1408
1407
|
if (result.async) result.value.then(check);
|
|
1409
1408
|
else setImmediate(check);
|
|
@@ -1411,12 +1410,12 @@ var __webpack_modules__ = {
|
|
|
1411
1410
|
check();
|
|
1412
1411
|
}
|
|
1413
1412
|
function waitDiff(state, index, expected, timeout, done) {
|
|
1414
|
-
const max =
|
|
1413
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
1415
1414
|
const check = ()=>{
|
|
1416
1415
|
const current = Atomics.load(state, index);
|
|
1417
1416
|
if (current !== expected) return void done(null, 'ok');
|
|
1418
|
-
if (
|
|
1419
|
-
const remaining =
|
|
1417
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
1418
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1420
1419
|
const result = Atomics.waitAsync(state, index, expected, remaining);
|
|
1421
1420
|
if (result.async) result.value.then((res)=>{
|
|
1422
1421
|
if ('ok' === res) return void done(null, 'ok');
|
|
@@ -1475,6 +1474,10 @@ var __webpack_modules__ = {
|
|
|
1475
1474
|
"use strict";
|
|
1476
1475
|
module1.exports = require("node:url");
|
|
1477
1476
|
},
|
|
1477
|
+
"node:util" (module1) {
|
|
1478
|
+
"use strict";
|
|
1479
|
+
module1.exports = require("node:util");
|
|
1480
|
+
},
|
|
1478
1481
|
path (module1) {
|
|
1479
1482
|
"use strict";
|
|
1480
1483
|
module1.exports = require("path");
|
|
@@ -1531,7 +1534,7 @@ var __webpack_modules__ = {
|
|
|
1531
1534
|
if (!err) return;
|
|
1532
1535
|
const cause = err.cause;
|
|
1533
1536
|
if ('function' != typeof cause) return isErrorLike(cause) ? cause : void 0;
|
|
1534
|
-
{
|
|
1537
|
+
else {
|
|
1535
1538
|
const causeResult = err.cause();
|
|
1536
1539
|
return isErrorLike(causeResult) ? causeResult : void 0;
|
|
1537
1540
|
}
|
|
@@ -1542,8 +1545,10 @@ var __webpack_modules__ = {
|
|
|
1542
1545
|
if (seen.has(err)) return stack + '\ncauses have become circular...';
|
|
1543
1546
|
const cause = getErrorCause(err);
|
|
1544
1547
|
if (!cause) return stack;
|
|
1545
|
-
|
|
1546
|
-
|
|
1548
|
+
else {
|
|
1549
|
+
seen.add(err);
|
|
1550
|
+
return stack + '\ncaused by: ' + _stackWithCauses(cause, seen);
|
|
1551
|
+
}
|
|
1547
1552
|
};
|
|
1548
1553
|
const stackWithCauses = (err)=>_stackWithCauses(err, new Set());
|
|
1549
1554
|
const _messageWithCauses = (err, seen, skip)=>{
|
|
@@ -1552,7 +1557,7 @@ var __webpack_modules__ = {
|
|
|
1552
1557
|
if (seen.has(err)) return message + ': ...';
|
|
1553
1558
|
const cause = getErrorCause(err);
|
|
1554
1559
|
if (!cause) return message;
|
|
1555
|
-
{
|
|
1560
|
+
else {
|
|
1556
1561
|
seen.add(err);
|
|
1557
1562
|
const skipIfVErrorStyleCause = 'function' == typeof err.cause;
|
|
1558
1563
|
return message + (skipIfVErrorStyleCause ? '' : ': ') + _messageWithCauses(cause, seen, skipIfVErrorStyleCause);
|
|
@@ -1797,9 +1802,9 @@ var __webpack_modules__ = {
|
|
|
1797
1802
|
};
|
|
1798
1803
|
}
|
|
1799
1804
|
},
|
|
1800
|
-
"../../node_modules/.pnpm/pino@10.
|
|
1805
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/file.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1801
1806
|
"use strict";
|
|
1802
|
-
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
1807
|
+
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/pino.js");
|
|
1803
1808
|
const { once } = __webpack_require__("node:events");
|
|
1804
1809
|
module1.exports = async function(opts = {}) {
|
|
1805
1810
|
const destOpts = Object.assign({}, opts, {
|
|
@@ -1812,12 +1817,15 @@ var __webpack_modules__ = {
|
|
|
1812
1817
|
return destination;
|
|
1813
1818
|
};
|
|
1814
1819
|
},
|
|
1815
|
-
"../../node_modules/.pnpm/pino@10.
|
|
1820
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1816
1821
|
"use strict";
|
|
1822
|
+
const util = __webpack_require__("node:util");
|
|
1823
|
+
const getCallSites = util.getCallSites ?? util.getCallSite;
|
|
1817
1824
|
function noOpPrepareStackTrace(_, stack) {
|
|
1818
1825
|
return stack;
|
|
1819
1826
|
}
|
|
1820
1827
|
module1.exports = function() {
|
|
1828
|
+
if (getCallSites) return getCallSites().slice(2).map((callSite)=>callSite.scriptName);
|
|
1821
1829
|
const originalPrepare = Error.prepareStackTrace;
|
|
1822
1830
|
Error.prepareStackTrace = noOpPrepareStackTrace;
|
|
1823
1831
|
const stack = new Error().stack;
|
|
@@ -1829,7 +1837,7 @@ var __webpack_modules__ = {
|
|
|
1829
1837
|
return fileNames;
|
|
1830
1838
|
};
|
|
1831
1839
|
},
|
|
1832
|
-
"../../node_modules/.pnpm/pino@10.
|
|
1840
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js" (module1) {
|
|
1833
1841
|
const DEFAULT_LEVELS = {
|
|
1834
1842
|
trace: 10,
|
|
1835
1843
|
debug: 20,
|
|
@@ -1847,11 +1855,11 @@ var __webpack_modules__ = {
|
|
|
1847
1855
|
SORTING_ORDER
|
|
1848
1856
|
};
|
|
1849
1857
|
},
|
|
1850
|
-
"../../node_modules/.pnpm/pino@10.
|
|
1858
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1851
1859
|
"use strict";
|
|
1852
|
-
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
1853
|
-
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
1854
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
1860
|
+
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
1861
|
+
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
1862
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
1855
1863
|
const levelMethods = {
|
|
1856
1864
|
fatal: (hook)=>{
|
|
1857
1865
|
const logFatal = genLog(DEFAULT_LEVELS.fatal, hook);
|
|
@@ -1999,16 +2007,16 @@ var __webpack_modules__ = {
|
|
|
1999
2007
|
assertLevelComparison
|
|
2000
2008
|
};
|
|
2001
2009
|
},
|
|
2002
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2010
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js" (module1) {
|
|
2003
2011
|
"use strict";
|
|
2004
2012
|
module1.exports = {
|
|
2005
|
-
version: '10.
|
|
2013
|
+
version: '10.4.0'
|
|
2006
2014
|
};
|
|
2007
2015
|
},
|
|
2008
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2016
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/multistream.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2009
2017
|
"use strict";
|
|
2010
2018
|
const metadata = Symbol.for('pino.metadata');
|
|
2011
|
-
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2019
|
+
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
2012
2020
|
const DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
|
|
2013
2021
|
function multistream(streamsArray, opts) {
|
|
2014
2022
|
streamsArray = streamsArray || [];
|
|
@@ -2040,7 +2048,7 @@ var __webpack_modules__ = {
|
|
|
2040
2048
|
return res;
|
|
2041
2049
|
function write(data) {
|
|
2042
2050
|
let dest;
|
|
2043
|
-
const level = this.lastLevel;
|
|
2051
|
+
const level = 'string' == typeof this.lastLevel ? (this.streamLevels || streamLevels)[this.lastLevel] : this.lastLevel;
|
|
2044
2052
|
const { streams } = this;
|
|
2045
2053
|
let recordedLevel = 0;
|
|
2046
2054
|
let stream;
|
|
@@ -2069,7 +2077,7 @@ var __webpack_modules__ = {
|
|
|
2069
2077
|
for (const { stream } of this.streams)if ('function' == typeof stream.flushSync) stream.flushSync();
|
|
2070
2078
|
}
|
|
2071
2079
|
function add(dest) {
|
|
2072
|
-
if (!dest) return
|
|
2080
|
+
if (!dest) return this;
|
|
2073
2081
|
const isStream = 'function' == typeof dest.write || dest.stream;
|
|
2074
2082
|
const stream_ = dest.write ? dest : dest.stream;
|
|
2075
2083
|
if (!isStream) throw Error('stream object needs to implement either StreamEntry or DestinationStream interface');
|
|
@@ -2085,7 +2093,7 @@ var __webpack_modules__ = {
|
|
|
2085
2093
|
streams.unshift(dest_);
|
|
2086
2094
|
streams.sort(compareByLevel);
|
|
2087
2095
|
this.minLevel = streams[0].level;
|
|
2088
|
-
return
|
|
2096
|
+
return this;
|
|
2089
2097
|
}
|
|
2090
2098
|
function remove(id) {
|
|
2091
2099
|
const { streams } = this;
|
|
@@ -2095,7 +2103,7 @@ var __webpack_modules__ = {
|
|
|
2095
2103
|
streams.sort(compareByLevel);
|
|
2096
2104
|
this.minLevel = streams.length > 0 ? streams[0].level : -1;
|
|
2097
2105
|
}
|
|
2098
|
-
return
|
|
2106
|
+
return this;
|
|
2099
2107
|
}
|
|
2100
2108
|
function end() {
|
|
2101
2109
|
for (const { stream } of this.streams){
|
|
@@ -2113,12 +2121,14 @@ var __webpack_modules__ = {
|
|
|
2113
2121
|
write,
|
|
2114
2122
|
add,
|
|
2115
2123
|
remove,
|
|
2124
|
+
emit,
|
|
2125
|
+
flushSync,
|
|
2126
|
+
end,
|
|
2116
2127
|
minLevel: level,
|
|
2117
2128
|
streams,
|
|
2118
2129
|
clone,
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
[metadata]: true
|
|
2130
|
+
[metadata]: true,
|
|
2131
|
+
streamLevels
|
|
2122
2132
|
};
|
|
2123
2133
|
}
|
|
2124
2134
|
}
|
|
@@ -2136,14 +2146,14 @@ var __webpack_modules__ = {
|
|
|
2136
2146
|
}
|
|
2137
2147
|
module1.exports = multistream;
|
|
2138
2148
|
},
|
|
2139
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2149
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/proto.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2140
2150
|
"use strict";
|
|
2141
2151
|
const { EventEmitter } = __webpack_require__("node:events");
|
|
2142
|
-
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.
|
|
2143
|
-
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2144
|
-
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2145
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2146
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2152
|
+
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.4.0/node_modules/pino/lib/symbols.js");
|
|
2153
|
+
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js");
|
|
2154
|
+
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
2155
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js");
|
|
2156
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js");
|
|
2147
2157
|
const constructor = class {
|
|
2148
2158
|
};
|
|
2149
2159
|
const prototype = {
|
|
@@ -2289,10 +2299,10 @@ var __webpack_modules__ = {
|
|
|
2289
2299
|
else if (cb) cb();
|
|
2290
2300
|
}
|
|
2291
2301
|
},
|
|
2292
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2302
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2293
2303
|
"use strict";
|
|
2294
2304
|
const Redact = __webpack_require__("../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js");
|
|
2295
|
-
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2305
|
+
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2296
2306
|
const rx = /[^.[\]]+|\[([^[\]]*?)\]/g;
|
|
2297
2307
|
const CENSOR = '[Redacted]';
|
|
2298
2308
|
const strict = false;
|
|
@@ -2318,8 +2328,8 @@ var __webpack_modules__ = {
|
|
|
2318
2328
|
});
|
|
2319
2329
|
o[ns].push(nextPath);
|
|
2320
2330
|
return o;
|
|
2321
|
-
},
|
|
2322
|
-
const result = {
|
|
2331
|
+
}, Object.create(null));
|
|
2332
|
+
const result = Object.assign(Object.create(null), {
|
|
2323
2333
|
[redactFmtSym]: Redact({
|
|
2324
2334
|
paths,
|
|
2325
2335
|
censor,
|
|
@@ -2327,7 +2337,7 @@ var __webpack_modules__ = {
|
|
|
2327
2337
|
strict,
|
|
2328
2338
|
remove
|
|
2329
2339
|
})
|
|
2330
|
-
};
|
|
2340
|
+
});
|
|
2331
2341
|
const topCensor = (...args)=>'function' == typeof censor ? serialize(censor(...args)) : serialize(censor);
|
|
2332
2342
|
return [
|
|
2333
2343
|
...Object.keys(shape),
|
|
@@ -2371,7 +2381,7 @@ var __webpack_modules__ = {
|
|
|
2371
2381
|
}
|
|
2372
2382
|
module1.exports = redaction;
|
|
2373
2383
|
},
|
|
2374
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2384
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js" (module1) {
|
|
2375
2385
|
"use strict";
|
|
2376
2386
|
const setLevelSym = Symbol('pino.setLevel');
|
|
2377
2387
|
const getLevelSym = Symbol('pino.getLevel');
|
|
@@ -2404,6 +2414,7 @@ var __webpack_modules__ = {
|
|
|
2404
2414
|
const formattersSym = Symbol.for('pino.formatters');
|
|
2405
2415
|
const hooksSym = Symbol.for('pino.hooks');
|
|
2406
2416
|
const needsMetadataGsym = Symbol.for('pino.metadata');
|
|
2417
|
+
const transportUsesMultistreamSym = Symbol.for('pino.transport.usesMultistream');
|
|
2407
2418
|
module1.exports = {
|
|
2408
2419
|
setLevelSym,
|
|
2409
2420
|
getLevelSym,
|
|
@@ -2435,10 +2446,11 @@ var __webpack_modules__ = {
|
|
|
2435
2446
|
hooksSym,
|
|
2436
2447
|
nestedKeyStrSym,
|
|
2437
2448
|
mixinMergeStrategySym,
|
|
2438
|
-
msgPrefixSym
|
|
2449
|
+
msgPrefixSym,
|
|
2450
|
+
transportUsesMultistreamSym
|
|
2439
2451
|
};
|
|
2440
2452
|
},
|
|
2441
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2453
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/time.js" (module1) {
|
|
2442
2454
|
"use strict";
|
|
2443
2455
|
const nullTime = ()=>'';
|
|
2444
2456
|
const epochTime = ()=>`,"time":${Date.now()}`;
|
|
@@ -2471,16 +2483,16 @@ var __webpack_modules__ = {
|
|
|
2471
2483
|
isoTimeNano
|
|
2472
2484
|
};
|
|
2473
2485
|
},
|
|
2474
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2486
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2475
2487
|
"use strict";
|
|
2476
2488
|
const diagChan = __webpack_require__("node:diagnostics_channel");
|
|
2477
2489
|
const format = __webpack_require__("../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js");
|
|
2478
2490
|
const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
2479
2491
|
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.1/node_modules/sonic-boom/index.js");
|
|
2480
2492
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2481
|
-
const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2493
|
+
const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2482
2494
|
const { isMainThread } = __webpack_require__("worker_threads");
|
|
2483
|
-
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2495
|
+
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js");
|
|
2484
2496
|
const [nodeMajor] = process.versions.node.split('.').map((v)=>Number(v));
|
|
2485
2497
|
const asJsonChan = diagChan.tracingChannel('pino_asJson');
|
|
2486
2498
|
const asString = nodeMajor >= 25 ? (str)=>JSON.stringify(str) : _asString;
|
|
@@ -2490,7 +2502,7 @@ var __webpack_modules__ = {
|
|
|
2490
2502
|
return function(...args) {
|
|
2491
2503
|
hook.call(this, args, LOG, level);
|
|
2492
2504
|
};
|
|
2493
|
-
function LOG(o, ...
|
|
2505
|
+
function LOG(o, ...n) {
|
|
2494
2506
|
if ('object' == typeof o) {
|
|
2495
2507
|
let msg = o;
|
|
2496
2508
|
if (null !== o) {
|
|
@@ -2498,19 +2510,19 @@ var __webpack_modules__ = {
|
|
|
2498
2510
|
else if ('function' == typeof o.setHeader) o = mapHttpResponse(o);
|
|
2499
2511
|
}
|
|
2500
2512
|
let formatParams;
|
|
2501
|
-
if (null === msg && 0 ===
|
|
2513
|
+
if (null === msg && 0 === n.length) formatParams = [
|
|
2502
2514
|
null
|
|
2503
2515
|
];
|
|
2504
2516
|
else {
|
|
2505
|
-
msg =
|
|
2506
|
-
formatParams =
|
|
2517
|
+
msg = n.shift();
|
|
2518
|
+
formatParams = n;
|
|
2507
2519
|
}
|
|
2508
2520
|
if ('string' == typeof this[msgPrefixSym] && null != msg) msg = this[msgPrefixSym] + msg;
|
|
2509
2521
|
this[writeSym](o, format(msg, formatParams, this[formatOptsSym]), level);
|
|
2510
2522
|
} else {
|
|
2511
|
-
let msg = void 0 === o ?
|
|
2523
|
+
let msg = void 0 === o ? n.shift() : o;
|
|
2512
2524
|
if ('string' == typeof this[msgPrefixSym] && null != msg) msg = this[msgPrefixSym] + msg;
|
|
2513
|
-
this[writeSym](null, format(msg,
|
|
2525
|
+
this[writeSym](null, format(msg, n, this[formatOptsSym]), level);
|
|
2514
2526
|
}
|
|
2515
2527
|
}
|
|
2516
2528
|
}
|
|
@@ -2606,7 +2618,7 @@ var __webpack_modules__ = {
|
|
|
2606
2618
|
}
|
|
2607
2619
|
}
|
|
2608
2620
|
if (this[nestedKeySym] && propStr) return data + this[nestedKeyStrSym] + propStr.slice(1) + '}' + msgStr + end;
|
|
2609
|
-
return data + propStr + msgStr + end;
|
|
2621
|
+
else return data + propStr + msgStr + end;
|
|
2610
2622
|
}
|
|
2611
2623
|
function asChindings(instance, bindings) {
|
|
2612
2624
|
let value;
|
|
@@ -2625,7 +2637,7 @@ var __webpack_modules__ = {
|
|
|
2625
2637
|
value = serializers[key] ? serializers[key](value) : value;
|
|
2626
2638
|
value = (stringifiers[key] || wildcardStringifier || stringify)(value, stringifySafe);
|
|
2627
2639
|
if (void 0 === value) continue;
|
|
2628
|
-
data += ',
|
|
2640
|
+
data += ',' + asString(key) + ':' + value;
|
|
2629
2641
|
}
|
|
2630
2642
|
}
|
|
2631
2643
|
return data;
|
|
@@ -2691,7 +2703,7 @@ var __webpack_modules__ = {
|
|
|
2691
2703
|
});
|
|
2692
2704
|
}
|
|
2693
2705
|
opts = Object.assign({}, defaultOptions, opts);
|
|
2694
|
-
opts.serializers = Object.assign(
|
|
2706
|
+
opts.serializers = Object.assign(Object.create(null), defaultOptions.serializers, opts.serializers);
|
|
2695
2707
|
opts.formatters = Object.assign({}, defaultOptions.formatters, opts.formatters);
|
|
2696
2708
|
if (opts.prettyPrint) throw new Error('prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)');
|
|
2697
2709
|
const { enabled, onChild } = opts;
|
|
@@ -2743,16 +2755,17 @@ var __webpack_modules__ = {
|
|
|
2743
2755
|
normalizeDestFileDescriptor
|
|
2744
2756
|
};
|
|
2745
2757
|
},
|
|
2746
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2758
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2747
2759
|
"use strict";
|
|
2748
2760
|
const { createRequire } = __webpack_require__("module");
|
|
2749
2761
|
const { existsSync } = __webpack_require__("node:fs");
|
|
2750
|
-
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2762
|
+
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js");
|
|
2751
2763
|
const { join, isAbsolute, sep } = __webpack_require__("node:path");
|
|
2752
2764
|
const { fileURLToPath } = __webpack_require__("node:url");
|
|
2753
2765
|
const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
|
|
2754
2766
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2755
2767
|
const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.2.0/node_modules/thread-stream/index.js");
|
|
2768
|
+
const { transportUsesMultistreamSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2756
2769
|
function setupOnExit(stream) {
|
|
2757
2770
|
onExit.register(stream, autoEnd);
|
|
2758
2771
|
onExit.registerBeforeExit(stream, flush);
|
|
@@ -2877,6 +2890,7 @@ var __webpack_modules__ = {
|
|
|
2877
2890
|
const options = {
|
|
2878
2891
|
...fullOptions.options
|
|
2879
2892
|
};
|
|
2893
|
+
let usesMultistream = false;
|
|
2880
2894
|
const callers = 'string' == typeof caller ? [
|
|
2881
2895
|
caller
|
|
2882
2896
|
] : caller;
|
|
@@ -2894,6 +2908,9 @@ var __webpack_modules__ = {
|
|
|
2894
2908
|
level: dest.level,
|
|
2895
2909
|
target: fixTarget(t.target)
|
|
2896
2910
|
})));
|
|
2911
|
+
const targetsHaveLevel = options.targets.some((t)=>null != t.level);
|
|
2912
|
+
const pipelinesHaveLevel = options.pipelines.some((p)=>p.some((t)=>null != t.level));
|
|
2913
|
+
usesMultistream = options.targets.length + options.pipelines.length > 1 || targetsHaveLevel || pipelinesHaveLevel;
|
|
2897
2914
|
} else if (pipeline) {
|
|
2898
2915
|
target = bundlerOverrides['pino-worker'] || join(__dirname, 'worker.js');
|
|
2899
2916
|
options.pipelines = [
|
|
@@ -2907,7 +2924,9 @@ var __webpack_modules__ = {
|
|
|
2907
2924
|
if (dedupe) options.dedupe = dedupe;
|
|
2908
2925
|
options.pinoWillSendConfig = true;
|
|
2909
2926
|
const name = targets || pipeline ? 'pino.transport' : target;
|
|
2910
|
-
|
|
2927
|
+
const stream = buildStream(fixTarget(target), options, worker, sync, name);
|
|
2928
|
+
if (usesMultistream) stream[transportUsesMultistreamSym] = true;
|
|
2929
|
+
return stream;
|
|
2911
2930
|
function fixTarget(origin) {
|
|
2912
2931
|
origin = bundlerOverrides[origin] || origin;
|
|
2913
2932
|
if (isAbsolute(origin) || 0 === origin.indexOf('file://')) return origin;
|
|
@@ -2926,21 +2945,21 @@ var __webpack_modules__ = {
|
|
|
2926
2945
|
}
|
|
2927
2946
|
module1.exports = transport;
|
|
2928
2947
|
},
|
|
2929
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2948
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/pino.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2930
2949
|
"use strict";
|
|
2931
2950
|
const os = __webpack_require__("node:os");
|
|
2932
2951
|
const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
2933
|
-
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2934
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2935
|
-
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2936
|
-
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2937
|
-
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2952
|
+
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js");
|
|
2953
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js");
|
|
2954
|
+
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/time.js");
|
|
2955
|
+
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/proto.js");
|
|
2956
|
+
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2938
2957
|
const { configure } = __webpack_require__("../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js");
|
|
2939
|
-
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2940
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2941
|
-
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2942
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2943
|
-
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;
|
|
2958
|
+
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js");
|
|
2959
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
2960
|
+
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
2961
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js");
|
|
2962
|
+
const { chindingsSym, redactFmtSym, serializersSym, timeSym, timeSliceIndexSym, streamSym, stringifySym, stringifySafeSym, stringifiersSym, setLevelSym, endSym, formatOptsSym, messageKeySym, errorKeySym, nestedKeySym, mixinSym, levelCompSym, useOnlyCustomLevelsSym, formattersSym, hooksSym, nestedKeyStrSym, mixinMergeStrategySym, msgPrefixSym, transportUsesMultistreamSym } = symbols;
|
|
2944
2963
|
const { epochTime, nullTime } = time;
|
|
2945
2964
|
const { pid } = process;
|
|
2946
2965
|
const hostname = os.hostname();
|
|
@@ -2997,7 +3016,7 @@ var __webpack_modules__ = {
|
|
|
2997
3016
|
const stringifyFn = stringify.bind({
|
|
2998
3017
|
[stringifySafeSym]: stringifySafe
|
|
2999
3018
|
});
|
|
3000
|
-
const stringifiers = redact ? redaction(redact, stringifyFn) :
|
|
3019
|
+
const stringifiers = redact ? Object.assign(Object.create(null), redaction(redact, stringifyFn)) : Object.create(null);
|
|
3001
3020
|
const formatOpts = redact ? {
|
|
3002
3021
|
stringify: stringifiers[redactFmtSym]
|
|
3003
3022
|
} : {
|
|
@@ -3023,6 +3042,21 @@ var __webpack_modules__ = {
|
|
|
3023
3042
|
if (msgPrefix && 'string' != typeof msgPrefix) throw Error(`Unknown msgPrefix type "${typeof msgPrefix}" - expected "string"`);
|
|
3024
3043
|
assertDefaultLevelFound(level, customLevels, useOnlyCustomLevels);
|
|
3025
3044
|
const levels = mappings(customLevels, useOnlyCustomLevels);
|
|
3045
|
+
if (stream && true === stream[transportUsesMultistreamSym]) {
|
|
3046
|
+
let sampleLabel = 'string' == typeof level ? level : void 0;
|
|
3047
|
+
if (!sampleLabel || void 0 === levels[sampleLabel]) sampleLabel = Object.keys(levels)[0];
|
|
3048
|
+
const sampleNumber = levels[sampleLabel];
|
|
3049
|
+
let ok = false;
|
|
3050
|
+
try {
|
|
3051
|
+
const formatted = formatters.level(sampleLabel, sampleNumber);
|
|
3052
|
+
ok = formatted && 'object' == typeof formatted && formatted.level === sampleNumber;
|
|
3053
|
+
} catch {
|
|
3054
|
+
ok = false;
|
|
3055
|
+
}
|
|
3056
|
+
if (!ok) process.emitWarning('custom formatters.level detected with multiple transport targets/pipelines; ensure logs include a numeric "level" field or they may be dropped', {
|
|
3057
|
+
code: 'PINO_TRANSPORT_MULTI_TARGETS_LEVEL_FORMATTER'
|
|
3058
|
+
});
|
|
3059
|
+
}
|
|
3026
3060
|
if ('function' == typeof stream.emit) stream.emit('message', {
|
|
3027
3061
|
code: 'PINO_CONFIG',
|
|
3028
3062
|
config: {
|
|
@@ -3070,11 +3104,13 @@ var __webpack_modules__ = {
|
|
|
3070
3104
|
dest: normalizeDestFileDescriptor(dest),
|
|
3071
3105
|
minLength: 0
|
|
3072
3106
|
});
|
|
3073
|
-
|
|
3074
|
-
|
|
3107
|
+
else {
|
|
3108
|
+
dest.dest = normalizeDestFileDescriptor(dest.dest || process.stdout.fd);
|
|
3109
|
+
return buildSafeSonicBoom(dest);
|
|
3110
|
+
}
|
|
3075
3111
|
};
|
|
3076
|
-
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3077
|
-
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3112
|
+
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js");
|
|
3113
|
+
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/multistream.js");
|
|
3078
3114
|
module1.exports.levels = mappings();
|
|
3079
3115
|
module1.exports.stdSerializers = serializers;
|
|
3080
3116
|
module1.exports.stdTimeFunctions = Object.assign({}, time);
|
|
@@ -3204,7 +3240,7 @@ var __webpack_modules__ = {
|
|
|
3204
3240
|
} else if ('string' == typeof fd) openFile(fd, this);
|
|
3205
3241
|
else throw new Error("SonicBoom supports only file descriptors and files");
|
|
3206
3242
|
if (this.minLength >= this.maxWrite) throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);
|
|
3207
|
-
this.release = (err,
|
|
3243
|
+
this.release = (err, n)=>{
|
|
3208
3244
|
if (err) {
|
|
3209
3245
|
if (('EAGAIN' === err.code || 'EBUSY' === err.code) && this.retryEAGAIN(err, this._writingBuf.length, this._len - this._writingBuf.length)) if (this.sync) try {
|
|
3210
3246
|
sleep(BUSY_WRITE_TIMEOUT);
|
|
@@ -3219,16 +3255,16 @@ var __webpack_modules__ = {
|
|
|
3219
3255
|
}
|
|
3220
3256
|
return;
|
|
3221
3257
|
}
|
|
3222
|
-
this.emit('write',
|
|
3223
|
-
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len,
|
|
3258
|
+
this.emit('write', n);
|
|
3259
|
+
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
|
|
3224
3260
|
this._len = releasedBufObj.len;
|
|
3225
3261
|
this._writingBuf = releasedBufObj.writingBuf;
|
|
3226
3262
|
if (this._writingBuf.length) {
|
|
3227
3263
|
if (!this.sync) return void fsWrite();
|
|
3228
3264
|
try {
|
|
3229
3265
|
do {
|
|
3230
|
-
const
|
|
3231
|
-
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len,
|
|
3266
|
+
const n = fsWriteSync();
|
|
3267
|
+
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
|
|
3232
3268
|
this._len = releasedBufObj.len;
|
|
3233
3269
|
this._writingBuf = releasedBufObj.writingBuf;
|
|
3234
3270
|
}while (this._writingBuf.length);
|
|
@@ -3267,10 +3303,10 @@ var __webpack_modules__ = {
|
|
|
3267
3303
|
this._periodicFlushTimer.unref();
|
|
3268
3304
|
}
|
|
3269
3305
|
}
|
|
3270
|
-
function releaseWritingBuf(writingBuf, len,
|
|
3306
|
+
function releaseWritingBuf(writingBuf, len, n) {
|
|
3271
3307
|
if ('string' == typeof writingBuf) writingBuf = Buffer.from(writingBuf);
|
|
3272
|
-
len = Math.max(len -
|
|
3273
|
-
writingBuf = writingBuf.subarray(
|
|
3308
|
+
len = Math.max(len - n, 0);
|
|
3309
|
+
writingBuf = writingBuf.subarray(n);
|
|
3274
3310
|
return {
|
|
3275
3311
|
writingBuf,
|
|
3276
3312
|
len
|
|
@@ -3419,8 +3455,8 @@ var __webpack_modules__ = {
|
|
|
3419
3455
|
while(this._bufs.length || buf.length){
|
|
3420
3456
|
if (buf.length <= 0) buf = this._bufs[0];
|
|
3421
3457
|
try {
|
|
3422
|
-
const
|
|
3423
|
-
const releasedBufObj = releaseWritingBuf(buf, this._len,
|
|
3458
|
+
const n = Buffer.isBuffer(buf) ? fs.writeSync(this.fd, buf) : fs.writeSync(this.fd, buf, 'utf8');
|
|
3459
|
+
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
3424
3460
|
buf = releasedBufObj.writingBuf;
|
|
3425
3461
|
this._len = releasedBufObj.len;
|
|
3426
3462
|
if (buf.length <= 0) this._bufs.shift();
|
|
@@ -3447,9 +3483,9 @@ var __webpack_modules__ = {
|
|
|
3447
3483
|
while(this._bufs.length || buf.length){
|
|
3448
3484
|
if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
|
|
3449
3485
|
try {
|
|
3450
|
-
const
|
|
3451
|
-
buf = buf.subarray(
|
|
3452
|
-
this._len = Math.max(this._len -
|
|
3486
|
+
const n = fs.writeSync(this.fd, buf);
|
|
3487
|
+
buf = buf.subarray(n);
|
|
3488
|
+
this._len = Math.max(this._len - n, 0);
|
|
3453
3489
|
if (buf.length <= 0) {
|
|
3454
3490
|
this._bufs.shift();
|
|
3455
3491
|
this._lens.shift();
|
|
@@ -3534,5 +3570,5 @@ function __webpack_require__(moduleId) {
|
|
|
3534
3570
|
return module1.exports;
|
|
3535
3571
|
}
|
|
3536
3572
|
__webpack_require__.c = __webpack_module_cache__;
|
|
3537
|
-
var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.
|
|
3573
|
+
var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/file.js");
|
|
3538
3574
|
module.exports = __webpack_exports__;
|