@rife/logger 0.0.6-beta.18 → 0.0.6-beta.20
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 +3 -6
- 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 +6 -14
- 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/esm/test.mjs +1 -1
- 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/src/pino/index.ts +6 -16
- package/src/trace.ts +1 -1
- package/tsconfig.json +2 -1
- package/dist/esm/rslib-runtime.mjs +0 -19
|
@@ -331,8 +331,8 @@ var __webpack_modules__ = {
|
|
|
331
331
|
return tomorrow[_ + "FullYear"]();
|
|
332
332
|
};
|
|
333
333
|
if (today_y() === y && today_m() === m && today_d() === d) return _short ? "Tdy" : "Today";
|
|
334
|
-
if (yesterday_y() === y && yesterday_m() === m && yesterday_d() === d) return _short ? "Ysd" : "Yesterday";
|
|
335
|
-
if (tomorrow_y() === y && tomorrow_m() === m && tomorrow_d() === d) return _short ? "Tmw" : "Tomorrow";
|
|
334
|
+
else if (yesterday_y() === y && yesterday_m() === m && yesterday_d() === d) return _short ? "Ysd" : "Yesterday";
|
|
335
|
+
else if (tomorrow_y() === y && tomorrow_m() === m && tomorrow_d() === d) return _short ? "Tmw" : "Tomorrow";
|
|
336
336
|
return dayName;
|
|
337
337
|
};
|
|
338
338
|
var getWeek = function(date) {
|
|
@@ -342,7 +342,7 @@ var __webpack_modules__ = {
|
|
|
342
342
|
firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3);
|
|
343
343
|
var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset();
|
|
344
344
|
targetThursday.setHours(targetThursday.getHours() - ds);
|
|
345
|
-
var weekDiff = (targetThursday - firstThursday) /
|
|
345
|
+
var weekDiff = (targetThursday - firstThursday) / 604800000;
|
|
346
346
|
return 1 + Math.floor(weekDiff);
|
|
347
347
|
};
|
|
348
348
|
var getDayOfWeek = function(date) {
|
|
@@ -564,12 +564,14 @@ var __webpack_modules__ = {
|
|
|
564
564
|
tmp[key] = val[key];
|
|
565
565
|
}
|
|
566
566
|
if (void 0 === parent) return tmp;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
567
|
+
else {
|
|
568
|
+
arr.push([
|
|
569
|
+
parent,
|
|
570
|
+
k,
|
|
571
|
+
val
|
|
572
|
+
]);
|
|
573
|
+
parent[k] = tmp;
|
|
574
|
+
}
|
|
573
575
|
}
|
|
574
576
|
stack.pop();
|
|
575
577
|
}
|
|
@@ -999,29 +1001,37 @@ var __webpack_modules__ = {
|
|
|
999
1001
|
}
|
|
1000
1002
|
}
|
|
1001
1003
|
},
|
|
1002
|
-
|
|
1004
|
+
fs (module1) {
|
|
1003
1005
|
"use strict";
|
|
1004
|
-
module1.exports = require("
|
|
1006
|
+
module1.exports = require("fs");
|
|
1005
1007
|
},
|
|
1006
|
-
|
|
1008
|
+
"node:assert" (module1) {
|
|
1007
1009
|
"use strict";
|
|
1008
|
-
module1.exports = require("
|
|
1010
|
+
module1.exports = require("node:assert");
|
|
1009
1011
|
},
|
|
1010
|
-
|
|
1012
|
+
"node:events" (module1) {
|
|
1011
1013
|
"use strict";
|
|
1012
|
-
module1.exports = require("
|
|
1014
|
+
module1.exports = require("node:events");
|
|
1015
|
+
},
|
|
1016
|
+
"node:fs" (module1) {
|
|
1017
|
+
"use strict";
|
|
1018
|
+
module1.exports = require("node:fs");
|
|
1019
|
+
},
|
|
1020
|
+
"node:path" (module1) {
|
|
1021
|
+
"use strict";
|
|
1022
|
+
module1.exports = require("node:path");
|
|
1013
1023
|
},
|
|
1014
1024
|
"node:stream" (module1) {
|
|
1015
1025
|
"use strict";
|
|
1016
1026
|
module1.exports = require("node:stream");
|
|
1017
1027
|
},
|
|
1018
|
-
"node:
|
|
1028
|
+
"node:util" (module1) {
|
|
1019
1029
|
"use strict";
|
|
1020
|
-
module1.exports = require("node:
|
|
1030
|
+
module1.exports = require("node:util");
|
|
1021
1031
|
},
|
|
1022
|
-
|
|
1032
|
+
"node:worker_threads" (module1) {
|
|
1023
1033
|
"use strict";
|
|
1024
|
-
module1.exports = require("
|
|
1034
|
+
module1.exports = require("node:worker_threads");
|
|
1025
1035
|
},
|
|
1026
1036
|
stream (module1) {
|
|
1027
1037
|
"use strict";
|
|
@@ -1035,10 +1045,6 @@ var __webpack_modules__ = {
|
|
|
1035
1045
|
"use strict";
|
|
1036
1046
|
module1.exports = require("tty");
|
|
1037
1047
|
},
|
|
1038
|
-
util (module1) {
|
|
1039
|
-
"use strict";
|
|
1040
|
-
module1.exports = require("util");
|
|
1041
|
-
},
|
|
1042
1048
|
worker_threads (module1) {
|
|
1043
1049
|
"use strict";
|
|
1044
1050
|
module1.exports = require("worker_threads");
|
|
@@ -1127,8 +1133,15 @@ var __webpack_modules__ = {
|
|
|
1127
1133
|
exports.createColors = createColors;
|
|
1128
1134
|
exports.isColorSupported = isColorSupported;
|
|
1129
1135
|
},
|
|
1130
|
-
"../../node_modules/.pnpm/fast-copy@4.
|
|
1136
|
+
"../../node_modules/.pnpm/fast-copy@4.1.2/node_modules/fast-copy/dist/cjs/index.cjs" (__unused_rspack_module, exports) {
|
|
1131
1137
|
"use strict";
|
|
1138
|
+
class MaxDepthExceededError extends RangeError {
|
|
1139
|
+
constructor(maxDepth){
|
|
1140
|
+
super(`Maximum copy depth of ${String(maxDepth)} exceeded; the value copied is nested too deeply.`);
|
|
1141
|
+
this.maxDepth = maxDepth;
|
|
1142
|
+
this.name = 'MaxDepthExceededError';
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1132
1145
|
const toStringFunction = Function.prototype.toString;
|
|
1133
1146
|
const toStringObject = Object.prototype.toString;
|
|
1134
1147
|
function getCleanClone(prototype) {
|
|
@@ -1147,6 +1160,7 @@ var __webpack_modules__ = {
|
|
|
1147
1160
|
return type.substring(8, type.length - 1);
|
|
1148
1161
|
}
|
|
1149
1162
|
const { propertyIsEnumerable } = Object.prototype;
|
|
1163
|
+
const sliceTypedArray = Object.getPrototypeOf(Int8Array.prototype).slice;
|
|
1150
1164
|
function copyOwnDescriptor(original, clone, property, state) {
|
|
1151
1165
|
const ownDescriptor = Object.getOwnPropertyDescriptor(original, property) || {
|
|
1152
1166
|
configurable: true,
|
|
@@ -1183,13 +1197,13 @@ var __webpack_modules__ = {
|
|
|
1183
1197
|
return copyOwnPropertiesStrict(array, clone, state);
|
|
1184
1198
|
}
|
|
1185
1199
|
function copyArrayBuffer(arrayBuffer, _state) {
|
|
1186
|
-
return arrayBuffer.slice(0);
|
|
1200
|
+
return ArrayBuffer.isView(arrayBuffer) ? sliceTypedArray.call(arrayBuffer, 0) : arrayBuffer.slice(0);
|
|
1187
1201
|
}
|
|
1188
1202
|
function copyBlob(blob, _state) {
|
|
1189
1203
|
return blob.slice(0, blob.size, blob.type);
|
|
1190
1204
|
}
|
|
1191
1205
|
function copyDataView(dataView, state) {
|
|
1192
|
-
return new state.Constructor(copyArrayBuffer(dataView.buffer));
|
|
1206
|
+
return new state.Constructor(copyArrayBuffer(dataView.buffer), dataView.byteOffset, dataView.byteLength);
|
|
1193
1207
|
}
|
|
1194
1208
|
function copyDate(date, state) {
|
|
1195
1209
|
return new state.Constructor(date.getTime());
|
|
@@ -1235,10 +1249,11 @@ var __webpack_modules__ = {
|
|
|
1235
1249
|
function copySetStrict(set, state) {
|
|
1236
1250
|
return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
|
|
1237
1251
|
}
|
|
1252
|
+
const DEFAULT_MAX_DEPTH = 1000;
|
|
1238
1253
|
function createDefaultCache() {
|
|
1239
1254
|
return new WeakMap();
|
|
1240
1255
|
}
|
|
1241
|
-
function getOptions({ createCache: createCacheOverride, methods: methodsOverride, strict }) {
|
|
1256
|
+
function getOptions({ createCache: createCacheOverride, maxDepth, methods: methodsOverride, strict }) {
|
|
1242
1257
|
const defaultMethods = {
|
|
1243
1258
|
array: strict ? copyArrayStrict : copyArrayLoose,
|
|
1244
1259
|
arrayBuffer: copyArrayBuffer,
|
|
@@ -1260,12 +1275,13 @@ var __webpack_modules__ = {
|
|
|
1260
1275
|
return {
|
|
1261
1276
|
createCache,
|
|
1262
1277
|
copiers,
|
|
1278
|
+
maxDepth: null == maxDepth ? DEFAULT_MAX_DEPTH : maxDepth,
|
|
1263
1279
|
methods,
|
|
1264
1280
|
strict: Boolean(strict)
|
|
1265
1281
|
};
|
|
1266
1282
|
}
|
|
1267
1283
|
function getTagSpecificCopiers(methods) {
|
|
1268
|
-
return {
|
|
1284
|
+
return Object.assign(Object.create(null), {
|
|
1269
1285
|
Arguments: methods.object,
|
|
1270
1286
|
Array: methods.array,
|
|
1271
1287
|
ArrayBuffer: methods.arrayBuffer,
|
|
@@ -1296,28 +1312,34 @@ var __webpack_modules__ = {
|
|
|
1296
1312
|
Uint8ClampedArray: methods.arrayBuffer,
|
|
1297
1313
|
Uint16Array: methods.arrayBuffer,
|
|
1298
1314
|
Uint32Array: methods.arrayBuffer
|
|
1299
|
-
};
|
|
1315
|
+
});
|
|
1300
1316
|
}
|
|
1301
1317
|
function createCopier(options = {}) {
|
|
1302
|
-
const { createCache, copiers } = getOptions(options);
|
|
1318
|
+
const { createCache, copiers, maxDepth } = getOptions(options);
|
|
1303
1319
|
const { Array: copyArray, Object: copyObject } = copiers;
|
|
1304
1320
|
function copier(value, state) {
|
|
1305
1321
|
state.prototype = state.Constructor = void 0;
|
|
1306
1322
|
if (!value || 'object' != typeof value) return value;
|
|
1307
1323
|
if (state.cache.has(value)) return state.cache.get(value);
|
|
1324
|
+
if (++state.depth > maxDepth) throw new MaxDepthExceededError(maxDepth);
|
|
1308
1325
|
state.prototype = Object.getPrototypeOf(value);
|
|
1309
1326
|
state.Constructor = state.prototype && state.prototype.constructor;
|
|
1310
|
-
|
|
1311
|
-
if (Array.isArray(value))
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1327
|
+
let clone;
|
|
1328
|
+
if (state.Constructor && state.Constructor !== Object) if (Array.isArray(value)) clone = copyArray(value, state);
|
|
1329
|
+
else {
|
|
1330
|
+
const tagSpecificCopier = copiers[getTag(value)];
|
|
1331
|
+
clone = tagSpecificCopier ? tagSpecificCopier(value, state) : 'function' == typeof value.then ? value : copyObject(value, state);
|
|
1332
|
+
}
|
|
1333
|
+
else clone = copyObject(value, state);
|
|
1334
|
+
--state.depth;
|
|
1335
|
+
return clone;
|
|
1315
1336
|
}
|
|
1316
1337
|
return function(value) {
|
|
1317
1338
|
return copier(value, {
|
|
1318
1339
|
Constructor: void 0,
|
|
1319
1340
|
cache: createCache(),
|
|
1320
1341
|
copier,
|
|
1342
|
+
depth: 0,
|
|
1321
1343
|
prototype: void 0
|
|
1322
1344
|
});
|
|
1323
1345
|
};
|
|
@@ -1328,16 +1350,16 @@ var __webpack_modules__ = {
|
|
|
1328
1350
|
createCopier();
|
|
1329
1351
|
exports.createCopier = createCopier;
|
|
1330
1352
|
},
|
|
1331
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1353
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1332
1354
|
"use strict";
|
|
1333
1355
|
const { isColorSupported } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
|
|
1334
1356
|
const pump = __webpack_require__("../../node_modules/.pnpm/pump@3.0.4/node_modules/pump/index.js");
|
|
1335
1357
|
const { Transform } = __webpack_require__("node:stream");
|
|
1336
1358
|
const abstractTransport = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@3.0.0/node_modules/pino-abstract-transport/index.js");
|
|
1337
|
-
const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1338
|
-
const { ERROR_LIKE_KEYS, LEVEL_KEY, LEVEL_LABEL, MESSAGE_KEY, TIMESTAMP_KEY } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1339
|
-
const { buildSafeSonicBoom, parseFactoryOptions } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1340
|
-
const pretty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1359
|
+
const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/colors.js");
|
|
1360
|
+
const { ERROR_LIKE_KEYS, LEVEL_KEY, LEVEL_LABEL, MESSAGE_KEY, TIMESTAMP_KEY } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
1361
|
+
const { buildSafeSonicBoom, parseFactoryOptions } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/index.js");
|
|
1362
|
+
const pretty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/pretty.js");
|
|
1341
1363
|
const defaultOptions = {
|
|
1342
1364
|
colorize: isColorSupported,
|
|
1343
1365
|
colorizeObjects: true,
|
|
@@ -1356,14 +1378,37 @@ var __webpack_modules__ = {
|
|
|
1356
1378
|
messageFormat: null,
|
|
1357
1379
|
messageKey: MESSAGE_KEY,
|
|
1358
1380
|
minimumLevel: void 0,
|
|
1359
|
-
outputStream: process.stdout,
|
|
1360
1381
|
singleLine: false,
|
|
1361
1382
|
timestampKey: TIMESTAMP_KEY,
|
|
1362
1383
|
translateTime: true,
|
|
1363
1384
|
useOnlyCustomProps: true
|
|
1364
1385
|
};
|
|
1386
|
+
function normalizeBoolean(value) {
|
|
1387
|
+
if ('true' === value) return true;
|
|
1388
|
+
if ('false' === value) return false;
|
|
1389
|
+
return value;
|
|
1390
|
+
}
|
|
1391
|
+
function normalizeBooleanOptions(options) {
|
|
1392
|
+
const normalized = {
|
|
1393
|
+
...options
|
|
1394
|
+
};
|
|
1395
|
+
const booleanOptions = [
|
|
1396
|
+
'colorize',
|
|
1397
|
+
'colorizeObjects',
|
|
1398
|
+
'crlf',
|
|
1399
|
+
'hideObject',
|
|
1400
|
+
'levelFirst',
|
|
1401
|
+
'singleLine',
|
|
1402
|
+
'useOnlyCustomProps'
|
|
1403
|
+
];
|
|
1404
|
+
for (const key of booleanOptions)if (key in normalized) normalized[key] = normalizeBoolean(normalized[key]);
|
|
1405
|
+
if ('translateTime' in normalized && ('true' === normalized.translateTime || 'false' === normalized.translateTime)) normalized.translateTime = normalizeBoolean(normalized.translateTime);
|
|
1406
|
+
return normalized;
|
|
1407
|
+
}
|
|
1365
1408
|
function prettyFactory(options) {
|
|
1366
|
-
const
|
|
1409
|
+
const mergedOptions = Object.assign({}, defaultOptions, options);
|
|
1410
|
+
const normalizedOptions = normalizeBooleanOptions(mergedOptions);
|
|
1411
|
+
const context = parseFactoryOptions(normalizedOptions);
|
|
1367
1412
|
return pretty.bind({
|
|
1368
1413
|
...context,
|
|
1369
1414
|
context
|
|
@@ -1422,7 +1467,7 @@ var __webpack_modules__ = {
|
|
|
1422
1467
|
module1.exports.isColorSupported = isColorSupported;
|
|
1423
1468
|
module1.exports["default"] = build;
|
|
1424
1469
|
},
|
|
1425
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1470
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/colors.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1426
1471
|
"use strict";
|
|
1427
1472
|
const nocolor = (input)=>input;
|
|
1428
1473
|
const plain = {
|
|
@@ -1438,7 +1483,7 @@ var __webpack_modules__ = {
|
|
|
1438
1483
|
property: nocolor
|
|
1439
1484
|
};
|
|
1440
1485
|
const { createColors } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
|
|
1441
|
-
const getLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1486
|
+
const getLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
|
|
1442
1487
|
const availableColors = createColors({
|
|
1443
1488
|
useColor: true
|
|
1444
1489
|
});
|
|
@@ -1511,11 +1556,11 @@ var __webpack_modules__ = {
|
|
|
1511
1556
|
}
|
|
1512
1557
|
module1.exports = function(useColors = false, customColors, useOnlyCustomProps) {
|
|
1513
1558
|
if (useColors && void 0 !== customColors) return customColoredColorizerFactory(customColors, useOnlyCustomProps);
|
|
1514
|
-
if (useColors) return coloredColorizer(useOnlyCustomProps);
|
|
1559
|
+
else if (useColors) return coloredColorizer(useOnlyCustomProps);
|
|
1515
1560
|
return plainColorizer(useOnlyCustomProps);
|
|
1516
1561
|
};
|
|
1517
1562
|
},
|
|
1518
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1563
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js" (module1) {
|
|
1519
1564
|
"use strict";
|
|
1520
1565
|
module1.exports = {
|
|
1521
1566
|
DATE_FORMAT: 'yyyy-mm-dd HH:MM:ss.l o',
|
|
@@ -1556,19 +1601,19 @@ var __webpack_modules__ = {
|
|
|
1556
1601
|
]
|
|
1557
1602
|
};
|
|
1558
1603
|
},
|
|
1559
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1604
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/pretty.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1560
1605
|
"use strict";
|
|
1561
1606
|
module1.exports = pretty;
|
|
1562
|
-
const sjs = __webpack_require__("../../node_modules/.pnpm/secure-json-parse@4.1.
|
|
1563
|
-
const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1564
|
-
const prettifyErrorLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1565
|
-
const prettifyLevel = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1566
|
-
const prettifyMessage = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1567
|
-
const prettifyMetadata = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1568
|
-
const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1569
|
-
const prettifyTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1570
|
-
const filterLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1571
|
-
const { LEVELS, LEVEL_KEY, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1607
|
+
const sjs = __webpack_require__("../../node_modules/.pnpm/secure-json-parse@4.1.1/node_modules/secure-json-parse/index.js");
|
|
1608
|
+
const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js");
|
|
1609
|
+
const prettifyErrorLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js");
|
|
1610
|
+
const prettifyLevel = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-level.js");
|
|
1611
|
+
const prettifyMessage = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-message.js");
|
|
1612
|
+
const prettifyMetadata = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js");
|
|
1613
|
+
const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js");
|
|
1614
|
+
const prettifyTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-time.js");
|
|
1615
|
+
const filterLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/filter-log.js");
|
|
1616
|
+
const { LEVELS, LEVEL_KEY, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
1572
1617
|
const jsonParser = (input)=>{
|
|
1573
1618
|
try {
|
|
1574
1619
|
return {
|
|
@@ -1655,12 +1700,12 @@ var __webpack_modules__ = {
|
|
|
1655
1700
|
return line;
|
|
1656
1701
|
}
|
|
1657
1702
|
},
|
|
1658
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1703
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1659
1704
|
"use strict";
|
|
1660
1705
|
module1.exports = buildSafeSonicBoom;
|
|
1661
1706
|
const { isMainThread } = __webpack_require__("node:worker_threads");
|
|
1662
|
-
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@
|
|
1663
|
-
const noop = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1707
|
+
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@5.0.2/node_modules/sonic-boom/index.js");
|
|
1708
|
+
const noop = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/noop.js");
|
|
1664
1709
|
function buildSafeSonicBoom(opts) {
|
|
1665
1710
|
const stream = new SonicBoom(opts);
|
|
1666
1711
|
stream.on('error', filterBrokenPipe);
|
|
@@ -1696,10 +1741,10 @@ var __webpack_modules__ = {
|
|
|
1696
1741
|
} else stream.flushSync();
|
|
1697
1742
|
}
|
|
1698
1743
|
},
|
|
1699
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1744
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/create-date.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1700
1745
|
"use strict";
|
|
1701
1746
|
module1.exports = createDate;
|
|
1702
|
-
const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1747
|
+
const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js");
|
|
1703
1748
|
function createDate(epoch) {
|
|
1704
1749
|
let date = new Date(epoch);
|
|
1705
1750
|
if (isValidDate(date)) return date;
|
|
@@ -1707,11 +1752,11 @@ var __webpack_modules__ = {
|
|
|
1707
1752
|
return date;
|
|
1708
1753
|
}
|
|
1709
1754
|
},
|
|
1710
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1755
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/delete-log-property.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1711
1756
|
"use strict";
|
|
1712
1757
|
module1.exports = deleteLogProperty;
|
|
1713
|
-
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1714
|
-
const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1758
|
+
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
|
|
1759
|
+
const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js");
|
|
1715
1760
|
function deleteLogProperty(log, property) {
|
|
1716
1761
|
const props = splitPropertyKey(property);
|
|
1717
1762
|
const propToDelete = props.pop();
|
|
@@ -1719,19 +1764,41 @@ var __webpack_modules__ = {
|
|
|
1719
1764
|
if (null !== log && 'object' == typeof log && Object.prototype.hasOwnProperty.call(log, propToDelete)) delete log[propToDelete];
|
|
1720
1765
|
}
|
|
1721
1766
|
},
|
|
1722
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1767
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/filter-log.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1723
1768
|
"use strict";
|
|
1724
1769
|
module1.exports = filterLog;
|
|
1725
|
-
const { createCopier } = __webpack_require__("../../node_modules/.pnpm/fast-copy@4.
|
|
1770
|
+
const { createCopier } = __webpack_require__("../../node_modules/.pnpm/fast-copy@4.1.2/node_modules/fast-copy/dist/cjs/index.cjs");
|
|
1726
1771
|
const fastCopy = createCopier({});
|
|
1727
|
-
const deleteLogProperty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1772
|
+
const deleteLogProperty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/delete-log-property.js");
|
|
1773
|
+
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
|
|
1774
|
+
const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js");
|
|
1775
|
+
function hasLogProperty(log, property) {
|
|
1776
|
+
const props = splitPropertyKey(property);
|
|
1777
|
+
if (0 === props.length) return false;
|
|
1778
|
+
let current = log;
|
|
1779
|
+
for (const prop of props){
|
|
1780
|
+
if (null === current || 'object' != typeof current || !Object.prototype.hasOwnProperty.call(current, prop)) return false;
|
|
1781
|
+
current = current[prop];
|
|
1782
|
+
}
|
|
1783
|
+
return true;
|
|
1784
|
+
}
|
|
1785
|
+
function setLogProperty(log, property, value) {
|
|
1786
|
+
const props = splitPropertyKey(property);
|
|
1787
|
+
const last = props.pop();
|
|
1788
|
+
let current = log;
|
|
1789
|
+
for (const prop of props){
|
|
1790
|
+
if (null === current[prop] || 'object' != typeof current[prop]) current[prop] = {};
|
|
1791
|
+
current = current[prop];
|
|
1792
|
+
}
|
|
1793
|
+
current[last] = value;
|
|
1794
|
+
}
|
|
1728
1795
|
function filterLog({ log, context }) {
|
|
1729
1796
|
const { ignoreKeys, includeKeys } = context;
|
|
1730
1797
|
const logCopy = fastCopy(log);
|
|
1731
1798
|
if (includeKeys) {
|
|
1732
1799
|
const logIncluded = {};
|
|
1733
1800
|
includeKeys.forEach((key)=>{
|
|
1734
|
-
logIncluded
|
|
1801
|
+
if (hasLogProperty(logCopy, key)) setLogProperty(logIncluded, key, getPropertyValue(logCopy, key));
|
|
1735
1802
|
});
|
|
1736
1803
|
return logIncluded;
|
|
1737
1804
|
}
|
|
@@ -1741,13 +1808,13 @@ var __webpack_modules__ = {
|
|
|
1741
1808
|
return logCopy;
|
|
1742
1809
|
}
|
|
1743
1810
|
},
|
|
1744
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1811
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/format-time.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1745
1812
|
"use strict";
|
|
1746
1813
|
module1.exports = formatTime;
|
|
1747
|
-
const { DATE_FORMAT, DATE_FORMAT_SIMPLE } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1814
|
+
const { DATE_FORMAT, DATE_FORMAT_SIMPLE } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
1748
1815
|
const dateformat = __webpack_require__("../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js");
|
|
1749
|
-
const createDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1750
|
-
const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1816
|
+
const createDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/create-date.js");
|
|
1817
|
+
const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js");
|
|
1751
1818
|
function formatTime(epoch, translateTime = false) {
|
|
1752
1819
|
if (false === translateTime) return epoch;
|
|
1753
1820
|
const instant = createDate(epoch);
|
|
@@ -1763,10 +1830,10 @@ var __webpack_modules__ = {
|
|
|
1763
1830
|
return dateformat(instant, `UTC:${translateTime}`);
|
|
1764
1831
|
}
|
|
1765
1832
|
},
|
|
1766
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1833
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1767
1834
|
"use strict";
|
|
1768
1835
|
module1.exports = getLevelLabelData;
|
|
1769
|
-
const { LEVELS, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1836
|
+
const { LEVELS, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
1770
1837
|
function getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) {
|
|
1771
1838
|
const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels);
|
|
1772
1839
|
const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames);
|
|
@@ -1780,10 +1847,10 @@ var __webpack_modules__ = {
|
|
|
1780
1847
|
};
|
|
1781
1848
|
}
|
|
1782
1849
|
},
|
|
1783
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1850
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1784
1851
|
"use strict";
|
|
1785
1852
|
module1.exports = getPropertyValue;
|
|
1786
|
-
const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1853
|
+
const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js");
|
|
1787
1854
|
function getPropertyValue(obj, property) {
|
|
1788
1855
|
const props = Array.isArray(property) ? property : splitPropertyKey(property);
|
|
1789
1856
|
for (const prop of props){
|
|
@@ -1793,7 +1860,7 @@ var __webpack_modules__ = {
|
|
|
1793
1860
|
return obj;
|
|
1794
1861
|
}
|
|
1795
1862
|
},
|
|
1796
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1863
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js" (module1) {
|
|
1797
1864
|
"use strict";
|
|
1798
1865
|
module1.exports = handleCustomLevelsNamesOpts;
|
|
1799
1866
|
function handleCustomLevelsNamesOpts(cLevels) {
|
|
@@ -1803,14 +1870,14 @@ var __webpack_modules__ = {
|
|
|
1803
1870
|
agg[levelName.toLowerCase()] = levelNum;
|
|
1804
1871
|
return agg;
|
|
1805
1872
|
}, {});
|
|
1806
|
-
if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
|
|
1873
|
+
else if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
|
|
1807
1874
|
agg[levelName.toLowerCase()] = cLevels[levelName];
|
|
1808
1875
|
return agg;
|
|
1809
1876
|
}, {});
|
|
1810
|
-
return {};
|
|
1877
|
+
else return {};
|
|
1811
1878
|
}
|
|
1812
1879
|
},
|
|
1813
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1880
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js" (module1) {
|
|
1814
1881
|
"use strict";
|
|
1815
1882
|
module1.exports = handleCustomLevelsOpts;
|
|
1816
1883
|
function handleCustomLevelsOpts(cLevels) {
|
|
@@ -1822,74 +1889,77 @@ var __webpack_modules__ = {
|
|
|
1822
1889
|
}, {
|
|
1823
1890
|
default: 'USERLVL'
|
|
1824
1891
|
});
|
|
1825
|
-
if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
|
|
1892
|
+
else if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
|
|
1826
1893
|
agg[cLevels[levelName]] = levelName.toUpperCase();
|
|
1827
1894
|
return agg;
|
|
1828
1895
|
}, {
|
|
1829
1896
|
default: 'USERLVL'
|
|
1830
1897
|
});
|
|
1831
|
-
return {};
|
|
1898
|
+
else return {};
|
|
1832
1899
|
}
|
|
1833
1900
|
},
|
|
1834
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1901
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1835
1902
|
"use strict";
|
|
1836
1903
|
module1.exports = {
|
|
1837
|
-
buildSafeSonicBoom: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1838
|
-
createDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1839
|
-
deleteLogProperty: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1840
|
-
filterLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1841
|
-
formatTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1842
|
-
getPropertyValue: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1843
|
-
handleCustomLevelsNamesOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1844
|
-
handleCustomLevelsOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1845
|
-
interpretConditionals: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1846
|
-
isObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1847
|
-
isValidDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1848
|
-
joinLinesWithIndentation: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1849
|
-
noop: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1850
|
-
parseFactoryOptions: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1851
|
-
prettifyErrorLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1852
|
-
prettifyError: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1853
|
-
prettifyLevel: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1854
|
-
prettifyMessage: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1855
|
-
prettifyMetadata: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1856
|
-
prettifyObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1857
|
-
prettifyTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1858
|
-
splitPropertyKey: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1859
|
-
|
|
1904
|
+
buildSafeSonicBoom: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js"),
|
|
1905
|
+
createDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/create-date.js"),
|
|
1906
|
+
deleteLogProperty: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/delete-log-property.js"),
|
|
1907
|
+
filterLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/filter-log.js"),
|
|
1908
|
+
formatTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/format-time.js"),
|
|
1909
|
+
getPropertyValue: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js"),
|
|
1910
|
+
handleCustomLevelsNamesOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js"),
|
|
1911
|
+
handleCustomLevelsOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js"),
|
|
1912
|
+
interpretConditionals: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js"),
|
|
1913
|
+
isObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js"),
|
|
1914
|
+
isValidDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js"),
|
|
1915
|
+
joinLinesWithIndentation: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js"),
|
|
1916
|
+
noop: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/noop.js"),
|
|
1917
|
+
parseFactoryOptions: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js"),
|
|
1918
|
+
prettifyErrorLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js"),
|
|
1919
|
+
prettifyError: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error.js"),
|
|
1920
|
+
prettifyLevel: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-level.js"),
|
|
1921
|
+
prettifyMessage: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-message.js"),
|
|
1922
|
+
prettifyMetadata: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js"),
|
|
1923
|
+
prettifyObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js"),
|
|
1924
|
+
prettifyTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-time.js"),
|
|
1925
|
+
splitPropertyKey: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js"),
|
|
1926
|
+
stripUnsafeControlChars: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js"),
|
|
1927
|
+
getLevelLabelData: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js")
|
|
1860
1928
|
};
|
|
1861
1929
|
},
|
|
1862
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1930
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1863
1931
|
"use strict";
|
|
1864
1932
|
module1.exports = interpretConditionals;
|
|
1865
|
-
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1933
|
+
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
|
|
1866
1934
|
function interpretConditionals(messageFormat, log) {
|
|
1867
|
-
messageFormat = messageFormat.replace(/{if (.*?)}(
|
|
1935
|
+
messageFormat = messageFormat.replace(/{if (.*?)}([\s\S]*?){end}/g, replacer);
|
|
1868
1936
|
messageFormat = messageFormat.replace(/{if (.*?)}/g, '');
|
|
1869
1937
|
messageFormat = messageFormat.replace(/{end}/g, '');
|
|
1870
|
-
|
|
1938
|
+
messageFormat = messageFormat.replace(/[^\S\r\n]+/g, ' ');
|
|
1939
|
+
messageFormat = messageFormat.replace(/\n[^\S\r\n]*\n/g, '\n');
|
|
1940
|
+
return messageFormat.trim();
|
|
1871
1941
|
function replacer(_, key, value) {
|
|
1872
1942
|
const propertyValue = getPropertyValue(log, key);
|
|
1873
1943
|
if (propertyValue && value.includes(key)) return value.replace(new RegExp('{' + key + '}', 'g'), propertyValue);
|
|
1874
|
-
return '';
|
|
1944
|
+
else return '';
|
|
1875
1945
|
}
|
|
1876
1946
|
}
|
|
1877
1947
|
},
|
|
1878
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1948
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js" (module1) {
|
|
1879
1949
|
"use strict";
|
|
1880
1950
|
module1.exports = isObject;
|
|
1881
1951
|
function isObject(input) {
|
|
1882
1952
|
return '[object Object]' === Object.prototype.toString.apply(input);
|
|
1883
1953
|
}
|
|
1884
1954
|
},
|
|
1885
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1955
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js" (module1) {
|
|
1886
1956
|
"use strict";
|
|
1887
1957
|
module1.exports = isValidDate;
|
|
1888
1958
|
function isValidDate(date) {
|
|
1889
1959
|
return date instanceof Date && !Number.isNaN(date.getTime());
|
|
1890
1960
|
}
|
|
1891
1961
|
},
|
|
1892
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1962
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js" (module1) {
|
|
1893
1963
|
"use strict";
|
|
1894
1964
|
module1.exports = joinLinesWithIndentation;
|
|
1895
1965
|
function joinLinesWithIndentation({ input, ident = ' ', eol = '\n' }) {
|
|
@@ -1898,24 +1968,24 @@ var __webpack_modules__ = {
|
|
|
1898
1968
|
return lines.join(eol);
|
|
1899
1969
|
}
|
|
1900
1970
|
},
|
|
1901
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1971
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/noop.js" (module1) {
|
|
1902
1972
|
"use strict";
|
|
1903
1973
|
module1.exports = function() {};
|
|
1904
1974
|
},
|
|
1905
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
1975
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1906
1976
|
"use strict";
|
|
1907
1977
|
module1.exports = parseFactoryOptions;
|
|
1908
|
-
const { LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1909
|
-
const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1910
|
-
const handleCustomLevelsOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1911
|
-
const handleCustomLevelsNamesOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1912
|
-
const handleLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1978
|
+
const { LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
1979
|
+
const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/colors.js");
|
|
1980
|
+
const handleCustomLevelsOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js");
|
|
1981
|
+
const handleCustomLevelsNamesOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js");
|
|
1982
|
+
const handleLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
|
|
1913
1983
|
function parseFactoryOptions(options) {
|
|
1914
1984
|
const EOL = options.crlf ? '\r\n' : '\n';
|
|
1915
1985
|
const IDENT = ' ';
|
|
1916
1986
|
const { customPrettifiers, errorLikeObjectKeys, hideObject, levelFirst, levelKey, levelLabel, messageFormat, messageKey, minimumLevel, singleLine, timestampKey, translateTime } = options;
|
|
1917
1987
|
const errorProps = options.errorProps.split(',');
|
|
1918
|
-
const useOnlyCustomProps =
|
|
1988
|
+
const useOnlyCustomProps = options.useOnlyCustomProps;
|
|
1919
1989
|
const customLevels = handleCustomLevelsOpts(options.customLevels);
|
|
1920
1990
|
const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels);
|
|
1921
1991
|
const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames);
|
|
@@ -1987,16 +2057,17 @@ var __webpack_modules__ = {
|
|
|
1987
2057
|
};
|
|
1988
2058
|
}
|
|
1989
2059
|
},
|
|
1990
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2060
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1991
2061
|
"use strict";
|
|
1992
2062
|
module1.exports = prettifyErrorLog;
|
|
1993
|
-
const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1994
|
-
const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1995
|
-
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
1996
|
-
const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2063
|
+
const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
2064
|
+
const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js");
|
|
2065
|
+
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
|
|
2066
|
+
const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js");
|
|
2067
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
1997
2068
|
function prettifyErrorLog({ log, context }) {
|
|
1998
2069
|
const { EOL: eol, IDENT: ident, errorProps: errorProperties, messageKey } = context;
|
|
1999
|
-
const stack = log.stack;
|
|
2070
|
+
const stack = stripUnsafeControlChars(log.stack);
|
|
2000
2071
|
const joinedLines = joinLinesWithIndentation({
|
|
2001
2072
|
input: stack,
|
|
2002
2073
|
ident,
|
|
@@ -2009,38 +2080,41 @@ var __webpack_modules__ = {
|
|
|
2009
2080
|
propertiesToPrint = '*' === errorProperties[0] ? Object.keys(log).filter((k)=>false === excludeProperties.includes(k)) : errorProperties.filter((k)=>false === excludeProperties.includes(k));
|
|
2010
2081
|
for(let i = 0; i < propertiesToPrint.length; i += 1){
|
|
2011
2082
|
const key = propertiesToPrint[i];
|
|
2012
|
-
if (key in log
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
result = `${result}${ident}${key}: ${log[key]}${eol}`;
|
|
2083
|
+
if (key in log === false) continue;
|
|
2084
|
+
const safeKey = stripUnsafeControlChars(key);
|
|
2085
|
+
if (isObject(log[key])) {
|
|
2086
|
+
const prettifiedObject = prettifyObject({
|
|
2087
|
+
log: log[key],
|
|
2088
|
+
excludeLoggerKeys: false,
|
|
2089
|
+
context: {
|
|
2090
|
+
...context,
|
|
2091
|
+
IDENT: ident + ident
|
|
2092
|
+
}
|
|
2093
|
+
});
|
|
2094
|
+
result = `${result}${ident}${safeKey}: {${eol}${prettifiedObject}${ident}}${eol}`;
|
|
2095
|
+
continue;
|
|
2026
2096
|
}
|
|
2097
|
+
const value = stripUnsafeControlChars(log[key]);
|
|
2098
|
+
result = `${result}${ident}${safeKey}: ${value}${eol}`;
|
|
2027
2099
|
}
|
|
2028
2100
|
}
|
|
2029
2101
|
return result;
|
|
2030
2102
|
}
|
|
2031
2103
|
},
|
|
2032
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2104
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2033
2105
|
"use strict";
|
|
2034
2106
|
module1.exports = prettifyError;
|
|
2035
|
-
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2036
|
-
|
|
2107
|
+
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
|
|
2108
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
2109
|
+
function prettifyError({ keyName, lines, eol, ident, sanitizeStack = true }) {
|
|
2037
2110
|
let result = '';
|
|
2038
2111
|
const joinedLines = joinLinesWithIndentation({
|
|
2039
2112
|
input: lines,
|
|
2040
2113
|
ident,
|
|
2041
2114
|
eol
|
|
2042
2115
|
});
|
|
2043
|
-
const
|
|
2116
|
+
const safeKeyName = stripUnsafeControlChars(keyName);
|
|
2117
|
+
const splitLines = `${ident}${safeKeyName}: ${joinedLines}${eol}`.split(eol);
|
|
2044
2118
|
for(let j = 0; j < splitLines.length; j += 1){
|
|
2045
2119
|
if (0 !== j) result += eol;
|
|
2046
2120
|
const line = splitLines[j];
|
|
@@ -2050,17 +2124,19 @@ var __webpack_modules__ = {
|
|
|
2050
2124
|
const indentSize = /^\s*/.exec(line)[0].length + 4;
|
|
2051
2125
|
const indentation = ' '.repeat(indentSize);
|
|
2052
2126
|
const stackMessage = matches[2];
|
|
2053
|
-
|
|
2127
|
+
const parsedStack = JSON.parse(stackMessage);
|
|
2128
|
+
const stack = sanitizeStack ? stripUnsafeControlChars(parsedStack) : parsedStack;
|
|
2129
|
+
result += matches[1] + eol + indentation + stack.replace(/\n/g, eol + indentation);
|
|
2054
2130
|
} else result += line;
|
|
2055
2131
|
} else result += line;
|
|
2056
2132
|
}
|
|
2057
2133
|
return result;
|
|
2058
2134
|
}
|
|
2059
2135
|
},
|
|
2060
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2136
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-level.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2061
2137
|
"use strict";
|
|
2062
2138
|
module1.exports = prettifyLevel;
|
|
2063
|
-
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2139
|
+
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
|
|
2064
2140
|
function prettifyLevel({ log, context }) {
|
|
2065
2141
|
const { colorizer, customLevels, customLevelNames, levelKey, getLevelLabelData } = context;
|
|
2066
2142
|
const prettifier = context.customPrettifiers?.level;
|
|
@@ -2081,12 +2157,13 @@ var __webpack_modules__ = {
|
|
|
2081
2157
|
return labelColorized;
|
|
2082
2158
|
}
|
|
2083
2159
|
},
|
|
2084
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2160
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-message.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2085
2161
|
"use strict";
|
|
2086
2162
|
module1.exports = prettifyMessage;
|
|
2087
|
-
const { LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2088
|
-
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2089
|
-
const interpretConditionals = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2163
|
+
const { LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
2164
|
+
const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
|
|
2165
|
+
const interpretConditionals = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js");
|
|
2166
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
2090
2167
|
function prettifyMessage({ log, context }) {
|
|
2091
2168
|
const { colorizer, customLevels, levelKey, levelLabel, messageFormat, messageKey, useOnlyCustomProps } = context;
|
|
2092
2169
|
if (messageFormat && 'string' == typeof messageFormat) {
|
|
@@ -2100,7 +2177,7 @@ var __webpack_modules__ = {
|
|
|
2100
2177
|
const value = getPropertyValue(log, p1);
|
|
2101
2178
|
return void 0 !== value ? value : '';
|
|
2102
2179
|
});
|
|
2103
|
-
return colorizer.message(message);
|
|
2180
|
+
return colorizer.message(stripUnsafeControlChars(message));
|
|
2104
2181
|
}
|
|
2105
2182
|
if (messageFormat && 'function' == typeof messageFormat) {
|
|
2106
2183
|
const msg = messageFormat(log, messageKey, levelLabel, {
|
|
@@ -2110,12 +2187,13 @@ var __webpack_modules__ = {
|
|
|
2110
2187
|
}
|
|
2111
2188
|
if (messageKey in log === false) return;
|
|
2112
2189
|
if ('string' != typeof log[messageKey] && 'number' != typeof log[messageKey] && 'boolean' != typeof log[messageKey]) return;
|
|
2113
|
-
return colorizer.message(log[messageKey]);
|
|
2190
|
+
return colorizer.message(stripUnsafeControlChars(log[messageKey]));
|
|
2114
2191
|
}
|
|
2115
2192
|
},
|
|
2116
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2193
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2117
2194
|
"use strict";
|
|
2118
2195
|
module1.exports = prettifyMetadata;
|
|
2196
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
2119
2197
|
function prettifyMetadata({ log, context }) {
|
|
2120
2198
|
const { customPrettifiers: prettifiers, colorizer } = context;
|
|
2121
2199
|
let line = '';
|
|
@@ -2123,18 +2201,18 @@ var __webpack_modules__ = {
|
|
|
2123
2201
|
line += '(';
|
|
2124
2202
|
if (log.name) line += prettifiers.name ? prettifiers.name(log.name, 'name', log, {
|
|
2125
2203
|
colors: colorizer.colors
|
|
2126
|
-
}) : log.name;
|
|
2204
|
+
}) : stripUnsafeControlChars(log.name);
|
|
2127
2205
|
if (log.pid) {
|
|
2128
2206
|
const prettyPid = prettifiers.pid ? prettifiers.pid(log.pid, 'pid', log, {
|
|
2129
2207
|
colors: colorizer.colors
|
|
2130
|
-
}) : log.pid;
|
|
2208
|
+
}) : stripUnsafeControlChars(log.pid);
|
|
2131
2209
|
if (log.name && log.pid) line += '/' + prettyPid;
|
|
2132
2210
|
else line += prettyPid;
|
|
2133
2211
|
}
|
|
2134
2212
|
if (log.hostname) {
|
|
2135
2213
|
const prettyHostname = prettifiers.hostname ? prettifiers.hostname(log.hostname, 'hostname', log, {
|
|
2136
2214
|
colors: colorizer.colors
|
|
2137
|
-
}) : log.hostname;
|
|
2215
|
+
}) : stripUnsafeControlChars(log.hostname);
|
|
2138
2216
|
line += `${'(' === line ? 'on' : ' on'} ${prettyHostname}`;
|
|
2139
2217
|
}
|
|
2140
2218
|
line += ')';
|
|
@@ -2142,20 +2220,21 @@ var __webpack_modules__ = {
|
|
|
2142
2220
|
if (log.caller) {
|
|
2143
2221
|
const prettyCaller = prettifiers.caller ? prettifiers.caller(log.caller, 'caller', log, {
|
|
2144
2222
|
colors: colorizer.colors
|
|
2145
|
-
}) : log.caller;
|
|
2223
|
+
}) : stripUnsafeControlChars(log.caller);
|
|
2146
2224
|
line += `${'' === line ? '' : ' '}<${prettyCaller}>`;
|
|
2147
2225
|
}
|
|
2148
2226
|
if ('' === line) return;
|
|
2149
|
-
return line;
|
|
2227
|
+
else return line;
|
|
2150
2228
|
}
|
|
2151
2229
|
},
|
|
2152
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2230
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2153
2231
|
"use strict";
|
|
2154
2232
|
module1.exports = prettifyObject;
|
|
2155
|
-
const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2233
|
+
const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js");
|
|
2156
2234
|
const stringifySafe = __webpack_require__("../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js");
|
|
2157
|
-
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2158
|
-
const prettifyError = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2235
|
+
const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
|
|
2236
|
+
const prettifyError = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error.js");
|
|
2237
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
2159
2238
|
function prettifyObject({ log, excludeLoggerKeys = true, skipKeys = [], context }) {
|
|
2160
2239
|
const { EOL: eol, IDENT: ident, customPrettifiers, errorLikeObjectKeys: errorLikeKeys, objectColorizer, singleLine, colorizer } = context;
|
|
2161
2240
|
const keysToIgnore = [].concat(skipKeys);
|
|
@@ -2190,25 +2269,29 @@ var __webpack_modules__ = {
|
|
|
2190
2269
|
ident,
|
|
2191
2270
|
eol
|
|
2192
2271
|
});
|
|
2193
|
-
|
|
2272
|
+
const safeKeyName = stripUnsafeControlChars(keyName);
|
|
2273
|
+
result += `${ident}${objectColorizer.property(safeKeyName)}:${joinedLines.startsWith(eol) ? '' : ' '}${joinedLines}${eol}`;
|
|
2194
2274
|
});
|
|
2195
2275
|
Object.entries(errors).forEach(([keyName, keyValue])=>{
|
|
2196
|
-
const
|
|
2276
|
+
const hasCustomPrettifier = 'function' == typeof customPrettifiers[keyName];
|
|
2277
|
+
const lines = hasCustomPrettifier ? keyValue : stringifySafe(keyValue, null, 2);
|
|
2197
2278
|
if (void 0 === lines) return;
|
|
2198
2279
|
result += prettifyError({
|
|
2199
2280
|
keyName,
|
|
2200
2281
|
lines,
|
|
2201
2282
|
eol,
|
|
2202
|
-
ident
|
|
2283
|
+
ident,
|
|
2284
|
+
sanitizeStack: !hasCustomPrettifier
|
|
2203
2285
|
});
|
|
2204
2286
|
});
|
|
2205
2287
|
return result;
|
|
2206
2288
|
}
|
|
2207
2289
|
},
|
|
2208
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2290
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-time.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2209
2291
|
"use strict";
|
|
2210
2292
|
module1.exports = prettifyTime;
|
|
2211
|
-
const formatTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
2293
|
+
const formatTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/format-time.js");
|
|
2294
|
+
const stripUnsafeControlChars = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js");
|
|
2212
2295
|
function prettifyTime({ log, context }) {
|
|
2213
2296
|
const { timestampKey, translateTime: translateFormat } = context;
|
|
2214
2297
|
const prettifier = context.customPrettifiers?.time;
|
|
@@ -2217,10 +2300,10 @@ var __webpack_modules__ = {
|
|
|
2217
2300
|
else if ('timestamp' in log) time = log.timestamp;
|
|
2218
2301
|
if (null === time) return;
|
|
2219
2302
|
const output = translateFormat ? formatTime(time, translateFormat) : time;
|
|
2220
|
-
return prettifier ? prettifier(output) : `[${output}]`;
|
|
2303
|
+
return prettifier ? prettifier(output) : `[${stripUnsafeControlChars(output)}]`;
|
|
2221
2304
|
}
|
|
2222
2305
|
},
|
|
2223
|
-
"../../node_modules/.pnpm/pino-pretty@13.
|
|
2306
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js" (module1) {
|
|
2224
2307
|
"use strict";
|
|
2225
2308
|
module1.exports = splitPropertyKey;
|
|
2226
2309
|
function splitPropertyKey(key) {
|
|
@@ -2249,7 +2332,15 @@ var __webpack_modules__ = {
|
|
|
2249
2332
|
return result;
|
|
2250
2333
|
}
|
|
2251
2334
|
},
|
|
2252
|
-
"../../node_modules/.pnpm/
|
|
2335
|
+
"../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js" (module1) {
|
|
2336
|
+
"use strict";
|
|
2337
|
+
module1.exports = stripUnsafeControlChars;
|
|
2338
|
+
const unsafeControlChars = /[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/g;
|
|
2339
|
+
function stripUnsafeControlChars(input) {
|
|
2340
|
+
return String(input).replace(unsafeControlChars, '');
|
|
2341
|
+
}
|
|
2342
|
+
},
|
|
2343
|
+
"../../node_modules/.pnpm/secure-json-parse@4.1.1/node_modules/secure-json-parse/index.js" (module1) {
|
|
2253
2344
|
"use strict";
|
|
2254
2345
|
const hasBuffer = "u" > typeof Buffer;
|
|
2255
2346
|
const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
|
|
@@ -2289,12 +2380,12 @@ var __webpack_modules__ = {
|
|
|
2289
2380
|
for (const node of nodes){
|
|
2290
2381
|
if ('ignore' !== protoAction && Object.prototype.hasOwnProperty.call(node, '__proto__')) {
|
|
2291
2382
|
if (true === safe) return null;
|
|
2292
|
-
if ('error' === protoAction) throw new SyntaxError('Object contains forbidden prototype property');
|
|
2383
|
+
else if ('error' === protoAction) throw new SyntaxError('Object contains forbidden prototype property');
|
|
2293
2384
|
delete node.__proto__;
|
|
2294
2385
|
}
|
|
2295
2386
|
if ('ignore' !== constructorAction && Object.prototype.hasOwnProperty.call(node, 'constructor') && null !== node.constructor && 'object' == typeof node.constructor && Object.prototype.hasOwnProperty.call(node.constructor, 'prototype')) {
|
|
2296
2387
|
if (true === safe) return null;
|
|
2297
|
-
if ('error' === constructorAction) throw new SyntaxError('Object contains forbidden prototype property');
|
|
2388
|
+
else if ('error' === constructorAction) throw new SyntaxError('Object contains forbidden prototype property');
|
|
2298
2389
|
delete node.constructor;
|
|
2299
2390
|
}
|
|
2300
2391
|
for(const key in node){
|
|
@@ -2317,15 +2408,17 @@ var __webpack_modules__ = {
|
|
|
2317
2408
|
function safeParse(text, reviver) {
|
|
2318
2409
|
const { stackTraceLimit } = Error;
|
|
2319
2410
|
Error.stackTraceLimit = 0;
|
|
2411
|
+
let result;
|
|
2320
2412
|
try {
|
|
2321
|
-
|
|
2413
|
+
result = _parse(text, reviver, {
|
|
2322
2414
|
safe: true
|
|
2323
2415
|
});
|
|
2324
2416
|
} catch {
|
|
2325
|
-
|
|
2417
|
+
result = void 0;
|
|
2326
2418
|
} finally{
|
|
2327
2419
|
Error.stackTraceLimit = stackTraceLimit;
|
|
2328
2420
|
}
|
|
2421
|
+
return result;
|
|
2329
2422
|
}
|
|
2330
2423
|
module1.exports = parse;
|
|
2331
2424
|
module1.exports["default"] = parse;
|
|
@@ -2333,19 +2426,36 @@ var __webpack_modules__ = {
|
|
|
2333
2426
|
module1.exports.safeParse = safeParse;
|
|
2334
2427
|
module1.exports.scan = filter;
|
|
2335
2428
|
},
|
|
2336
|
-
"../../node_modules/.pnpm/sonic-boom@
|
|
2429
|
+
"../../node_modules/.pnpm/sonic-boom@5.0.2/node_modules/sonic-boom/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2337
2430
|
"use strict";
|
|
2338
|
-
const fs = __webpack_require__("fs");
|
|
2339
|
-
const EventEmitter = __webpack_require__("events");
|
|
2340
|
-
const inherits = __webpack_require__("util").inherits;
|
|
2341
|
-
const path = __webpack_require__("path");
|
|
2431
|
+
const fs = __webpack_require__("node:fs");
|
|
2432
|
+
const EventEmitter = __webpack_require__("node:events");
|
|
2433
|
+
const inherits = __webpack_require__("node:util").inherits;
|
|
2434
|
+
const path = __webpack_require__("node:path");
|
|
2435
|
+
const assert = __webpack_require__("node:assert");
|
|
2342
2436
|
const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
|
|
2343
|
-
const assert = __webpack_require__("assert");
|
|
2344
2437
|
const BUSY_WRITE_TIMEOUT = 100;
|
|
2345
2438
|
const kEmptyBuffer = Buffer.allocUnsafe(0);
|
|
2346
2439
|
const MAX_WRITE = 16384;
|
|
2347
2440
|
const kContentModeBuffer = 'buffer';
|
|
2348
2441
|
const kContentModeUtf8 = 'utf8';
|
|
2442
|
+
const kFlush = Symbol('kFlush');
|
|
2443
|
+
const kFlushSyncIdle = 0;
|
|
2444
|
+
const kFlushSyncRetry = 1;
|
|
2445
|
+
const kFlushSyncInWriteEvent = 2;
|
|
2446
|
+
const kFlushSyncInFlight = 3;
|
|
2447
|
+
function isIgnorableFsyncError(err) {
|
|
2448
|
+
switch(err?.code){
|
|
2449
|
+
case 'EBADF':
|
|
2450
|
+
case 'EINVAL':
|
|
2451
|
+
case 'ENOTSUP':
|
|
2452
|
+
case 'EOPNOTSUPP':
|
|
2453
|
+
case 'EROFS':
|
|
2454
|
+
return true;
|
|
2455
|
+
default:
|
|
2456
|
+
return false;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2349
2459
|
const [major, minor] = (process.versions.node || '0.0').split('.').map(Number);
|
|
2350
2460
|
const kCopyBuffer = major >= 22 && minor >= 7;
|
|
2351
2461
|
function openFile(file, sonic) {
|
|
@@ -2372,8 +2482,8 @@ var __webpack_modules__ = {
|
|
|
2372
2482
|
if (sonic.sync) process.nextTick(()=>sonic.emit('ready'));
|
|
2373
2483
|
else sonic.emit('ready');
|
|
2374
2484
|
if (sonic.destroyed) return;
|
|
2375
|
-
if (!sonic._writing && sonic._len > sonic.minLength || sonic._flushPending) sonic._actualWrite();
|
|
2376
|
-
else if (reopening) process.nextTick(
|
|
2485
|
+
if (!sonic._writing && (sonic._len > sonic.minLength || sonic._flushPending)) sonic._actualWrite();
|
|
2486
|
+
else if (reopening && !sonic._writing) process.nextTick(emitDrain, sonic);
|
|
2377
2487
|
}
|
|
2378
2488
|
const flags = sonic.append ? 'a' : 'w';
|
|
2379
2489
|
const mode = sonic.mode;
|
|
@@ -2397,7 +2507,7 @@ var __webpack_modules__ = {
|
|
|
2397
2507
|
}
|
|
2398
2508
|
function SonicBoom(opts) {
|
|
2399
2509
|
if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
|
|
2400
|
-
let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir, retryEAGAIN, fsync, contentMode, mode } = opts || {};
|
|
2510
|
+
let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir, retryEAGAIN, maxWriteRetries, fsync, contentMode, mode } = opts || {};
|
|
2401
2511
|
fd = fd || dest;
|
|
2402
2512
|
this._len = 0;
|
|
2403
2513
|
this.fd = -1;
|
|
@@ -2407,7 +2517,11 @@ var __webpack_modules__ = {
|
|
|
2407
2517
|
this._ending = false;
|
|
2408
2518
|
this._reopening = false;
|
|
2409
2519
|
this._asyncDrainScheduled = false;
|
|
2410
|
-
this._flushPending =
|
|
2520
|
+
this._flushPending = 0;
|
|
2521
|
+
this._flushInProgress = 0;
|
|
2522
|
+
this._emittingFlush = false;
|
|
2523
|
+
this._emittingWrite = false;
|
|
2524
|
+
this._retryTimer = null;
|
|
2411
2525
|
this._hwm = Math.max(minLength || 0, 16387);
|
|
2412
2526
|
this.file = null;
|
|
2413
2527
|
this.destroyed = false;
|
|
@@ -2422,6 +2536,8 @@ var __webpack_modules__ = {
|
|
|
2422
2536
|
this.append = append || false;
|
|
2423
2537
|
this.mode = mode;
|
|
2424
2538
|
this.retryEAGAIN = retryEAGAIN || (()=>true);
|
|
2539
|
+
this.maxWriteRetries = maxWriteRetries || 0;
|
|
2540
|
+
this._writeRetries = 0;
|
|
2425
2541
|
this.mkdir = mkdir || false;
|
|
2426
2542
|
let fsWriteSync;
|
|
2427
2543
|
let fsWrite;
|
|
@@ -2456,23 +2572,41 @@ var __webpack_modules__ = {
|
|
|
2456
2572
|
if (this.minLength >= this.maxWrite) throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);
|
|
2457
2573
|
this.release = (err, n)=>{
|
|
2458
2574
|
if (err) {
|
|
2459
|
-
|
|
2575
|
+
const isRetryableErr = 'EAGAIN' === err.code || 'EBUSY' === err.code;
|
|
2576
|
+
if (isRetryableErr) this._writeRetries++;
|
|
2577
|
+
const retriesExhausted = this.maxWriteRetries > 0 && this._writeRetries > this.maxWriteRetries;
|
|
2578
|
+
if (isRetryableErr && !retriesExhausted && this.retryEAGAIN(err, this._writingBuf.length, this._len - this._writingBuf.length)) if (this.sync) try {
|
|
2460
2579
|
sleep(BUSY_WRITE_TIMEOUT);
|
|
2461
2580
|
this.release(void 0, 0);
|
|
2462
2581
|
} catch (err) {
|
|
2463
2582
|
this.release(err);
|
|
2464
2583
|
}
|
|
2465
|
-
else setTimeout(
|
|
2584
|
+
else this._retryTimer = setTimeout(()=>{
|
|
2585
|
+
this._retryTimer = null;
|
|
2586
|
+
fsWrite();
|
|
2587
|
+
}, BUSY_WRITE_TIMEOUT);
|
|
2466
2588
|
else {
|
|
2467
2589
|
this._writing = false;
|
|
2468
2590
|
this.emit('error', err);
|
|
2469
2591
|
}
|
|
2470
2592
|
return;
|
|
2471
2593
|
}
|
|
2472
|
-
this.
|
|
2594
|
+
if (n > 0) this._writeRetries = 0;
|
|
2473
2595
|
const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
|
|
2474
2596
|
this._len = releasedBufObj.len;
|
|
2475
2597
|
this._writingBuf = releasedBufObj.writingBuf;
|
|
2598
|
+
this._emittingWrite = true;
|
|
2599
|
+
try {
|
|
2600
|
+
this.emit('write', n);
|
|
2601
|
+
} finally{
|
|
2602
|
+
this._emittingWrite = false;
|
|
2603
|
+
}
|
|
2604
|
+
if (this.destroyed) {
|
|
2605
|
+
this._writing = false;
|
|
2606
|
+
if (this._flushPending > 0) if (0 === this._len) scheduleDrain(this);
|
|
2607
|
+
else this.emit(kFlush, new Error('SonicBoom destroyed'));
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2476
2610
|
if (this._writingBuf.length) {
|
|
2477
2611
|
if (!this.sync) return void fsWrite();
|
|
2478
2612
|
try {
|
|
@@ -2493,27 +2627,24 @@ var __webpack_modules__ = {
|
|
|
2493
2627
|
this._writing = false;
|
|
2494
2628
|
this._reopening = false;
|
|
2495
2629
|
this.reopen();
|
|
2496
|
-
} else if (len > this.minLength) this._actualWrite();
|
|
2630
|
+
} else if (len > 0 && (len > this.minLength || this._flushPending)) this._actualWrite();
|
|
2497
2631
|
else if (this._ending) if (len > 0) this._actualWrite();
|
|
2498
2632
|
else {
|
|
2499
2633
|
this._writing = false;
|
|
2500
|
-
|
|
2634
|
+
finishEnding(this);
|
|
2501
2635
|
}
|
|
2502
2636
|
else {
|
|
2503
2637
|
this._writing = false;
|
|
2504
|
-
|
|
2505
|
-
if (!this._asyncDrainScheduled) {
|
|
2506
|
-
this._asyncDrainScheduled = true;
|
|
2507
|
-
process.nextTick(emitDrain, this);
|
|
2508
|
-
}
|
|
2509
|
-
} else this.emit('drain');
|
|
2638
|
+
scheduleDrain(this);
|
|
2510
2639
|
}
|
|
2511
2640
|
};
|
|
2512
2641
|
this.on('newListener', function(name) {
|
|
2513
|
-
if ('drain' === name) this._asyncDrainScheduled = false;
|
|
2642
|
+
if ('drain' === name || name === kFlush) this._asyncDrainScheduled = false;
|
|
2514
2643
|
});
|
|
2515
2644
|
if (0 !== this._periodicFlush) {
|
|
2516
|
-
this._periodicFlushTimer = setInterval(()=>
|
|
2645
|
+
this._periodicFlushTimer = setInterval(()=>{
|
|
2646
|
+
if (0 === this._flushPending && 0 === this._flushInProgress) this.flush(null);
|
|
2647
|
+
}, this._periodicFlush);
|
|
2517
2648
|
this._periodicFlushTimer.unref();
|
|
2518
2649
|
}
|
|
2519
2650
|
}
|
|
@@ -2526,11 +2657,37 @@ var __webpack_modules__ = {
|
|
|
2526
2657
|
len
|
|
2527
2658
|
};
|
|
2528
2659
|
}
|
|
2660
|
+
function scheduleDrain(sonic) {
|
|
2661
|
+
if (sonic.sync) {
|
|
2662
|
+
if (!sonic._asyncDrainScheduled) {
|
|
2663
|
+
sonic._asyncDrainScheduled = true;
|
|
2664
|
+
process.nextTick(emitDrain, sonic);
|
|
2665
|
+
}
|
|
2666
|
+
} else emitDrain(sonic);
|
|
2667
|
+
}
|
|
2529
2668
|
function emitDrain(sonic) {
|
|
2530
|
-
const hasListeners = sonic.listenerCount('drain') > 0;
|
|
2669
|
+
const hasListeners = sonic.listenerCount('drain') > 0 || sonic.listenerCount(kFlush) > 0;
|
|
2531
2670
|
if (!hasListeners) return;
|
|
2532
2671
|
sonic._asyncDrainScheduled = false;
|
|
2533
|
-
sonic.
|
|
2672
|
+
if (sonic._writing) return;
|
|
2673
|
+
emitFlush(sonic);
|
|
2674
|
+
if (sonic._writing || sonic.destroyed) return;
|
|
2675
|
+
if (sonic.listenerCount('drain') > 0) sonic.emit('drain');
|
|
2676
|
+
}
|
|
2677
|
+
function emitFlush(sonic) {
|
|
2678
|
+
if (sonic._emittingFlush) return;
|
|
2679
|
+
sonic._emittingFlush = true;
|
|
2680
|
+
try {
|
|
2681
|
+
sonic.emit(kFlush);
|
|
2682
|
+
} finally{
|
|
2683
|
+
sonic._emittingFlush = false;
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
function finishEnding(sonic) {
|
|
2687
|
+
if (!sonic._ending || sonic._writing || sonic.destroyed) return;
|
|
2688
|
+
if (sonic._len > 0) return void sonic._actualWrite();
|
|
2689
|
+
if (sonic._flushPending > 0) emitFlush(sonic);
|
|
2690
|
+
if (0 === sonic._flushPending && 0 === sonic._flushInProgress && !sonic._writing && 0 === sonic._len) actualClose(sonic);
|
|
2534
2691
|
}
|
|
2535
2692
|
inherits(SonicBoom, EventEmitter);
|
|
2536
2693
|
function mergeBuf(bufs, len) {
|
|
@@ -2577,27 +2734,49 @@ var __webpack_modules__ = {
|
|
|
2577
2734
|
return this._len < this._hwm;
|
|
2578
2735
|
}
|
|
2579
2736
|
function callFlushCallbackOnDrain(cb) {
|
|
2580
|
-
this._flushPending
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2737
|
+
this._flushPending++;
|
|
2738
|
+
let waiting = true;
|
|
2739
|
+
let completed = false;
|
|
2740
|
+
let flushing = false;
|
|
2741
|
+
const stopWaiting = ()=>{
|
|
2742
|
+
if (!waiting) return false;
|
|
2743
|
+
waiting = false;
|
|
2744
|
+
this.off(kFlush, onDrain);
|
|
2745
|
+
this.off('error', onError);
|
|
2746
|
+
return true;
|
|
2747
|
+
};
|
|
2748
|
+
const complete = (err, finish = true)=>{
|
|
2749
|
+
if (completed) return;
|
|
2750
|
+
completed = true;
|
|
2751
|
+
if (flushing) this._flushInProgress--;
|
|
2752
|
+
try {
|
|
2753
|
+
cb(err);
|
|
2754
|
+
} finally{
|
|
2755
|
+
if (finish) finishEnding(this);
|
|
2756
|
+
}
|
|
2757
|
+
};
|
|
2758
|
+
const onDrain = (err)=>{
|
|
2759
|
+
if (!stopWaiting()) return;
|
|
2760
|
+
this._flushPending--;
|
|
2761
|
+
if (err) return void complete(err, false);
|
|
2762
|
+
this._flushInProgress++;
|
|
2763
|
+
flushing = true;
|
|
2764
|
+
if (this._fsync || this.destroyed) complete();
|
|
2765
|
+
else try {
|
|
2586
2766
|
fs.fsync(this.fd, (err)=>{
|
|
2587
|
-
|
|
2588
|
-
|
|
2767
|
+
if (isIgnorableFsyncError(err)) return void complete();
|
|
2768
|
+
complete(err);
|
|
2589
2769
|
});
|
|
2590
2770
|
} catch (err) {
|
|
2591
|
-
|
|
2771
|
+
complete(err);
|
|
2592
2772
|
}
|
|
2593
|
-
this.off('error', onError);
|
|
2594
2773
|
};
|
|
2595
2774
|
const onError = (err)=>{
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2775
|
+
if (!stopWaiting()) return;
|
|
2776
|
+
this._flushPending--;
|
|
2777
|
+
complete(err, false);
|
|
2599
2778
|
};
|
|
2600
|
-
this.once(
|
|
2779
|
+
this.once(kFlush, onDrain);
|
|
2601
2780
|
this.once('error', onError);
|
|
2602
2781
|
}
|
|
2603
2782
|
function flush(cb) {
|
|
@@ -2607,7 +2786,7 @@ var __webpack_modules__ = {
|
|
|
2607
2786
|
if (cb) return void cb(error);
|
|
2608
2787
|
throw error;
|
|
2609
2788
|
}
|
|
2610
|
-
if (this.minLength <= 0) return void cb?.();
|
|
2789
|
+
if (this.minLength <= 0 && !this._writing && 0 === this._len) return void cb?.();
|
|
2611
2790
|
if (cb) callFlushCallbackOnDrain.call(this, cb);
|
|
2612
2791
|
if (this._writing) return;
|
|
2613
2792
|
if (0 === this._bufs.length) this._bufs.push('');
|
|
@@ -2620,7 +2799,7 @@ var __webpack_modules__ = {
|
|
|
2620
2799
|
if (cb) return void cb(error);
|
|
2621
2800
|
throw error;
|
|
2622
2801
|
}
|
|
2623
|
-
if (this.minLength <= 0) return void cb?.();
|
|
2802
|
+
if (this.minLength <= 0 && !this._writing && 0 === this._len) return void cb?.();
|
|
2624
2803
|
if (cb) callFlushCallbackOnDrain.call(this, cb);
|
|
2625
2804
|
if (this._writing) return;
|
|
2626
2805
|
if (0 === this._bufs.length) {
|
|
@@ -2632,7 +2811,7 @@ var __webpack_modules__ = {
|
|
|
2632
2811
|
SonicBoom.prototype.reopen = function(file) {
|
|
2633
2812
|
if (this.destroyed) throw new Error('SonicBoom destroyed');
|
|
2634
2813
|
if (this._opening) return void this.once('ready', ()=>{
|
|
2635
|
-
this.reopen(file);
|
|
2814
|
+
if (!this.destroyed) this.reopen(file);
|
|
2636
2815
|
});
|
|
2637
2816
|
if (this._ending) return;
|
|
2638
2817
|
if (!this.file) throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");
|
|
@@ -2650,70 +2829,109 @@ var __webpack_modules__ = {
|
|
|
2650
2829
|
SonicBoom.prototype.end = function() {
|
|
2651
2830
|
if (this.destroyed) throw new Error('SonicBoom destroyed');
|
|
2652
2831
|
if (this._opening) return void this.once('ready', ()=>{
|
|
2653
|
-
this.end();
|
|
2832
|
+
if (!this.destroyed) this.end();
|
|
2654
2833
|
});
|
|
2655
2834
|
if (this._ending) return;
|
|
2656
2835
|
this._ending = true;
|
|
2657
2836
|
if (this._writing) return;
|
|
2658
2837
|
if (this._len > 0 && this.fd >= 0) this._actualWrite();
|
|
2659
|
-
else
|
|
2838
|
+
else finishEnding(this);
|
|
2660
2839
|
};
|
|
2661
|
-
function
|
|
2662
|
-
if (
|
|
2663
|
-
if (
|
|
2664
|
-
if (!
|
|
2665
|
-
|
|
2666
|
-
|
|
2840
|
+
function beginFlushSync(sonic) {
|
|
2841
|
+
if (sonic.destroyed) throw new Error('SonicBoom destroyed');
|
|
2842
|
+
if (sonic.fd < 0) throw new Error('sonic boom is not ready yet');
|
|
2843
|
+
if (!sonic._writing || sonic._opening) return kFlushSyncIdle;
|
|
2844
|
+
if (null !== sonic._retryTimer) {
|
|
2845
|
+
clearTimeout(sonic._retryTimer);
|
|
2846
|
+
sonic._retryTimer = null;
|
|
2847
|
+
return kFlushSyncRetry;
|
|
2667
2848
|
}
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2849
|
+
if (sonic._emittingWrite) return kFlushSyncInWriteEvent;
|
|
2850
|
+
return kFlushSyncInFlight;
|
|
2851
|
+
}
|
|
2852
|
+
function endFlushSyncRetry(sonic) {
|
|
2853
|
+
sonic._writing = false;
|
|
2854
|
+
process.nextTick(()=>{
|
|
2855
|
+
if (sonic.destroyed || sonic._writing) return;
|
|
2856
|
+
if (sonic._reopening) {
|
|
2857
|
+
sonic._reopening = false;
|
|
2858
|
+
sonic.reopen();
|
|
2859
|
+
} else if (sonic._ending) finishEnding(sonic);
|
|
2860
|
+
else if (sonic._len > 0 && (sonic._len > sonic.minLength || sonic._flushPending)) sonic._actualWrite();
|
|
2861
|
+
else emitDrain(sonic);
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
function flushSync() {
|
|
2865
|
+
const state = beginFlushSync(this);
|
|
2866
|
+
try {
|
|
2867
|
+
if (state !== kFlushSyncInFlight && this._writingBuf.length > 0) {
|
|
2868
|
+
this._bufs.unshift(this._writingBuf);
|
|
2869
|
+
this._writingBuf = '';
|
|
2681
2870
|
}
|
|
2871
|
+
let buf = '';
|
|
2872
|
+
while(this._bufs.length || buf.length){
|
|
2873
|
+
if (buf.length <= 0) buf = this._bufs[0];
|
|
2874
|
+
try {
|
|
2875
|
+
const n = Buffer.isBuffer(buf) ? fs.writeSync(this.fd, buf) : fs.writeSync(this.fd, buf, 'utf8');
|
|
2876
|
+
this._writeRetries = 0;
|
|
2877
|
+
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
2878
|
+
buf = releasedBufObj.writingBuf;
|
|
2879
|
+
this._len = releasedBufObj.len;
|
|
2880
|
+
if (buf.length <= 0) this._bufs.shift();
|
|
2881
|
+
} catch (err) {
|
|
2882
|
+
const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
|
|
2883
|
+
if (shouldRetry) this._writeRetries++;
|
|
2884
|
+
const retriesExhausted = this.maxWriteRetries > 0 && this._writeRetries > this.maxWriteRetries;
|
|
2885
|
+
if (!shouldRetry || retriesExhausted || !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
|
|
2886
|
+
sleep(BUSY_WRITE_TIMEOUT);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
} finally{
|
|
2890
|
+
if (state === kFlushSyncRetry) endFlushSyncRetry(this);
|
|
2682
2891
|
}
|
|
2683
2892
|
try {
|
|
2684
2893
|
fs.fsyncSync(this.fd);
|
|
2685
2894
|
} catch {}
|
|
2686
2895
|
}
|
|
2687
2896
|
function flushBufferSync() {
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
this.
|
|
2705
|
-
|
|
2897
|
+
const state = beginFlushSync(this);
|
|
2898
|
+
try {
|
|
2899
|
+
if (state !== kFlushSyncInFlight && this._writingBuf.length > 0) {
|
|
2900
|
+
this._bufs.unshift([
|
|
2901
|
+
this._writingBuf
|
|
2902
|
+
]);
|
|
2903
|
+
this._lens.unshift(this._writingBuf.length);
|
|
2904
|
+
this._writingBuf = kEmptyBuffer;
|
|
2905
|
+
}
|
|
2906
|
+
let buf = kEmptyBuffer;
|
|
2907
|
+
while(this._bufs.length || buf.length){
|
|
2908
|
+
if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
|
|
2909
|
+
try {
|
|
2910
|
+
const n = fs.writeSync(this.fd, buf);
|
|
2911
|
+
this._writeRetries = 0;
|
|
2912
|
+
buf = buf.subarray(n);
|
|
2913
|
+
this._len = Math.max(this._len - n, 0);
|
|
2914
|
+
if (buf.length <= 0) {
|
|
2915
|
+
this._bufs.shift();
|
|
2916
|
+
this._lens.shift();
|
|
2917
|
+
}
|
|
2918
|
+
} catch (err) {
|
|
2919
|
+
const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
|
|
2920
|
+
if (shouldRetry) this._writeRetries++;
|
|
2921
|
+
const retriesExhausted = this.maxWriteRetries > 0 && this._writeRetries > this.maxWriteRetries;
|
|
2922
|
+
if (!shouldRetry || retriesExhausted || !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
|
|
2923
|
+
sleep(BUSY_WRITE_TIMEOUT);
|
|
2706
2924
|
}
|
|
2707
|
-
} catch (err) {
|
|
2708
|
-
const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
|
|
2709
|
-
if (shouldRetry && !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
|
|
2710
|
-
sleep(BUSY_WRITE_TIMEOUT);
|
|
2711
2925
|
}
|
|
2926
|
+
} finally{
|
|
2927
|
+
if (state === kFlushSyncRetry) endFlushSyncRetry(this);
|
|
2712
2928
|
}
|
|
2713
2929
|
}
|
|
2714
2930
|
SonicBoom.prototype.destroy = function() {
|
|
2715
2931
|
if (this.destroyed) return;
|
|
2932
|
+
const opening = this._opening;
|
|
2716
2933
|
actualClose(this);
|
|
2934
|
+
if (opening && this._flushPending > 0) this.emit('error', new Error('SonicBoom destroyed'));
|
|
2717
2935
|
};
|
|
2718
2936
|
function actualWrite() {
|
|
2719
2937
|
const release = this.release;
|
|
@@ -2743,11 +2961,25 @@ var __webpack_modules__ = {
|
|
|
2743
2961
|
}
|
|
2744
2962
|
}
|
|
2745
2963
|
function actualClose(sonic) {
|
|
2746
|
-
if (
|
|
2964
|
+
if (sonic.destroyed) return;
|
|
2965
|
+
if (-1 === sonic.fd) {
|
|
2966
|
+
sonic.destroyed = true;
|
|
2967
|
+
sonic.once('ready', ()=>{
|
|
2968
|
+
sonic.destroyed = false;
|
|
2969
|
+
actualClose(sonic);
|
|
2970
|
+
});
|
|
2971
|
+
return;
|
|
2972
|
+
}
|
|
2747
2973
|
if (void 0 !== sonic._periodicFlushTimer) clearInterval(sonic._periodicFlushTimer);
|
|
2748
2974
|
sonic.destroyed = true;
|
|
2749
2975
|
sonic._bufs = [];
|
|
2750
2976
|
sonic._lens = [];
|
|
2977
|
+
if (null !== sonic._retryTimer) {
|
|
2978
|
+
clearTimeout(sonic._retryTimer);
|
|
2979
|
+
sonic._retryTimer = null;
|
|
2980
|
+
sonic._writing = false;
|
|
2981
|
+
}
|
|
2982
|
+
if (sonic._flushPending > 0 && !sonic._writing) sonic.emit(kFlush, new Error('SonicBoom destroyed'));
|
|
2751
2983
|
assert('number' == typeof sonic.fd, `sonic.fd must be a number, got ${typeof sonic.fd}`);
|
|
2752
2984
|
try {
|
|
2753
2985
|
fs.fsync(sonic.fd, closeWrapped);
|
|
@@ -2777,5 +3009,5 @@ function __webpack_require__(moduleId) {
|
|
|
2777
3009
|
__webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
|
|
2778
3010
|
return module1.exports;
|
|
2779
3011
|
}
|
|
2780
|
-
var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.
|
|
3012
|
+
var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/index.js");
|
|
2781
3013
|
module.exports = __webpack_exports__;
|