@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
|
@@ -604,11 +604,11 @@ var __webpack_modules__ = {
|
|
|
604
604
|
++i;
|
|
605
605
|
}
|
|
606
606
|
if (-1 === lastPos) return f;
|
|
607
|
-
if (lastPos < flen) str += f.slice(lastPos);
|
|
607
|
+
else if (lastPos < flen) str += f.slice(lastPos);
|
|
608
608
|
return str;
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
|
-
"../../node_modules/.pnpm/real-require@0.
|
|
611
|
+
"../../node_modules/.pnpm/real-require@1.0.0/node_modules/real-require/src/index.js" (module1) {
|
|
612
612
|
const realImport = new Function('modulePath', 'return import(modulePath)');
|
|
613
613
|
function realRequire(modulePath) {
|
|
614
614
|
if ('function' == typeof __non_webpack__require__) return __non_webpack__require__(modulePath);
|
|
@@ -1569,8 +1569,7 @@ var __webpack_modules__ = {
|
|
|
1569
1569
|
flushSync(stream);
|
|
1570
1570
|
resetIndexes(stream);
|
|
1571
1571
|
continue;
|
|
1572
|
-
}
|
|
1573
|
-
if (leftover < 0) throw new Error('overwritten');
|
|
1572
|
+
} else if (leftover < 0) throw new Error('overwritten');
|
|
1574
1573
|
write(stream, leftover, cb);
|
|
1575
1574
|
}
|
|
1576
1575
|
}
|
|
@@ -1603,12 +1602,12 @@ var __webpack_modules__ = {
|
|
|
1603
1602
|
"use strict";
|
|
1604
1603
|
const WAIT_MS = 10000;
|
|
1605
1604
|
function wait(state, index, expected, timeout, done) {
|
|
1606
|
-
const max =
|
|
1605
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
1607
1606
|
const check = ()=>{
|
|
1608
1607
|
const current = Atomics.load(state, index);
|
|
1609
1608
|
if (current === expected) return void done(null, 'ok');
|
|
1610
|
-
if (
|
|
1611
|
-
const remaining =
|
|
1609
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
1610
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1612
1611
|
const result = Atomics.waitAsync(state, index, current, remaining);
|
|
1613
1612
|
if (result.async) result.value.then(check);
|
|
1614
1613
|
else setImmediate(check);
|
|
@@ -1616,12 +1615,12 @@ var __webpack_modules__ = {
|
|
|
1616
1615
|
check();
|
|
1617
1616
|
}
|
|
1618
1617
|
function waitDiff(state, index, expected, timeout, done) {
|
|
1619
|
-
const max =
|
|
1618
|
+
const max = 1 / 0 === timeout ? 1 / 0 : Date.now() + timeout;
|
|
1620
1619
|
const check = ()=>{
|
|
1621
1620
|
const current = Atomics.load(state, index);
|
|
1622
1621
|
if (current !== expected) return void done(null, 'ok');
|
|
1623
|
-
if (
|
|
1624
|
-
const remaining =
|
|
1622
|
+
if (1 / 0 !== max && Date.now() > max) return void done(null, 'timed-out');
|
|
1623
|
+
const remaining = 1 / 0 === max ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
|
|
1625
1624
|
const result = Atomics.waitAsync(state, index, expected, remaining);
|
|
1626
1625
|
if (result.async) result.value.then((res)=>{
|
|
1627
1626
|
if ('ok' === res) return void done(null, 'ok');
|
|
@@ -1684,6 +1683,10 @@ var __webpack_modules__ = {
|
|
|
1684
1683
|
"use strict";
|
|
1685
1684
|
module1.exports = require("node:url");
|
|
1686
1685
|
},
|
|
1686
|
+
"node:util" (module1) {
|
|
1687
|
+
"use strict";
|
|
1688
|
+
module1.exports = require("node:util");
|
|
1689
|
+
},
|
|
1687
1690
|
path (module1) {
|
|
1688
1691
|
"use strict";
|
|
1689
1692
|
module1.exports = require("path");
|
|
@@ -1748,7 +1751,7 @@ var __webpack_modules__ = {
|
|
|
1748
1751
|
if (!err) return;
|
|
1749
1752
|
const cause = err.cause;
|
|
1750
1753
|
if ('function' != typeof cause) return isErrorLike(cause) ? cause : void 0;
|
|
1751
|
-
{
|
|
1754
|
+
else {
|
|
1752
1755
|
const causeResult = err.cause();
|
|
1753
1756
|
return isErrorLike(causeResult) ? causeResult : void 0;
|
|
1754
1757
|
}
|
|
@@ -1759,8 +1762,10 @@ var __webpack_modules__ = {
|
|
|
1759
1762
|
if (seen.has(err)) return stack + '\ncauses have become circular...';
|
|
1760
1763
|
const cause = getErrorCause(err);
|
|
1761
1764
|
if (!cause) return stack;
|
|
1762
|
-
|
|
1763
|
-
|
|
1765
|
+
else {
|
|
1766
|
+
seen.add(err);
|
|
1767
|
+
return stack + '\ncaused by: ' + _stackWithCauses(cause, seen);
|
|
1768
|
+
}
|
|
1764
1769
|
};
|
|
1765
1770
|
const stackWithCauses = (err)=>_stackWithCauses(err, new Set());
|
|
1766
1771
|
const _messageWithCauses = (err, seen, skip)=>{
|
|
@@ -1769,7 +1774,7 @@ var __webpack_modules__ = {
|
|
|
1769
1774
|
if (seen.has(err)) return message + ': ...';
|
|
1770
1775
|
const cause = getErrorCause(err);
|
|
1771
1776
|
if (!cause) return message;
|
|
1772
|
-
{
|
|
1777
|
+
else {
|
|
1773
1778
|
seen.add(err);
|
|
1774
1779
|
const skipIfVErrorStyleCause = 'function' == typeof err.cause;
|
|
1775
1780
|
return message + (skipIfVErrorStyleCause ? '' : ': ') + _messageWithCauses(cause, seen, skipIfVErrorStyleCause);
|
|
@@ -2014,12 +2019,15 @@ var __webpack_modules__ = {
|
|
|
2014
2019
|
};
|
|
2015
2020
|
}
|
|
2016
2021
|
},
|
|
2017
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2022
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2018
2023
|
"use strict";
|
|
2024
|
+
const util = __webpack_require__("node:util");
|
|
2025
|
+
const getCallSites = util.getCallSites ?? util.getCallSite;
|
|
2019
2026
|
function noOpPrepareStackTrace(_, stack) {
|
|
2020
2027
|
return stack;
|
|
2021
2028
|
}
|
|
2022
2029
|
module1.exports = function() {
|
|
2030
|
+
if (getCallSites) return getCallSites().slice(2).map((callSite)=>callSite.scriptName);
|
|
2023
2031
|
const originalPrepare = Error.prepareStackTrace;
|
|
2024
2032
|
Error.prepareStackTrace = noOpPrepareStackTrace;
|
|
2025
2033
|
const stack = new Error().stack;
|
|
@@ -2031,7 +2039,7 @@ var __webpack_modules__ = {
|
|
|
2031
2039
|
return fileNames;
|
|
2032
2040
|
};
|
|
2033
2041
|
},
|
|
2034
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2042
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js" (module1) {
|
|
2035
2043
|
const DEFAULT_LEVELS = {
|
|
2036
2044
|
trace: 10,
|
|
2037
2045
|
debug: 20,
|
|
@@ -2049,11 +2057,11 @@ var __webpack_modules__ = {
|
|
|
2049
2057
|
SORTING_ORDER
|
|
2050
2058
|
};
|
|
2051
2059
|
},
|
|
2052
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2060
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2053
2061
|
"use strict";
|
|
2054
|
-
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2055
|
-
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2056
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2062
|
+
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2063
|
+
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
2064
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
2057
2065
|
const levelMethods = {
|
|
2058
2066
|
fatal: (hook)=>{
|
|
2059
2067
|
const logFatal = genLog(DEFAULT_LEVELS.fatal, hook);
|
|
@@ -2201,16 +2209,16 @@ var __webpack_modules__ = {
|
|
|
2201
2209
|
assertLevelComparison
|
|
2202
2210
|
};
|
|
2203
2211
|
},
|
|
2204
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2212
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js" (module1) {
|
|
2205
2213
|
"use strict";
|
|
2206
2214
|
module1.exports = {
|
|
2207
|
-
version: '10.
|
|
2215
|
+
version: '10.4.0'
|
|
2208
2216
|
};
|
|
2209
2217
|
},
|
|
2210
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2218
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/multistream.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2211
2219
|
"use strict";
|
|
2212
2220
|
const metadata = Symbol.for('pino.metadata');
|
|
2213
|
-
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2221
|
+
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
2214
2222
|
const DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
|
|
2215
2223
|
function multistream(streamsArray, opts) {
|
|
2216
2224
|
streamsArray = streamsArray || [];
|
|
@@ -2242,7 +2250,7 @@ var __webpack_modules__ = {
|
|
|
2242
2250
|
return res;
|
|
2243
2251
|
function write(data) {
|
|
2244
2252
|
let dest;
|
|
2245
|
-
const level = this.lastLevel;
|
|
2253
|
+
const level = 'string' == typeof this.lastLevel ? (this.streamLevels || streamLevels)[this.lastLevel] : this.lastLevel;
|
|
2246
2254
|
const { streams } = this;
|
|
2247
2255
|
let recordedLevel = 0;
|
|
2248
2256
|
let stream;
|
|
@@ -2271,7 +2279,7 @@ var __webpack_modules__ = {
|
|
|
2271
2279
|
for (const { stream } of this.streams)if ('function' == typeof stream.flushSync) stream.flushSync();
|
|
2272
2280
|
}
|
|
2273
2281
|
function add(dest) {
|
|
2274
|
-
if (!dest) return
|
|
2282
|
+
if (!dest) return this;
|
|
2275
2283
|
const isStream = 'function' == typeof dest.write || dest.stream;
|
|
2276
2284
|
const stream_ = dest.write ? dest : dest.stream;
|
|
2277
2285
|
if (!isStream) throw Error('stream object needs to implement either StreamEntry or DestinationStream interface');
|
|
@@ -2287,7 +2295,7 @@ var __webpack_modules__ = {
|
|
|
2287
2295
|
streams.unshift(dest_);
|
|
2288
2296
|
streams.sort(compareByLevel);
|
|
2289
2297
|
this.minLevel = streams[0].level;
|
|
2290
|
-
return
|
|
2298
|
+
return this;
|
|
2291
2299
|
}
|
|
2292
2300
|
function remove(id) {
|
|
2293
2301
|
const { streams } = this;
|
|
@@ -2297,7 +2305,7 @@ var __webpack_modules__ = {
|
|
|
2297
2305
|
streams.sort(compareByLevel);
|
|
2298
2306
|
this.minLevel = streams.length > 0 ? streams[0].level : -1;
|
|
2299
2307
|
}
|
|
2300
|
-
return
|
|
2308
|
+
return this;
|
|
2301
2309
|
}
|
|
2302
2310
|
function end() {
|
|
2303
2311
|
for (const { stream } of this.streams){
|
|
@@ -2315,12 +2323,14 @@ var __webpack_modules__ = {
|
|
|
2315
2323
|
write,
|
|
2316
2324
|
add,
|
|
2317
2325
|
remove,
|
|
2326
|
+
emit,
|
|
2327
|
+
flushSync,
|
|
2328
|
+
end,
|
|
2318
2329
|
minLevel: level,
|
|
2319
2330
|
streams,
|
|
2320
2331
|
clone,
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
[metadata]: true
|
|
2332
|
+
[metadata]: true,
|
|
2333
|
+
streamLevels
|
|
2324
2334
|
};
|
|
2325
2335
|
}
|
|
2326
2336
|
}
|
|
@@ -2338,14 +2348,14 @@ var __webpack_modules__ = {
|
|
|
2338
2348
|
}
|
|
2339
2349
|
module1.exports = multistream;
|
|
2340
2350
|
},
|
|
2341
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2351
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/proto.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2342
2352
|
"use strict";
|
|
2343
2353
|
const { EventEmitter } = __webpack_require__("node:events");
|
|
2344
|
-
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.
|
|
2345
|
-
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2346
|
-
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2347
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2348
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2354
|
+
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");
|
|
2355
|
+
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js");
|
|
2356
|
+
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
2357
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js");
|
|
2358
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js");
|
|
2349
2359
|
const constructor = class {
|
|
2350
2360
|
};
|
|
2351
2361
|
const prototype = {
|
|
@@ -2491,10 +2501,10 @@ var __webpack_modules__ = {
|
|
|
2491
2501
|
else if (cb) cb();
|
|
2492
2502
|
}
|
|
2493
2503
|
},
|
|
2494
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2504
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2495
2505
|
"use strict";
|
|
2496
2506
|
const Redact = __webpack_require__("../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js");
|
|
2497
|
-
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2507
|
+
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2498
2508
|
const rx = /[^.[\]]+|\[([^[\]]*?)\]/g;
|
|
2499
2509
|
const CENSOR = '[Redacted]';
|
|
2500
2510
|
const strict = false;
|
|
@@ -2520,8 +2530,8 @@ var __webpack_modules__ = {
|
|
|
2520
2530
|
});
|
|
2521
2531
|
o[ns].push(nextPath);
|
|
2522
2532
|
return o;
|
|
2523
|
-
},
|
|
2524
|
-
const result = {
|
|
2533
|
+
}, Object.create(null));
|
|
2534
|
+
const result = Object.assign(Object.create(null), {
|
|
2525
2535
|
[redactFmtSym]: Redact({
|
|
2526
2536
|
paths,
|
|
2527
2537
|
censor,
|
|
@@ -2529,7 +2539,7 @@ var __webpack_modules__ = {
|
|
|
2529
2539
|
strict,
|
|
2530
2540
|
remove
|
|
2531
2541
|
})
|
|
2532
|
-
};
|
|
2542
|
+
});
|
|
2533
2543
|
const topCensor = (...args)=>'function' == typeof censor ? serialize(censor(...args)) : serialize(censor);
|
|
2534
2544
|
return [
|
|
2535
2545
|
...Object.keys(shape),
|
|
@@ -2573,7 +2583,7 @@ var __webpack_modules__ = {
|
|
|
2573
2583
|
}
|
|
2574
2584
|
module1.exports = redaction;
|
|
2575
2585
|
},
|
|
2576
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2586
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js" (module1) {
|
|
2577
2587
|
"use strict";
|
|
2578
2588
|
const setLevelSym = Symbol('pino.setLevel');
|
|
2579
2589
|
const getLevelSym = Symbol('pino.getLevel');
|
|
@@ -2606,6 +2616,7 @@ var __webpack_modules__ = {
|
|
|
2606
2616
|
const formattersSym = Symbol.for('pino.formatters');
|
|
2607
2617
|
const hooksSym = Symbol.for('pino.hooks');
|
|
2608
2618
|
const needsMetadataGsym = Symbol.for('pino.metadata');
|
|
2619
|
+
const transportUsesMultistreamSym = Symbol.for('pino.transport.usesMultistream');
|
|
2609
2620
|
module1.exports = {
|
|
2610
2621
|
setLevelSym,
|
|
2611
2622
|
getLevelSym,
|
|
@@ -2637,10 +2648,11 @@ var __webpack_modules__ = {
|
|
|
2637
2648
|
hooksSym,
|
|
2638
2649
|
nestedKeyStrSym,
|
|
2639
2650
|
mixinMergeStrategySym,
|
|
2640
|
-
msgPrefixSym
|
|
2651
|
+
msgPrefixSym,
|
|
2652
|
+
transportUsesMultistreamSym
|
|
2641
2653
|
};
|
|
2642
2654
|
},
|
|
2643
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2655
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/time.js" (module1) {
|
|
2644
2656
|
"use strict";
|
|
2645
2657
|
const nullTime = ()=>'';
|
|
2646
2658
|
const epochTime = ()=>`,"time":${Date.now()}`;
|
|
@@ -2673,16 +2685,16 @@ var __webpack_modules__ = {
|
|
|
2673
2685
|
isoTimeNano
|
|
2674
2686
|
};
|
|
2675
2687
|
},
|
|
2676
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2688
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2677
2689
|
"use strict";
|
|
2678
2690
|
const diagChan = __webpack_require__("node:diagnostics_channel");
|
|
2679
2691
|
const format = __webpack_require__("../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js");
|
|
2680
2692
|
const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
2681
2693
|
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.1/node_modules/sonic-boom/index.js");
|
|
2682
2694
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2683
|
-
const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2695
|
+
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");
|
|
2684
2696
|
const { isMainThread } = __webpack_require__("worker_threads");
|
|
2685
|
-
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2697
|
+
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js");
|
|
2686
2698
|
const [nodeMajor] = process.versions.node.split('.').map((v)=>Number(v));
|
|
2687
2699
|
const asJsonChan = diagChan.tracingChannel('pino_asJson');
|
|
2688
2700
|
const asString = nodeMajor >= 25 ? (str)=>JSON.stringify(str) : _asString;
|
|
@@ -2692,7 +2704,7 @@ var __webpack_modules__ = {
|
|
|
2692
2704
|
return function(...args) {
|
|
2693
2705
|
hook.call(this, args, LOG, level);
|
|
2694
2706
|
};
|
|
2695
|
-
function LOG(o, ...
|
|
2707
|
+
function LOG(o, ...n) {
|
|
2696
2708
|
if ('object' == typeof o) {
|
|
2697
2709
|
let msg = o;
|
|
2698
2710
|
if (null !== o) {
|
|
@@ -2700,19 +2712,19 @@ var __webpack_modules__ = {
|
|
|
2700
2712
|
else if ('function' == typeof o.setHeader) o = mapHttpResponse(o);
|
|
2701
2713
|
}
|
|
2702
2714
|
let formatParams;
|
|
2703
|
-
if (null === msg && 0 ===
|
|
2715
|
+
if (null === msg && 0 === n.length) formatParams = [
|
|
2704
2716
|
null
|
|
2705
2717
|
];
|
|
2706
2718
|
else {
|
|
2707
|
-
msg =
|
|
2708
|
-
formatParams =
|
|
2719
|
+
msg = n.shift();
|
|
2720
|
+
formatParams = n;
|
|
2709
2721
|
}
|
|
2710
2722
|
if ('string' == typeof this[msgPrefixSym] && null != msg) msg = this[msgPrefixSym] + msg;
|
|
2711
2723
|
this[writeSym](o, format(msg, formatParams, this[formatOptsSym]), level);
|
|
2712
2724
|
} else {
|
|
2713
|
-
let msg = void 0 === o ?
|
|
2725
|
+
let msg = void 0 === o ? n.shift() : o;
|
|
2714
2726
|
if ('string' == typeof this[msgPrefixSym] && null != msg) msg = this[msgPrefixSym] + msg;
|
|
2715
|
-
this[writeSym](null, format(msg,
|
|
2727
|
+
this[writeSym](null, format(msg, n, this[formatOptsSym]), level);
|
|
2716
2728
|
}
|
|
2717
2729
|
}
|
|
2718
2730
|
}
|
|
@@ -2808,7 +2820,7 @@ var __webpack_modules__ = {
|
|
|
2808
2820
|
}
|
|
2809
2821
|
}
|
|
2810
2822
|
if (this[nestedKeySym] && propStr) return data + this[nestedKeyStrSym] + propStr.slice(1) + '}' + msgStr + end;
|
|
2811
|
-
return data + propStr + msgStr + end;
|
|
2823
|
+
else return data + propStr + msgStr + end;
|
|
2812
2824
|
}
|
|
2813
2825
|
function asChindings(instance, bindings) {
|
|
2814
2826
|
let value;
|
|
@@ -2827,7 +2839,7 @@ var __webpack_modules__ = {
|
|
|
2827
2839
|
value = serializers[key] ? serializers[key](value) : value;
|
|
2828
2840
|
value = (stringifiers[key] || wildcardStringifier || stringify)(value, stringifySafe);
|
|
2829
2841
|
if (void 0 === value) continue;
|
|
2830
|
-
data += ',
|
|
2842
|
+
data += ',' + asString(key) + ':' + value;
|
|
2831
2843
|
}
|
|
2832
2844
|
}
|
|
2833
2845
|
return data;
|
|
@@ -2893,7 +2905,7 @@ var __webpack_modules__ = {
|
|
|
2893
2905
|
});
|
|
2894
2906
|
}
|
|
2895
2907
|
opts = Object.assign({}, defaultOptions, opts);
|
|
2896
|
-
opts.serializers = Object.assign(
|
|
2908
|
+
opts.serializers = Object.assign(Object.create(null), defaultOptions.serializers, opts.serializers);
|
|
2897
2909
|
opts.formatters = Object.assign({}, defaultOptions.formatters, opts.formatters);
|
|
2898
2910
|
if (opts.prettyPrint) throw new Error('prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)');
|
|
2899
2911
|
const { enabled, onChild } = opts;
|
|
@@ -2945,9 +2957,9 @@ var __webpack_modules__ = {
|
|
|
2945
2957
|
normalizeDestFileDescriptor
|
|
2946
2958
|
};
|
|
2947
2959
|
},
|
|
2948
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2960
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport-stream.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2949
2961
|
"use strict";
|
|
2950
|
-
const { realImport, realRequire } = __webpack_require__("../../node_modules/.pnpm/real-require@0.
|
|
2962
|
+
const { realImport, realRequire } = __webpack_require__("../../node_modules/.pnpm/real-require@1.0.0/node_modules/real-require/src/index.js");
|
|
2951
2963
|
module1.exports = loadTransportStreamBuilder;
|
|
2952
2964
|
async function loadTransportStreamBuilder(target) {
|
|
2953
2965
|
let fn;
|
|
@@ -2973,16 +2985,17 @@ var __webpack_modules__ = {
|
|
|
2973
2985
|
return fn;
|
|
2974
2986
|
}
|
|
2975
2987
|
},
|
|
2976
|
-
"../../node_modules/.pnpm/pino@10.
|
|
2988
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2977
2989
|
"use strict";
|
|
2978
2990
|
const { createRequire } = __webpack_require__("module");
|
|
2979
2991
|
const { existsSync } = __webpack_require__("node:fs");
|
|
2980
|
-
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
2992
|
+
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js");
|
|
2981
2993
|
const { join, isAbsolute, sep } = __webpack_require__("node:path");
|
|
2982
2994
|
const { fileURLToPath } = __webpack_require__("node:url");
|
|
2983
2995
|
const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
|
|
2984
2996
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2985
2997
|
const ThreadStream = __webpack_require__("../../node_modules/.pnpm/thread-stream@4.2.0/node_modules/thread-stream/index.js");
|
|
2998
|
+
const { transportUsesMultistreamSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
2986
2999
|
function setupOnExit(stream) {
|
|
2987
3000
|
onExit.register(stream, autoEnd);
|
|
2988
3001
|
onExit.registerBeforeExit(stream, flush);
|
|
@@ -3107,6 +3120,7 @@ var __webpack_modules__ = {
|
|
|
3107
3120
|
const options = {
|
|
3108
3121
|
...fullOptions.options
|
|
3109
3122
|
};
|
|
3123
|
+
let usesMultistream = false;
|
|
3110
3124
|
const callers = 'string' == typeof caller ? [
|
|
3111
3125
|
caller
|
|
3112
3126
|
] : caller;
|
|
@@ -3124,6 +3138,9 @@ var __webpack_modules__ = {
|
|
|
3124
3138
|
level: dest.level,
|
|
3125
3139
|
target: fixTarget(t.target)
|
|
3126
3140
|
})));
|
|
3141
|
+
const targetsHaveLevel = options.targets.some((t)=>null != t.level);
|
|
3142
|
+
const pipelinesHaveLevel = options.pipelines.some((p)=>p.some((t)=>null != t.level));
|
|
3143
|
+
usesMultistream = options.targets.length + options.pipelines.length > 1 || targetsHaveLevel || pipelinesHaveLevel;
|
|
3127
3144
|
} else if (pipeline) {
|
|
3128
3145
|
target = bundlerOverrides['pino-worker'] || join(__dirname, 'worker.js');
|
|
3129
3146
|
options.pipelines = [
|
|
@@ -3137,7 +3154,9 @@ var __webpack_modules__ = {
|
|
|
3137
3154
|
if (dedupe) options.dedupe = dedupe;
|
|
3138
3155
|
options.pinoWillSendConfig = true;
|
|
3139
3156
|
const name = targets || pipeline ? 'pino.transport' : target;
|
|
3140
|
-
|
|
3157
|
+
const stream = buildStream(fixTarget(target), options, worker, sync, name);
|
|
3158
|
+
if (usesMultistream) stream[transportUsesMultistreamSym] = true;
|
|
3159
|
+
return stream;
|
|
3141
3160
|
function fixTarget(origin) {
|
|
3142
3161
|
origin = bundlerOverrides[origin] || origin;
|
|
3143
3162
|
if (isAbsolute(origin) || 0 === origin.indexOf('file://')) return origin;
|
|
@@ -3156,13 +3175,13 @@ var __webpack_modules__ = {
|
|
|
3156
3175
|
}
|
|
3157
3176
|
module1.exports = transport;
|
|
3158
3177
|
},
|
|
3159
|
-
"../../node_modules/.pnpm/pino@10.
|
|
3178
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/worker.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
3160
3179
|
"use strict";
|
|
3161
3180
|
const EE = __webpack_require__("node:events");
|
|
3162
3181
|
const { pipeline, PassThrough } = __webpack_require__("node:stream");
|
|
3163
|
-
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3182
|
+
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/pino.js");
|
|
3164
3183
|
const build = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@3.0.0/node_modules/pino-abstract-transport/index.js");
|
|
3165
|
-
const loadTransportStreamBuilder = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3184
|
+
const loadTransportStreamBuilder = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport-stream.js");
|
|
3166
3185
|
module1.exports = async function({ targets, pipelines, levels, dedupe }) {
|
|
3167
3186
|
const targetStreams = [];
|
|
3168
3187
|
if (targets && targets.length) {
|
|
@@ -3192,8 +3211,8 @@ var __webpack_modules__ = {
|
|
|
3192
3211
|
}));
|
|
3193
3212
|
targetStreams.push(...pipelines);
|
|
3194
3213
|
}
|
|
3195
|
-
if (1 === targetStreams.length) return targetStreams[0].stream;
|
|
3196
|
-
return build(process1, {
|
|
3214
|
+
if (1 === targetStreams.length && null == targetStreams[0].level) return targetStreams[0].stream;
|
|
3215
|
+
else return build(process1, {
|
|
3197
3216
|
parse: 'lines',
|
|
3198
3217
|
metadata: true,
|
|
3199
3218
|
close (err, cb) {
|
|
@@ -3239,21 +3258,21 @@ var __webpack_modules__ = {
|
|
|
3239
3258
|
}
|
|
3240
3259
|
};
|
|
3241
3260
|
},
|
|
3242
|
-
"../../node_modules/.pnpm/pino@10.
|
|
3261
|
+
"../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/pino.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
3243
3262
|
"use strict";
|
|
3244
3263
|
const os = __webpack_require__("node:os");
|
|
3245
3264
|
const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.1.0/node_modules/pino-std-serializers/index.js");
|
|
3246
|
-
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3247
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3248
|
-
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3249
|
-
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3250
|
-
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3265
|
+
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/caller.js");
|
|
3266
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/redaction.js");
|
|
3267
|
+
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/time.js");
|
|
3268
|
+
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/proto.js");
|
|
3269
|
+
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/symbols.js");
|
|
3251
3270
|
const { configure } = __webpack_require__("../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js");
|
|
3252
|
-
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3253
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3254
|
-
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3255
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3256
|
-
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;
|
|
3271
|
+
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/levels.js");
|
|
3272
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/constants.js");
|
|
3273
|
+
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/tools.js");
|
|
3274
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/meta.js");
|
|
3275
|
+
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;
|
|
3257
3276
|
const { epochTime, nullTime } = time;
|
|
3258
3277
|
const { pid } = process;
|
|
3259
3278
|
const hostname = os.hostname();
|
|
@@ -3310,7 +3329,7 @@ var __webpack_modules__ = {
|
|
|
3310
3329
|
const stringifyFn = stringify.bind({
|
|
3311
3330
|
[stringifySafeSym]: stringifySafe
|
|
3312
3331
|
});
|
|
3313
|
-
const stringifiers = redact ? redaction(redact, stringifyFn) :
|
|
3332
|
+
const stringifiers = redact ? Object.assign(Object.create(null), redaction(redact, stringifyFn)) : Object.create(null);
|
|
3314
3333
|
const formatOpts = redact ? {
|
|
3315
3334
|
stringify: stringifiers[redactFmtSym]
|
|
3316
3335
|
} : {
|
|
@@ -3336,6 +3355,21 @@ var __webpack_modules__ = {
|
|
|
3336
3355
|
if (msgPrefix && 'string' != typeof msgPrefix) throw Error(`Unknown msgPrefix type "${typeof msgPrefix}" - expected "string"`);
|
|
3337
3356
|
assertDefaultLevelFound(level, customLevels, useOnlyCustomLevels);
|
|
3338
3357
|
const levels = mappings(customLevels, useOnlyCustomLevels);
|
|
3358
|
+
if (stream && true === stream[transportUsesMultistreamSym]) {
|
|
3359
|
+
let sampleLabel = 'string' == typeof level ? level : void 0;
|
|
3360
|
+
if (!sampleLabel || void 0 === levels[sampleLabel]) sampleLabel = Object.keys(levels)[0];
|
|
3361
|
+
const sampleNumber = levels[sampleLabel];
|
|
3362
|
+
let ok = false;
|
|
3363
|
+
try {
|
|
3364
|
+
const formatted = formatters.level(sampleLabel, sampleNumber);
|
|
3365
|
+
ok = formatted && 'object' == typeof formatted && formatted.level === sampleNumber;
|
|
3366
|
+
} catch {
|
|
3367
|
+
ok = false;
|
|
3368
|
+
}
|
|
3369
|
+
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', {
|
|
3370
|
+
code: 'PINO_TRANSPORT_MULTI_TARGETS_LEVEL_FORMATTER'
|
|
3371
|
+
});
|
|
3372
|
+
}
|
|
3339
3373
|
if ('function' == typeof stream.emit) stream.emit('message', {
|
|
3340
3374
|
code: 'PINO_CONFIG',
|
|
3341
3375
|
config: {
|
|
@@ -3383,11 +3417,13 @@ var __webpack_modules__ = {
|
|
|
3383
3417
|
dest: normalizeDestFileDescriptor(dest),
|
|
3384
3418
|
minLength: 0
|
|
3385
3419
|
});
|
|
3386
|
-
|
|
3387
|
-
|
|
3420
|
+
else {
|
|
3421
|
+
dest.dest = normalizeDestFileDescriptor(dest.dest || process.stdout.fd);
|
|
3422
|
+
return buildSafeSonicBoom(dest);
|
|
3423
|
+
}
|
|
3388
3424
|
};
|
|
3389
|
-
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3390
|
-
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.
|
|
3425
|
+
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/transport.js");
|
|
3426
|
+
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/multistream.js");
|
|
3391
3427
|
module1.exports.levels = mappings();
|
|
3392
3428
|
module1.exports.stdSerializers = serializers;
|
|
3393
3429
|
module1.exports.stdTimeFunctions = Object.assign({}, time);
|
|
@@ -3517,7 +3553,7 @@ var __webpack_modules__ = {
|
|
|
3517
3553
|
} else if ('string' == typeof fd) openFile(fd, this);
|
|
3518
3554
|
else throw new Error("SonicBoom supports only file descriptors and files");
|
|
3519
3555
|
if (this.minLength >= this.maxWrite) throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);
|
|
3520
|
-
this.release = (err,
|
|
3556
|
+
this.release = (err, n)=>{
|
|
3521
3557
|
if (err) {
|
|
3522
3558
|
if (('EAGAIN' === err.code || 'EBUSY' === err.code) && this.retryEAGAIN(err, this._writingBuf.length, this._len - this._writingBuf.length)) if (this.sync) try {
|
|
3523
3559
|
sleep(BUSY_WRITE_TIMEOUT);
|
|
@@ -3532,16 +3568,16 @@ var __webpack_modules__ = {
|
|
|
3532
3568
|
}
|
|
3533
3569
|
return;
|
|
3534
3570
|
}
|
|
3535
|
-
this.emit('write',
|
|
3536
|
-
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len,
|
|
3571
|
+
this.emit('write', n);
|
|
3572
|
+
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
|
|
3537
3573
|
this._len = releasedBufObj.len;
|
|
3538
3574
|
this._writingBuf = releasedBufObj.writingBuf;
|
|
3539
3575
|
if (this._writingBuf.length) {
|
|
3540
3576
|
if (!this.sync) return void fsWrite();
|
|
3541
3577
|
try {
|
|
3542
3578
|
do {
|
|
3543
|
-
const
|
|
3544
|
-
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len,
|
|
3579
|
+
const n = fsWriteSync();
|
|
3580
|
+
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
|
|
3545
3581
|
this._len = releasedBufObj.len;
|
|
3546
3582
|
this._writingBuf = releasedBufObj.writingBuf;
|
|
3547
3583
|
}while (this._writingBuf.length);
|
|
@@ -3580,10 +3616,10 @@ var __webpack_modules__ = {
|
|
|
3580
3616
|
this._periodicFlushTimer.unref();
|
|
3581
3617
|
}
|
|
3582
3618
|
}
|
|
3583
|
-
function releaseWritingBuf(writingBuf, len,
|
|
3619
|
+
function releaseWritingBuf(writingBuf, len, n) {
|
|
3584
3620
|
if ('string' == typeof writingBuf) writingBuf = Buffer.from(writingBuf);
|
|
3585
|
-
len = Math.max(len -
|
|
3586
|
-
writingBuf = writingBuf.subarray(
|
|
3621
|
+
len = Math.max(len - n, 0);
|
|
3622
|
+
writingBuf = writingBuf.subarray(n);
|
|
3587
3623
|
return {
|
|
3588
3624
|
writingBuf,
|
|
3589
3625
|
len
|
|
@@ -3732,8 +3768,8 @@ var __webpack_modules__ = {
|
|
|
3732
3768
|
while(this._bufs.length || buf.length){
|
|
3733
3769
|
if (buf.length <= 0) buf = this._bufs[0];
|
|
3734
3770
|
try {
|
|
3735
|
-
const
|
|
3736
|
-
const releasedBufObj = releaseWritingBuf(buf, this._len,
|
|
3771
|
+
const n = Buffer.isBuffer(buf) ? fs.writeSync(this.fd, buf) : fs.writeSync(this.fd, buf, 'utf8');
|
|
3772
|
+
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
3737
3773
|
buf = releasedBufObj.writingBuf;
|
|
3738
3774
|
this._len = releasedBufObj.len;
|
|
3739
3775
|
if (buf.length <= 0) this._bufs.shift();
|
|
@@ -3760,9 +3796,9 @@ var __webpack_modules__ = {
|
|
|
3760
3796
|
while(this._bufs.length || buf.length){
|
|
3761
3797
|
if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
|
|
3762
3798
|
try {
|
|
3763
|
-
const
|
|
3764
|
-
buf = buf.subarray(
|
|
3765
|
-
this._len = Math.max(this._len -
|
|
3799
|
+
const n = fs.writeSync(this.fd, buf);
|
|
3800
|
+
buf = buf.subarray(n);
|
|
3801
|
+
this._len = Math.max(this._len - n, 0);
|
|
3766
3802
|
if (buf.length <= 0) {
|
|
3767
3803
|
this._bufs.shift();
|
|
3768
3804
|
this._lens.shift();
|
|
@@ -3847,5 +3883,5 @@ function __webpack_require__(moduleId) {
|
|
|
3847
3883
|
return module1.exports;
|
|
3848
3884
|
}
|
|
3849
3885
|
__webpack_require__.c = __webpack_module_cache__;
|
|
3850
|
-
var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.
|
|
3886
|
+
var __webpack_exports__ = __webpack_require__(__webpack_require__.s = "../../node_modules/.pnpm/pino@10.4.0/node_modules/pino/lib/worker.js");
|
|
3851
3887
|
module.exports = __webpack_exports__;
|