@towns-protocol/xchain-monitor 0.0.429 → 0.0.431
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/.turbo/turbo-build.log +11 -10
- package/Dockerfile +13 -19
- package/dist/node_esbuild.cjs +5835 -5856
- package/dist/node_esbuild.cjs.map +4 -4
- package/dist/pino-file.cjs +204 -104
- package/dist/pino-file.cjs.map +3 -3
- package/dist/pino-pretty.cjs +134 -102
- package/dist/pino-pretty.cjs.map +3 -3
- package/dist/pino-worker.cjs +213 -6231
- package/dist/pino-worker.cjs.map +4 -4
- package/dist/thread-stream-worker.cjs +8 -12
- package/dist/thread-stream-worker.cjs.map +3 -3
- package/package.json +6 -6
package/dist/pino-file.cjs
CHANGED
|
@@ -4,9 +4,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
4
4
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// ../../node_modules/pino-std-serializers/lib/err-helpers.js
|
|
7
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js
|
|
8
8
|
var require_err_helpers = __commonJS({
|
|
9
|
-
"../../node_modules/pino-std-serializers/lib/err-helpers.js"(exports2, module2) {
|
|
9
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js"(exports2, module2) {
|
|
10
10
|
"use strict";
|
|
11
11
|
var isErrorLike = (err) => {
|
|
12
12
|
return err && typeof err.message === "string";
|
|
@@ -61,9 +61,9 @@ var require_err_helpers = __commonJS({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// ../../node_modules/pino-std-serializers/lib/err-proto.js
|
|
64
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js
|
|
65
65
|
var require_err_proto = __commonJS({
|
|
66
|
-
"../../node_modules/pino-std-serializers/lib/err-proto.js"(exports2, module2) {
|
|
66
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js"(exports2, module2) {
|
|
67
67
|
"use strict";
|
|
68
68
|
var seen = Symbol("circular-ref-tag");
|
|
69
69
|
var rawSymbol = Symbol("pino-raw-err-ref");
|
|
@@ -112,9 +112,9 @@ var require_err_proto = __commonJS({
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
// ../../node_modules/pino-std-serializers/lib/err.js
|
|
115
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js
|
|
116
116
|
var require_err = __commonJS({
|
|
117
|
-
"../../node_modules/pino-std-serializers/lib/err.js"(exports2, module2) {
|
|
117
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js"(exports2, module2) {
|
|
118
118
|
"use strict";
|
|
119
119
|
module2.exports = errSerializer;
|
|
120
120
|
var { messageWithCauses, stackWithCauses, isErrorLike } = require_err_helpers();
|
|
@@ -152,9 +152,9 @@ var require_err = __commonJS({
|
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
|
|
155
|
-
// ../../node_modules/pino-std-serializers/lib/err-with-cause.js
|
|
155
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js
|
|
156
156
|
var require_err_with_cause = __commonJS({
|
|
157
|
-
"../../node_modules/pino-std-serializers/lib/err-with-cause.js"(exports2, module2) {
|
|
157
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js"(exports2, module2) {
|
|
158
158
|
"use strict";
|
|
159
159
|
module2.exports = errWithCauseSerializer;
|
|
160
160
|
var { isErrorLike } = require_err_helpers();
|
|
@@ -195,9 +195,9 @@ var require_err_with_cause = __commonJS({
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
// ../../node_modules/pino-std-serializers/lib/req.js
|
|
198
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js
|
|
199
199
|
var require_req = __commonJS({
|
|
200
|
-
"../../node_modules/pino-std-serializers/lib/req.js"(exports2, module2) {
|
|
200
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js"(exports2, module2) {
|
|
201
201
|
"use strict";
|
|
202
202
|
module2.exports = {
|
|
203
203
|
mapHttpRequest,
|
|
@@ -290,9 +290,9 @@ var require_req = __commonJS({
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
// ../../node_modules/pino-std-serializers/lib/res.js
|
|
293
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js
|
|
294
294
|
var require_res = __commonJS({
|
|
295
|
-
"../../node_modules/pino-std-serializers/lib/res.js"(exports2, module2) {
|
|
295
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js"(exports2, module2) {
|
|
296
296
|
"use strict";
|
|
297
297
|
module2.exports = {
|
|
298
298
|
mapHttpResponse,
|
|
@@ -339,9 +339,9 @@ var require_res = __commonJS({
|
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
|
|
342
|
-
// ../../node_modules/pino-std-serializers/index.js
|
|
342
|
+
// ../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js
|
|
343
343
|
var require_pino_std_serializers = __commonJS({
|
|
344
|
-
"../../node_modules/pino-std-serializers/index.js"(exports2, module2) {
|
|
344
|
+
"../../node_modules/.bun/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js"(exports2, module2) {
|
|
345
345
|
"use strict";
|
|
346
346
|
var errSerializer = require_err();
|
|
347
347
|
var errWithCauseSerializer = require_err_with_cause();
|
|
@@ -376,9 +376,9 @@ var require_pino_std_serializers = __commonJS({
|
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
// ../../node_modules/pino/lib/caller.js
|
|
379
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/caller.js
|
|
380
380
|
var require_caller = __commonJS({
|
|
381
|
-
"../../node_modules/pino/lib/caller.js"(exports2, module2) {
|
|
381
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/caller.js"(exports2, module2) {
|
|
382
382
|
"use strict";
|
|
383
383
|
function noOpPrepareStackTrace(_, stack) {
|
|
384
384
|
return stack;
|
|
@@ -404,9 +404,9 @@ var require_caller = __commonJS({
|
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
|
|
407
|
-
// ../../node_modules/fast-redact/lib/validator.js
|
|
407
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/validator.js
|
|
408
408
|
var require_validator = __commonJS({
|
|
409
|
-
"../../node_modules/fast-redact/lib/validator.js"(exports2, module2) {
|
|
409
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/validator.js"(exports2, module2) {
|
|
410
410
|
"use strict";
|
|
411
411
|
module2.exports = validator;
|
|
412
412
|
function validator(opts = {}) {
|
|
@@ -439,17 +439,17 @@ var require_validator = __commonJS({
|
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
|
|
442
|
-
// ../../node_modules/fast-redact/lib/rx.js
|
|
442
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js
|
|
443
443
|
var require_rx = __commonJS({
|
|
444
|
-
"../../node_modules/fast-redact/lib/rx.js"(exports2, module2) {
|
|
444
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js"(exports2, module2) {
|
|
445
445
|
"use strict";
|
|
446
446
|
module2.exports = /[^.[\]]+|\[((?:.)*?)\]/g;
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
|
|
450
|
-
// ../../node_modules/fast-redact/lib/parse.js
|
|
450
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/parse.js
|
|
451
451
|
var require_parse = __commonJS({
|
|
452
|
-
"../../node_modules/fast-redact/lib/parse.js"(exports2, module2) {
|
|
452
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/parse.js"(exports2, module2) {
|
|
453
453
|
"use strict";
|
|
454
454
|
var rx = require_rx();
|
|
455
455
|
module2.exports = parse;
|
|
@@ -493,9 +493,9 @@ var require_parse = __commonJS({
|
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
495
|
|
|
496
|
-
// ../../node_modules/fast-redact/lib/redactor.js
|
|
496
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/redactor.js
|
|
497
497
|
var require_redactor = __commonJS({
|
|
498
|
-
"../../node_modules/fast-redact/lib/redactor.js"(exports2, module2) {
|
|
498
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/redactor.js"(exports2, module2) {
|
|
499
499
|
"use strict";
|
|
500
500
|
var rx = require_rx();
|
|
501
501
|
module2.exports = redactor;
|
|
@@ -589,9 +589,9 @@ var require_redactor = __commonJS({
|
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
|
|
592
|
-
// ../../node_modules/fast-redact/lib/modifiers.js
|
|
592
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/modifiers.js
|
|
593
593
|
var require_modifiers = __commonJS({
|
|
594
|
-
"../../node_modules/fast-redact/lib/modifiers.js"(exports2, module2) {
|
|
594
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/modifiers.js"(exports2, module2) {
|
|
595
595
|
"use strict";
|
|
596
596
|
module2.exports = {
|
|
597
597
|
groupRedact,
|
|
@@ -809,9 +809,9 @@ var require_modifiers = __commonJS({
|
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
811
|
|
|
812
|
-
// ../../node_modules/fast-redact/lib/restorer.js
|
|
812
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/restorer.js
|
|
813
813
|
var require_restorer = __commonJS({
|
|
814
|
-
"../../node_modules/fast-redact/lib/restorer.js"(exports2, module2) {
|
|
814
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/restorer.js"(exports2, module2) {
|
|
815
815
|
"use strict";
|
|
816
816
|
var { groupRestore, nestedRestore } = require_modifiers();
|
|
817
817
|
module2.exports = restorer;
|
|
@@ -871,9 +871,9 @@ var require_restorer = __commonJS({
|
|
|
871
871
|
}
|
|
872
872
|
});
|
|
873
873
|
|
|
874
|
-
// ../../node_modules/fast-redact/lib/state.js
|
|
874
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/state.js
|
|
875
875
|
var require_state = __commonJS({
|
|
876
|
-
"../../node_modules/fast-redact/lib/state.js"(exports2, module2) {
|
|
876
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/lib/state.js"(exports2, module2) {
|
|
877
877
|
"use strict";
|
|
878
878
|
module2.exports = state;
|
|
879
879
|
function state(o) {
|
|
@@ -895,9 +895,9 @@ var require_state = __commonJS({
|
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
|
|
898
|
-
// ../../node_modules/fast-redact/index.js
|
|
898
|
+
// ../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/index.js
|
|
899
899
|
var require_fast_redact = __commonJS({
|
|
900
|
-
"../../node_modules/fast-redact/index.js"(exports2, module2) {
|
|
900
|
+
"../../node_modules/.bun/fast-redact@3.5.0/node_modules/fast-redact/index.js"(exports2, module2) {
|
|
901
901
|
"use strict";
|
|
902
902
|
var validator = require_validator();
|
|
903
903
|
var parse = require_parse();
|
|
@@ -942,9 +942,9 @@ var require_fast_redact = __commonJS({
|
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
|
|
945
|
-
// ../../node_modules/pino/lib/symbols.js
|
|
945
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/symbols.js
|
|
946
946
|
var require_symbols = __commonJS({
|
|
947
|
-
"../../node_modules/pino/lib/symbols.js"(exports2, module2) {
|
|
947
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/symbols.js"(exports2, module2) {
|
|
948
948
|
"use strict";
|
|
949
949
|
var setLevelSym = Symbol("pino.setLevel");
|
|
950
950
|
var getLevelSym = Symbol("pino.getLevel");
|
|
@@ -1013,9 +1013,9 @@ var require_symbols = __commonJS({
|
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
|
|
1016
|
-
// ../../node_modules/pino/lib/redaction.js
|
|
1016
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/redaction.js
|
|
1017
1017
|
var require_redaction = __commonJS({
|
|
1018
|
-
"../../node_modules/pino/lib/redaction.js"(exports2, module2) {
|
|
1018
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/redaction.js"(exports2, module2) {
|
|
1019
1019
|
"use strict";
|
|
1020
1020
|
var fastRedact = require_fast_redact();
|
|
1021
1021
|
var { redactFmtSym, wildcardFirstSym } = require_symbols();
|
|
@@ -1100,21 +1100,40 @@ var require_redaction = __commonJS({
|
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
1102
|
|
|
1103
|
-
// ../../node_modules/pino/lib/time.js
|
|
1103
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/time.js
|
|
1104
1104
|
var require_time = __commonJS({
|
|
1105
|
-
"../../node_modules/pino/lib/time.js"(exports2, module2) {
|
|
1105
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/time.js"(exports2, module2) {
|
|
1106
1106
|
"use strict";
|
|
1107
1107
|
var nullTime = () => "";
|
|
1108
1108
|
var epochTime = () => `,"time":${Date.now()}`;
|
|
1109
1109
|
var unixTime = () => `,"time":${Math.round(Date.now() / 1e3)}`;
|
|
1110
1110
|
var isoTime = () => `,"time":"${new Date(Date.now()).toISOString()}"`;
|
|
1111
|
-
|
|
1111
|
+
var NS_PER_MS = 1000000n;
|
|
1112
|
+
var NS_PER_SEC = 1000000000n;
|
|
1113
|
+
var startWallTimeNs = BigInt(Date.now()) * NS_PER_MS;
|
|
1114
|
+
var startHrTime = process.hrtime.bigint();
|
|
1115
|
+
var isoTimeNano = () => {
|
|
1116
|
+
const elapsedNs = process.hrtime.bigint() - startHrTime;
|
|
1117
|
+
const currentTimeNs = startWallTimeNs + elapsedNs;
|
|
1118
|
+
const secondsSinceEpoch = currentTimeNs / NS_PER_SEC;
|
|
1119
|
+
const nanosWithinSecond = currentTimeNs % NS_PER_SEC;
|
|
1120
|
+
const msSinceEpoch = Number(secondsSinceEpoch * 1000n + nanosWithinSecond / 1000000n);
|
|
1121
|
+
const date = new Date(msSinceEpoch);
|
|
1122
|
+
const year = date.getUTCFullYear();
|
|
1123
|
+
const month = (date.getUTCMonth() + 1).toString().padStart(2, "0");
|
|
1124
|
+
const day = date.getUTCDate().toString().padStart(2, "0");
|
|
1125
|
+
const hours = date.getUTCHours().toString().padStart(2, "0");
|
|
1126
|
+
const minutes = date.getUTCMinutes().toString().padStart(2, "0");
|
|
1127
|
+
const seconds = date.getUTCSeconds().toString().padStart(2, "0");
|
|
1128
|
+
return `,"time":"${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${nanosWithinSecond.toString().padStart(9, "0")}Z"`;
|
|
1129
|
+
};
|
|
1130
|
+
module2.exports = { nullTime, epochTime, unixTime, isoTime, isoTimeNano };
|
|
1112
1131
|
}
|
|
1113
1132
|
});
|
|
1114
1133
|
|
|
1115
|
-
// ../../node_modules/quick-format-unescaped/index.js
|
|
1134
|
+
// ../../node_modules/.bun/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js
|
|
1116
1135
|
var require_quick_format_unescaped = __commonJS({
|
|
1117
|
-
"../../node_modules/quick-format-unescaped/index.js"(exports2, module2) {
|
|
1136
|
+
"../../node_modules/.bun/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js"(exports2, module2) {
|
|
1118
1137
|
"use strict";
|
|
1119
1138
|
function tryStringify(o) {
|
|
1120
1139
|
try {
|
|
@@ -1231,9 +1250,9 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
1231
1250
|
}
|
|
1232
1251
|
});
|
|
1233
1252
|
|
|
1234
|
-
// ../../node_modules/atomic-sleep/index.js
|
|
1253
|
+
// ../../node_modules/.bun/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js
|
|
1235
1254
|
var require_atomic_sleep = __commonJS({
|
|
1236
|
-
"../../node_modules/atomic-sleep/index.js"(exports2, module2) {
|
|
1255
|
+
"../../node_modules/.bun/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js"(exports2, module2) {
|
|
1237
1256
|
"use strict";
|
|
1238
1257
|
if (typeof SharedArrayBuffer !== "undefined" && typeof Atomics !== "undefined") {
|
|
1239
1258
|
let sleep = function(ms) {
|
|
@@ -1266,20 +1285,23 @@ var require_atomic_sleep = __commonJS({
|
|
|
1266
1285
|
}
|
|
1267
1286
|
});
|
|
1268
1287
|
|
|
1269
|
-
// ../../node_modules/sonic-boom/index.js
|
|
1288
|
+
// ../../node_modules/.bun/sonic-boom@4.2.0/node_modules/sonic-boom/index.js
|
|
1270
1289
|
var require_sonic_boom = __commonJS({
|
|
1271
|
-
"../../node_modules/sonic-boom/index.js"(exports2, module2) {
|
|
1290
|
+
"../../node_modules/.bun/sonic-boom@4.2.0/node_modules/sonic-boom/index.js"(exports2, module2) {
|
|
1272
1291
|
"use strict";
|
|
1273
1292
|
var fs = require("fs");
|
|
1274
1293
|
var EventEmitter = require("events");
|
|
1275
1294
|
var inherits = require("util").inherits;
|
|
1276
1295
|
var path = require("path");
|
|
1277
1296
|
var sleep = require_atomic_sleep();
|
|
1297
|
+
var assert = require("assert");
|
|
1278
1298
|
var BUSY_WRITE_TIMEOUT = 100;
|
|
1279
1299
|
var kEmptyBuffer = Buffer.allocUnsafe(0);
|
|
1280
1300
|
var MAX_WRITE = 16 * 1024;
|
|
1281
1301
|
var kContentModeBuffer = "buffer";
|
|
1282
1302
|
var kContentModeUtf8 = "utf8";
|
|
1303
|
+
var [major, minor] = (process.versions.node || "0.0").split(".").map(Number);
|
|
1304
|
+
var kCopyBuffer = major >= 22 && minor >= 7;
|
|
1283
1305
|
function openFile(file, sonic) {
|
|
1284
1306
|
sonic._opening = true;
|
|
1285
1307
|
sonic._writing = true;
|
|
@@ -1344,7 +1366,7 @@ var require_sonic_boom = __commonJS({
|
|
|
1344
1366
|
if (!(this instanceof SonicBoom)) {
|
|
1345
1367
|
return new SonicBoom(opts);
|
|
1346
1368
|
}
|
|
1347
|
-
let { fd, dest, minLength, maxLength, maxWrite, sync, append = true, mkdir, retryEAGAIN, fsync, contentMode, mode } = opts || {};
|
|
1369
|
+
let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir, retryEAGAIN, fsync, contentMode, mode } = opts || {};
|
|
1348
1370
|
fd = fd || dest;
|
|
1349
1371
|
this._len = 0;
|
|
1350
1372
|
this.fd = -1;
|
|
@@ -1361,6 +1383,8 @@ var require_sonic_boom = __commonJS({
|
|
|
1361
1383
|
this.minLength = minLength || 0;
|
|
1362
1384
|
this.maxLength = maxLength || 0;
|
|
1363
1385
|
this.maxWrite = maxWrite || MAX_WRITE;
|
|
1386
|
+
this._periodicFlush = periodicFlush || 0;
|
|
1387
|
+
this._periodicFlushTimer = void 0;
|
|
1364
1388
|
this.sync = sync || false;
|
|
1365
1389
|
this.writable = true;
|
|
1366
1390
|
this._fsync = fsync || false;
|
|
@@ -1474,6 +1498,10 @@ var require_sonic_boom = __commonJS({
|
|
|
1474
1498
|
this._asyncDrainScheduled = false;
|
|
1475
1499
|
}
|
|
1476
1500
|
});
|
|
1501
|
+
if (this._periodicFlush !== 0) {
|
|
1502
|
+
this._periodicFlushTimer = setInterval(() => this.flush(null), this._periodicFlush);
|
|
1503
|
+
this._periodicFlushTimer.unref();
|
|
1504
|
+
}
|
|
1477
1505
|
}
|
|
1478
1506
|
function releaseWritingBuf(writingBuf, len, n) {
|
|
1479
1507
|
if (typeof writingBuf === "string" && Buffer.byteLength(writingBuf) !== n) {
|
|
@@ -1548,10 +1576,14 @@ var require_sonic_boom = __commonJS({
|
|
|
1548
1576
|
this._flushPending = true;
|
|
1549
1577
|
const onDrain = () => {
|
|
1550
1578
|
if (!this._fsync) {
|
|
1551
|
-
|
|
1552
|
-
this.
|
|
1579
|
+
try {
|
|
1580
|
+
fs.fsync(this.fd, (err) => {
|
|
1581
|
+
this._flushPending = false;
|
|
1582
|
+
cb(err);
|
|
1583
|
+
});
|
|
1584
|
+
} catch (err) {
|
|
1553
1585
|
cb(err);
|
|
1554
|
-
}
|
|
1586
|
+
}
|
|
1555
1587
|
} else {
|
|
1556
1588
|
this._flushPending = false;
|
|
1557
1589
|
cb();
|
|
@@ -1782,6 +1814,9 @@ var require_sonic_boom = __commonJS({
|
|
|
1782
1814
|
release(err);
|
|
1783
1815
|
}
|
|
1784
1816
|
} else {
|
|
1817
|
+
if (kCopyBuffer) {
|
|
1818
|
+
this._writingBuf = Buffer.from(this._writingBuf);
|
|
1819
|
+
}
|
|
1785
1820
|
fs.write(this.fd, this._writingBuf, release);
|
|
1786
1821
|
}
|
|
1787
1822
|
}
|
|
@@ -1790,10 +1825,17 @@ var require_sonic_boom = __commonJS({
|
|
|
1790
1825
|
sonic.once("ready", actualClose.bind(null, sonic));
|
|
1791
1826
|
return;
|
|
1792
1827
|
}
|
|
1828
|
+
if (sonic._periodicFlushTimer !== void 0) {
|
|
1829
|
+
clearInterval(sonic._periodicFlushTimer);
|
|
1830
|
+
}
|
|
1793
1831
|
sonic.destroyed = true;
|
|
1794
1832
|
sonic._bufs = [];
|
|
1795
1833
|
sonic._lens = [];
|
|
1796
|
-
|
|
1834
|
+
assert(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
|
|
1835
|
+
try {
|
|
1836
|
+
fs.fsync(sonic.fd, closeWrapped);
|
|
1837
|
+
} catch {
|
|
1838
|
+
}
|
|
1797
1839
|
function closeWrapped() {
|
|
1798
1840
|
if (sonic.fd !== 1 && sonic.fd !== 2) {
|
|
1799
1841
|
fs.close(sonic.fd, done);
|
|
@@ -1818,9 +1860,9 @@ var require_sonic_boom = __commonJS({
|
|
|
1818
1860
|
}
|
|
1819
1861
|
});
|
|
1820
1862
|
|
|
1821
|
-
// ../../node_modules/on-exit-leak-free/index.js
|
|
1863
|
+
// ../../node_modules/.bun/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js
|
|
1822
1864
|
var require_on_exit_leak_free = __commonJS({
|
|
1823
|
-
"../../node_modules/on-exit-leak-free/index.js"(exports2, module2) {
|
|
1865
|
+
"../../node_modules/.bun/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js"(exports2, module2) {
|
|
1824
1866
|
"use strict";
|
|
1825
1867
|
var refs = {
|
|
1826
1868
|
exit: [],
|
|
@@ -1912,9 +1954,9 @@ var require_on_exit_leak_free = __commonJS({
|
|
|
1912
1954
|
}
|
|
1913
1955
|
});
|
|
1914
1956
|
|
|
1915
|
-
// ../../node_modules/thread-stream/package.json
|
|
1957
|
+
// ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/package.json
|
|
1916
1958
|
var require_package = __commonJS({
|
|
1917
|
-
"../../node_modules/thread-stream/package.json"(exports2, module2) {
|
|
1959
|
+
"../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/package.json"(exports2, module2) {
|
|
1918
1960
|
module2.exports = {
|
|
1919
1961
|
name: "thread-stream",
|
|
1920
1962
|
version: "3.1.0",
|
|
@@ -1975,9 +2017,9 @@ var require_package = __commonJS({
|
|
|
1975
2017
|
}
|
|
1976
2018
|
});
|
|
1977
2019
|
|
|
1978
|
-
// ../../node_modules/thread-stream/lib/wait.js
|
|
2020
|
+
// ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js
|
|
1979
2021
|
var require_wait = __commonJS({
|
|
1980
|
-
"../../node_modules/thread-stream/lib/wait.js"(exports2, module2) {
|
|
2022
|
+
"../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js"(exports2, module2) {
|
|
1981
2023
|
"use strict";
|
|
1982
2024
|
var MAX_TIMEOUT = 1e3;
|
|
1983
2025
|
function wait(state, index, expected, timeout, done) {
|
|
@@ -2033,9 +2075,9 @@ var require_wait = __commonJS({
|
|
|
2033
2075
|
}
|
|
2034
2076
|
});
|
|
2035
2077
|
|
|
2036
|
-
// ../../node_modules/thread-stream/lib/indexes.js
|
|
2078
|
+
// ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js
|
|
2037
2079
|
var require_indexes = __commonJS({
|
|
2038
|
-
"../../node_modules/thread-stream/lib/indexes.js"(exports2, module2) {
|
|
2080
|
+
"../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js"(exports2, module2) {
|
|
2039
2081
|
"use strict";
|
|
2040
2082
|
var WRITE_INDEX = 4;
|
|
2041
2083
|
var READ_INDEX = 8;
|
|
@@ -2046,9 +2088,9 @@ var require_indexes = __commonJS({
|
|
|
2046
2088
|
}
|
|
2047
2089
|
});
|
|
2048
2090
|
|
|
2049
|
-
// ../../node_modules/thread-stream/index.js
|
|
2091
|
+
// ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/index.js
|
|
2050
2092
|
var require_thread_stream = __commonJS({
|
|
2051
|
-
"../../node_modules/thread-stream/index.js"(exports2, module2) {
|
|
2093
|
+
"../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/index.js"(exports2, module2) {
|
|
2052
2094
|
"use strict";
|
|
2053
2095
|
var { version } = require_package();
|
|
2054
2096
|
var { EventEmitter } = require("events");
|
|
@@ -2469,9 +2511,9 @@ var require_thread_stream = __commonJS({
|
|
|
2469
2511
|
}
|
|
2470
2512
|
});
|
|
2471
2513
|
|
|
2472
|
-
// ../../node_modules/pino/lib/transport.js
|
|
2514
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/transport.js
|
|
2473
2515
|
var require_transport = __commonJS({
|
|
2474
|
-
"../../node_modules/pino/lib/transport.js"(exports2, module2) {
|
|
2516
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/transport.js"(exports2, module2) {
|
|
2475
2517
|
"use strict";
|
|
2476
2518
|
var { createRequire } = require("module");
|
|
2477
2519
|
var getCallers = require_caller();
|
|
@@ -2486,11 +2528,12 @@ var require_transport = __commonJS({
|
|
|
2486
2528
|
onExit.unregister(stream);
|
|
2487
2529
|
});
|
|
2488
2530
|
}
|
|
2489
|
-
function buildStream(filename, workerData, workerOpts) {
|
|
2531
|
+
function buildStream(filename, workerData, workerOpts, sync) {
|
|
2490
2532
|
const stream = new ThreadStream({
|
|
2491
2533
|
filename,
|
|
2492
2534
|
workerData,
|
|
2493
|
-
workerOpts
|
|
2535
|
+
workerOpts,
|
|
2536
|
+
sync
|
|
2494
2537
|
});
|
|
2495
2538
|
stream.on("ready", onReady);
|
|
2496
2539
|
stream.on("close", function() {
|
|
@@ -2526,7 +2569,7 @@ var require_transport = __commonJS({
|
|
|
2526
2569
|
stream.flushSync();
|
|
2527
2570
|
}
|
|
2528
2571
|
function transport(fullOptions) {
|
|
2529
|
-
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers() } = fullOptions;
|
|
2572
|
+
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers(), sync = false } = fullOptions;
|
|
2530
2573
|
const options = {
|
|
2531
2574
|
...fullOptions.options
|
|
2532
2575
|
};
|
|
@@ -2570,7 +2613,7 @@ var require_transport = __commonJS({
|
|
|
2570
2613
|
options.dedupe = dedupe;
|
|
2571
2614
|
}
|
|
2572
2615
|
options.pinoWillSendConfig = true;
|
|
2573
|
-
return buildStream(fixTarget(target), options, worker);
|
|
2616
|
+
return buildStream(fixTarget(target), options, worker, sync);
|
|
2574
2617
|
function fixTarget(origin) {
|
|
2575
2618
|
origin = bundlerOverrides[origin] || origin;
|
|
2576
2619
|
if (isAbsolute(origin) || origin.indexOf("file://") === 0) {
|
|
@@ -2599,10 +2642,11 @@ var require_transport = __commonJS({
|
|
|
2599
2642
|
}
|
|
2600
2643
|
});
|
|
2601
2644
|
|
|
2602
|
-
// ../../node_modules/pino/lib/tools.js
|
|
2645
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/tools.js
|
|
2603
2646
|
var require_tools = __commonJS({
|
|
2604
|
-
"../../node_modules/pino/lib/tools.js"(exports2, module2) {
|
|
2647
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/tools.js"(exports2, module2) {
|
|
2605
2648
|
"use strict";
|
|
2649
|
+
var diagChan = require("node:diagnostics_channel");
|
|
2606
2650
|
var format = require_quick_format_unescaped();
|
|
2607
2651
|
var { mapHttpRequest, mapHttpResponse } = require_pino_std_serializers();
|
|
2608
2652
|
var SonicBoom = require_sonic_boom();
|
|
@@ -2627,6 +2671,17 @@ var require_tools = __commonJS({
|
|
|
2627
2671
|
} = require_symbols();
|
|
2628
2672
|
var { isMainThread } = require("worker_threads");
|
|
2629
2673
|
var transport = require_transport();
|
|
2674
|
+
var asJsonChan;
|
|
2675
|
+
if (typeof diagChan.tracingChannel === "function") {
|
|
2676
|
+
asJsonChan = diagChan.tracingChannel("pino_asJson");
|
|
2677
|
+
} else {
|
|
2678
|
+
asJsonChan = {
|
|
2679
|
+
hasSubscribers: false,
|
|
2680
|
+
traceSync(fn, store, thisArg, ...args) {
|
|
2681
|
+
return fn.call(thisArg, ...args);
|
|
2682
|
+
}
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2630
2685
|
function noop() {
|
|
2631
2686
|
}
|
|
2632
2687
|
function genLog(level, hook) {
|
|
@@ -2689,6 +2744,13 @@ var require_tools = __commonJS({
|
|
|
2689
2744
|
return point < 32 ? JSON.stringify(str) : '"' + result + '"';
|
|
2690
2745
|
}
|
|
2691
2746
|
function asJson(obj, msg, num, time) {
|
|
2747
|
+
if (asJsonChan.hasSubscribers === false) {
|
|
2748
|
+
return _asJson.call(this, obj, msg, num, time);
|
|
2749
|
+
}
|
|
2750
|
+
const store = { instance: this, arguments };
|
|
2751
|
+
return asJsonChan.traceSync(_asJson, store, this, obj, msg, num, time);
|
|
2752
|
+
}
|
|
2753
|
+
function _asJson(obj, msg, num, time) {
|
|
2692
2754
|
const stringify2 = this[stringifySym];
|
|
2693
2755
|
const stringifySafe = this[stringifySafeSym];
|
|
2694
2756
|
const stringifiers = this[stringifiersSym];
|
|
@@ -2794,11 +2856,10 @@ var require_tools = __commonJS({
|
|
|
2794
2856
|
function hasBeenTampered(stream) {
|
|
2795
2857
|
return stream.write !== stream.constructor.prototype.write;
|
|
2796
2858
|
}
|
|
2797
|
-
var hasNodeCodeCoverage = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE;
|
|
2798
2859
|
function buildSafeSonicBoom(opts) {
|
|
2799
2860
|
const stream = new SonicBoom(opts);
|
|
2800
2861
|
stream.on("error", filterBrokenPipe);
|
|
2801
|
-
if (!
|
|
2862
|
+
if (!opts.sync && isMainThread) {
|
|
2802
2863
|
onExit.register(stream, autoEnd);
|
|
2803
2864
|
stream.on("close", function() {
|
|
2804
2865
|
onExit.unregister(stream);
|
|
@@ -2918,9 +2979,9 @@ var require_tools = __commonJS({
|
|
|
2918
2979
|
}
|
|
2919
2980
|
});
|
|
2920
2981
|
|
|
2921
|
-
// ../../node_modules/pino/lib/constants.js
|
|
2982
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/constants.js
|
|
2922
2983
|
var require_constants = __commonJS({
|
|
2923
|
-
"../../node_modules/pino/lib/constants.js"(exports2, module2) {
|
|
2984
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/constants.js"(exports2, module2) {
|
|
2924
2985
|
var DEFAULT_LEVELS = {
|
|
2925
2986
|
trace: 10,
|
|
2926
2987
|
debug: 20,
|
|
@@ -2940,9 +3001,9 @@ var require_constants = __commonJS({
|
|
|
2940
3001
|
}
|
|
2941
3002
|
});
|
|
2942
3003
|
|
|
2943
|
-
// ../../node_modules/pino/lib/levels.js
|
|
3004
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/levels.js
|
|
2944
3005
|
var require_levels = __commonJS({
|
|
2945
|
-
"../../node_modules/pino/lib/levels.js"(exports2, module2) {
|
|
3006
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/levels.js"(exports2, module2) {
|
|
2946
3007
|
"use strict";
|
|
2947
3008
|
var {
|
|
2948
3009
|
lsCacheSym,
|
|
@@ -3133,17 +3194,17 @@ var require_levels = __commonJS({
|
|
|
3133
3194
|
}
|
|
3134
3195
|
});
|
|
3135
3196
|
|
|
3136
|
-
// ../../node_modules/pino/lib/meta.js
|
|
3197
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/meta.js
|
|
3137
3198
|
var require_meta = __commonJS({
|
|
3138
|
-
"../../node_modules/pino/lib/meta.js"(exports2, module2) {
|
|
3199
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/meta.js"(exports2, module2) {
|
|
3139
3200
|
"use strict";
|
|
3140
|
-
module2.exports = { version: "9.
|
|
3201
|
+
module2.exports = { version: "9.11.0" };
|
|
3141
3202
|
}
|
|
3142
3203
|
});
|
|
3143
3204
|
|
|
3144
|
-
// ../../node_modules/pino/lib/proto.js
|
|
3205
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/proto.js
|
|
3145
3206
|
var require_proto = __commonJS({
|
|
3146
|
-
"../../node_modules/pino/lib/proto.js"(exports2, module2) {
|
|
3207
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/proto.js"(exports2, module2) {
|
|
3147
3208
|
"use strict";
|
|
3148
3209
|
var { EventEmitter } = require("node:events");
|
|
3149
3210
|
var {
|
|
@@ -3170,7 +3231,8 @@ var require_proto = __commonJS({
|
|
|
3170
3231
|
stringifySym,
|
|
3171
3232
|
formatOptsSym,
|
|
3172
3233
|
stringifiersSym,
|
|
3173
|
-
msgPrefixSym
|
|
3234
|
+
msgPrefixSym,
|
|
3235
|
+
hooksSym
|
|
3174
3236
|
} = require_symbols();
|
|
3175
3237
|
var {
|
|
3176
3238
|
getLevel,
|
|
@@ -3213,6 +3275,12 @@ var require_proto = __commonJS({
|
|
|
3213
3275
|
set levelVal(n) {
|
|
3214
3276
|
throw Error("levelVal is read-only");
|
|
3215
3277
|
},
|
|
3278
|
+
get msgPrefix() {
|
|
3279
|
+
return this[msgPrefixSym];
|
|
3280
|
+
},
|
|
3281
|
+
get [Symbol.toStringTag]() {
|
|
3282
|
+
return "Pino";
|
|
3283
|
+
},
|
|
3216
3284
|
[lsCacheSym]: initialLsCache,
|
|
3217
3285
|
[writeSym]: write,
|
|
3218
3286
|
[asJsonSym]: asJson,
|
|
@@ -3282,8 +3350,10 @@ var require_proto = __commonJS({
|
|
|
3282
3350
|
instance[msgPrefixSym] = (this[msgPrefixSym] || "") + options.msgPrefix;
|
|
3283
3351
|
}
|
|
3284
3352
|
instance[chindingsSym] = asChindings(instance, bindings2);
|
|
3285
|
-
|
|
3286
|
-
|
|
3353
|
+
if (options.level !== void 0 && options.level !== this.level || options.hasOwnProperty("customLevels")) {
|
|
3354
|
+
const childLevel = options.level || this.level;
|
|
3355
|
+
instance[setLevelSym](childLevel);
|
|
3356
|
+
}
|
|
3287
3357
|
this.onChild(instance);
|
|
3288
3358
|
return instance;
|
|
3289
3359
|
}
|
|
@@ -3310,6 +3380,7 @@ var require_proto = __commonJS({
|
|
|
3310
3380
|
const messageKey = this[messageKeySym];
|
|
3311
3381
|
const mixinMergeStrategy = this[mixinMergeStrategySym] || defaultMixinMergeStrategy;
|
|
3312
3382
|
let obj;
|
|
3383
|
+
const streamWriteHook = this[hooksSym].streamWrite;
|
|
3313
3384
|
if (_obj === void 0 || _obj === null) {
|
|
3314
3385
|
obj = {};
|
|
3315
3386
|
} else if (_obj instanceof Error) {
|
|
@@ -3335,7 +3406,7 @@ var require_proto = __commonJS({
|
|
|
3335
3406
|
stream.lastTime = t.slice(this[timeSliceIndexSym]);
|
|
3336
3407
|
stream.lastLogger = this;
|
|
3337
3408
|
}
|
|
3338
|
-
stream.write(s);
|
|
3409
|
+
stream.write(streamWriteHook ? streamWriteHook(s) : s);
|
|
3339
3410
|
}
|
|
3340
3411
|
function noop() {
|
|
3341
3412
|
}
|
|
@@ -3351,9 +3422,9 @@ var require_proto = __commonJS({
|
|
|
3351
3422
|
}
|
|
3352
3423
|
});
|
|
3353
3424
|
|
|
3354
|
-
// ../../node_modules/safe-stable-stringify/index.js
|
|
3425
|
+
// ../../node_modules/.bun/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
|
|
3355
3426
|
var require_safe_stable_stringify = __commonJS({
|
|
3356
|
-
"../../node_modules/safe-stable-stringify/index.js"(exports2, module2) {
|
|
3427
|
+
"../../node_modules/.bun/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports2, module2) {
|
|
3357
3428
|
"use strict";
|
|
3358
3429
|
var { hasOwnProperty } = Object.prototype;
|
|
3359
3430
|
var stringify = configure();
|
|
@@ -3363,16 +3434,16 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
3363
3434
|
exports2.stringify = stringify;
|
|
3364
3435
|
exports2.configure = configure;
|
|
3365
3436
|
module2.exports = stringify;
|
|
3366
|
-
var strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]
|
|
3437
|
+
var strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
|
|
3367
3438
|
function strEscape(str) {
|
|
3368
3439
|
if (str.length < 5e3 && !strEscapeSequencesRegExp.test(str)) {
|
|
3369
3440
|
return `"${str}"`;
|
|
3370
3441
|
}
|
|
3371
3442
|
return JSON.stringify(str);
|
|
3372
3443
|
}
|
|
3373
|
-
function
|
|
3374
|
-
if (array.length > 200) {
|
|
3375
|
-
return array.sort();
|
|
3444
|
+
function sort(array, comparator) {
|
|
3445
|
+
if (array.length > 200 || comparator) {
|
|
3446
|
+
return array.sort(comparator);
|
|
3376
3447
|
}
|
|
3377
3448
|
for (let i = 1; i < array.length; i++) {
|
|
3378
3449
|
const currentValue = array[i];
|
|
@@ -3427,6 +3498,16 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
3427
3498
|
}
|
|
3428
3499
|
return '"[Circular]"';
|
|
3429
3500
|
}
|
|
3501
|
+
function getDeterministicOption(options) {
|
|
3502
|
+
let value;
|
|
3503
|
+
if (hasOwnProperty.call(options, "deterministic")) {
|
|
3504
|
+
value = options.deterministic;
|
|
3505
|
+
if (typeof value !== "boolean" && typeof value !== "function") {
|
|
3506
|
+
throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
return value === void 0 ? true : value;
|
|
3510
|
+
}
|
|
3430
3511
|
function getBooleanOption(options, key) {
|
|
3431
3512
|
let value;
|
|
3432
3513
|
if (hasOwnProperty.call(options, key)) {
|
|
@@ -3496,7 +3577,8 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
3496
3577
|
}
|
|
3497
3578
|
const circularValue = getCircularValueOption(options);
|
|
3498
3579
|
const bigint = getBooleanOption(options, "bigint");
|
|
3499
|
-
const deterministic =
|
|
3580
|
+
const deterministic = getDeterministicOption(options);
|
|
3581
|
+
const comparator = typeof deterministic === "function" ? deterministic : void 0;
|
|
3500
3582
|
const maximumDepth = getPositiveIntegerOption(options, "maximumDepth");
|
|
3501
3583
|
const maximumBreadth = getPositiveIntegerOption(options, "maximumBreadth");
|
|
3502
3584
|
function stringifyFnReplacer(key, parent, stack, replacer, spacer, indentation) {
|
|
@@ -3571,7 +3653,7 @@ ${indentation}`;
|
|
|
3571
3653
|
}
|
|
3572
3654
|
const maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
|
|
3573
3655
|
if (deterministic && !isTypedArrayWithEntries(value)) {
|
|
3574
|
-
keys =
|
|
3656
|
+
keys = sort(keys, comparator);
|
|
3575
3657
|
}
|
|
3576
3658
|
stack.push(value);
|
|
3577
3659
|
for (let i = 0; i < maximumPropertiesToStringify; i++) {
|
|
@@ -3774,7 +3856,7 @@ ${indentation}`;
|
|
|
3774
3856
|
separator = join;
|
|
3775
3857
|
}
|
|
3776
3858
|
if (deterministic) {
|
|
3777
|
-
keys =
|
|
3859
|
+
keys = sort(keys, comparator);
|
|
3778
3860
|
}
|
|
3779
3861
|
stack.push(value);
|
|
3780
3862
|
for (let i = 0; i < maximumPropertiesToStringify; i++) {
|
|
@@ -3834,7 +3916,8 @@ ${originalIndentation}`;
|
|
|
3834
3916
|
return circularValue;
|
|
3835
3917
|
}
|
|
3836
3918
|
let res = "";
|
|
3837
|
-
|
|
3919
|
+
const hasLength = value.length !== void 0;
|
|
3920
|
+
if (hasLength && Array.isArray(value)) {
|
|
3838
3921
|
if (value.length === 0) {
|
|
3839
3922
|
return "[]";
|
|
3840
3923
|
}
|
|
@@ -3868,14 +3951,14 @@ ${originalIndentation}`;
|
|
|
3868
3951
|
}
|
|
3869
3952
|
let separator = "";
|
|
3870
3953
|
let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
|
|
3871
|
-
if (isTypedArrayWithEntries(value)) {
|
|
3954
|
+
if (hasLength && isTypedArrayWithEntries(value)) {
|
|
3872
3955
|
res += stringifyTypedArray(value, ",", maximumBreadth);
|
|
3873
3956
|
keys = keys.slice(value.length);
|
|
3874
3957
|
maximumPropertiesToStringify -= value.length;
|
|
3875
3958
|
separator = ",";
|
|
3876
3959
|
}
|
|
3877
3960
|
if (deterministic) {
|
|
3878
|
-
keys =
|
|
3961
|
+
keys = sort(keys, comparator);
|
|
3879
3962
|
}
|
|
3880
3963
|
stack.push(value);
|
|
3881
3964
|
for (let i = 0; i < maximumPropertiesToStringify; i++) {
|
|
@@ -3935,15 +4018,14 @@ ${originalIndentation}`;
|
|
|
3935
4018
|
}
|
|
3936
4019
|
});
|
|
3937
4020
|
|
|
3938
|
-
// ../../node_modules/pino/lib/multistream.js
|
|
4021
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/multistream.js
|
|
3939
4022
|
var require_multistream = __commonJS({
|
|
3940
|
-
"../../node_modules/pino/lib/multistream.js"(exports2, module2) {
|
|
4023
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/lib/multistream.js"(exports2, module2) {
|
|
3941
4024
|
"use strict";
|
|
3942
4025
|
var metadata = Symbol.for("pino.metadata");
|
|
3943
4026
|
var { DEFAULT_LEVELS } = require_constants();
|
|
3944
4027
|
var DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
|
|
3945
4028
|
function multistream(streamsArray, opts) {
|
|
3946
|
-
let counter = 0;
|
|
3947
4029
|
streamsArray = streamsArray || [];
|
|
3948
4030
|
opts = opts || { dedupe: false };
|
|
3949
4031
|
const streamLevels = Object.create(DEFAULT_LEVELS);
|
|
@@ -3956,10 +4038,12 @@ var require_multistream = __commonJS({
|
|
|
3956
4038
|
const res = {
|
|
3957
4039
|
write,
|
|
3958
4040
|
add,
|
|
4041
|
+
remove,
|
|
3959
4042
|
emit,
|
|
3960
4043
|
flushSync,
|
|
3961
4044
|
end,
|
|
3962
4045
|
minLevel: 0,
|
|
4046
|
+
lastId: 0,
|
|
3963
4047
|
streams: [],
|
|
3964
4048
|
clone,
|
|
3965
4049
|
[metadata]: true,
|
|
@@ -4040,13 +4124,23 @@ var require_multistream = __commonJS({
|
|
|
4040
4124
|
stream: stream_,
|
|
4041
4125
|
level,
|
|
4042
4126
|
levelVal: void 0,
|
|
4043
|
-
id:
|
|
4127
|
+
id: ++res.lastId
|
|
4044
4128
|
};
|
|
4045
4129
|
streams.unshift(dest_);
|
|
4046
4130
|
streams.sort(compareByLevel);
|
|
4047
4131
|
this.minLevel = streams[0].level;
|
|
4048
4132
|
return res;
|
|
4049
4133
|
}
|
|
4134
|
+
function remove(id) {
|
|
4135
|
+
const { streams } = this;
|
|
4136
|
+
const index = streams.findIndex((s) => s.id === id);
|
|
4137
|
+
if (index >= 0) {
|
|
4138
|
+
streams.splice(index, 1);
|
|
4139
|
+
streams.sort(compareByLevel);
|
|
4140
|
+
this.minLevel = streams.length > 0 ? streams[0].level : -1;
|
|
4141
|
+
}
|
|
4142
|
+
return res;
|
|
4143
|
+
}
|
|
4050
4144
|
function end() {
|
|
4051
4145
|
for (const { stream } of this.streams) {
|
|
4052
4146
|
if (typeof stream.flushSync === "function") {
|
|
@@ -4066,6 +4160,7 @@ var require_multistream = __commonJS({
|
|
|
4066
4160
|
return {
|
|
4067
4161
|
write,
|
|
4068
4162
|
add,
|
|
4163
|
+
remove,
|
|
4069
4164
|
minLevel: level,
|
|
4070
4165
|
streams,
|
|
4071
4166
|
clone,
|
|
@@ -4091,12 +4186,15 @@ var require_multistream = __commonJS({
|
|
|
4091
4186
|
}
|
|
4092
4187
|
});
|
|
4093
4188
|
|
|
4094
|
-
// ../../node_modules/pino/pino.js
|
|
4189
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/pino.js
|
|
4095
4190
|
var require_pino = __commonJS({
|
|
4096
|
-
"../../node_modules/pino/pino.js"(exports2, module2) {
|
|
4191
|
+
"../../node_modules/.bun/pino@9.11.0/node_modules/pino/pino.js"(exports2, module2) {
|
|
4097
4192
|
function pinoBundlerAbsolutePath(p) {
|
|
4098
4193
|
try {
|
|
4099
|
-
|
|
4194
|
+
const path = require("path");
|
|
4195
|
+
const workingDir = process.cwd();
|
|
4196
|
+
const outputDir = path.resolve(workingDir, "dist");
|
|
4197
|
+
return path.resolve(outputDir, p.replace(/^\.\//, ""));
|
|
4100
4198
|
} catch (e) {
|
|
4101
4199
|
const f = new Function("p", "return new URL(p, import.meta.url).pathname");
|
|
4102
4200
|
return f(p);
|
|
@@ -4173,7 +4271,8 @@ var require_pino = __commonJS({
|
|
|
4173
4271
|
}
|
|
4174
4272
|
}),
|
|
4175
4273
|
hooks: {
|
|
4176
|
-
logMethod: void 0
|
|
4274
|
+
logMethod: void 0,
|
|
4275
|
+
streamWrite: void 0
|
|
4177
4276
|
},
|
|
4178
4277
|
timestamp: epochTime,
|
|
4179
4278
|
name: void 0,
|
|
@@ -4188,6 +4287,7 @@ var require_pino = __commonJS({
|
|
|
4188
4287
|
function pino2(...args) {
|
|
4189
4288
|
const instance = {};
|
|
4190
4289
|
const { opts, stream } = normalize(instance, caller(), ...args);
|
|
4290
|
+
if (opts.level && typeof opts.level === "string" && DEFAULT_LEVELS[opts.level.toLowerCase()] !== void 0) opts.level = opts.level.toLowerCase();
|
|
4191
4291
|
const {
|
|
4192
4292
|
redact,
|
|
4193
4293
|
crlf,
|
|
@@ -4307,7 +4407,7 @@ var require_pino = __commonJS({
|
|
|
4307
4407
|
}
|
|
4308
4408
|
});
|
|
4309
4409
|
|
|
4310
|
-
// ../../node_modules/pino/file.js
|
|
4410
|
+
// ../../node_modules/.bun/pino@9.11.0/node_modules/pino/file.js
|
|
4311
4411
|
var pino = require_pino();
|
|
4312
4412
|
var { once } = require("node:events");
|
|
4313
4413
|
module.exports = async function(opts = {}) {
|