appos 0.1.6-0 → 0.1.8-0
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/build/exports/{dist-cjs-i0PJ4BkY.mjs → dist-cjs-B43A5HXv.mjs} +3 -3
- package/build/exports/{dist-cjs-Ckv1CA7H.mjs → dist-cjs-BmbYbMhp.mjs} +2 -2
- package/build/exports/{dist-cjs-CZJ3_gz8.mjs → dist-cjs-DHlTgXUO.mjs} +1 -0
- package/build/exports/{dist-cjs-BwD8H9no.mjs → dist-cjs-Ddm6Stp9.mjs} +3 -3
- package/build/exports/{sso-oidc-DihM2auV.mjs → sso-oidc-Qom0PEDW.mjs} +1 -1
- package/build/exports/{sts-qpAtvsDA.mjs → sts-CLRaHSW_.mjs} +2 -2
- package/build/exports/{sts-DxVJ4opX.mjs → sts-Dl7yZqX1.mjs} +1 -1
- package/build/exports/test.mjs +4 -4
- package/build/exports/ui/index.d.ts +300 -300
- package/build/main.js +2282 -3
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -304892,6 +304892,2278 @@ var require_pino = __commonJS((exports, module) => {
|
|
|
304892
304892
|
module.exports.pino = pino;
|
|
304893
304893
|
});
|
|
304894
304894
|
|
|
304895
|
+
// node_modules/colorette/index.cjs
|
|
304896
|
+
var require_colorette = __commonJS((exports) => {
|
|
304897
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
304898
|
+
var tty2 = __require("tty");
|
|
304899
|
+
function _interopNamespace(e3) {
|
|
304900
|
+
if (e3 && e3.__esModule)
|
|
304901
|
+
return e3;
|
|
304902
|
+
var n2 = Object.create(null);
|
|
304903
|
+
if (e3) {
|
|
304904
|
+
Object.keys(e3).forEach(function(k5) {
|
|
304905
|
+
if (k5 !== "default") {
|
|
304906
|
+
var d5 = Object.getOwnPropertyDescriptor(e3, k5);
|
|
304907
|
+
Object.defineProperty(n2, k5, d5.get ? d5 : {
|
|
304908
|
+
enumerable: true,
|
|
304909
|
+
get: function() {
|
|
304910
|
+
return e3[k5];
|
|
304911
|
+
}
|
|
304912
|
+
});
|
|
304913
|
+
}
|
|
304914
|
+
});
|
|
304915
|
+
}
|
|
304916
|
+
n2["default"] = e3;
|
|
304917
|
+
return Object.freeze(n2);
|
|
304918
|
+
}
|
|
304919
|
+
var tty__namespace = /* @__PURE__ */ _interopNamespace(tty2);
|
|
304920
|
+
var {
|
|
304921
|
+
env: env5 = {},
|
|
304922
|
+
argv = [],
|
|
304923
|
+
platform = ""
|
|
304924
|
+
} = typeof process === "undefined" ? {} : process;
|
|
304925
|
+
var isDisabled = "NO_COLOR" in env5 || argv.includes("--no-color");
|
|
304926
|
+
var isForced = "FORCE_COLOR" in env5 || argv.includes("--color");
|
|
304927
|
+
var isWindows = platform === "win32";
|
|
304928
|
+
var isDumbTerminal = env5.TERM === "dumb";
|
|
304929
|
+
var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env5.TERM && !isDumbTerminal;
|
|
304930
|
+
var isCI2 = "CI" in env5 && (("GITHUB_ACTIONS" in env5) || ("GITLAB_CI" in env5) || ("CIRCLECI" in env5));
|
|
304931
|
+
var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI2);
|
|
304932
|
+
var replaceClose = (index3, string8, close, replace, head = string8.substring(0, index3) + replace, tail = string8.substring(index3 + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
304933
|
+
var clearBleed = (index3, string8, open, close, replace) => index3 < 0 ? open + string8 + close : open + replaceClose(index3, string8, close, replace) + close;
|
|
304934
|
+
var filterEmpty = (open, close, replace = open, at3 = open.length + 1) => (string8) => string8 || !(string8 === "" || string8 === undefined) ? clearBleed(("" + string8).indexOf(close, at3), string8, open, close, replace) : "";
|
|
304935
|
+
var init3 = (open, close, replace) => filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
|
|
304936
|
+
var colors9 = {
|
|
304937
|
+
reset: init3(0, 0),
|
|
304938
|
+
bold: init3(1, 22, "\x1B[22m\x1B[1m"),
|
|
304939
|
+
dim: init3(2, 22, "\x1B[22m\x1B[2m"),
|
|
304940
|
+
italic: init3(3, 23),
|
|
304941
|
+
underline: init3(4, 24),
|
|
304942
|
+
inverse: init3(7, 27),
|
|
304943
|
+
hidden: init3(8, 28),
|
|
304944
|
+
strikethrough: init3(9, 29),
|
|
304945
|
+
black: init3(30, 39),
|
|
304946
|
+
red: init3(31, 39),
|
|
304947
|
+
green: init3(32, 39),
|
|
304948
|
+
yellow: init3(33, 39),
|
|
304949
|
+
blue: init3(34, 39),
|
|
304950
|
+
magenta: init3(35, 39),
|
|
304951
|
+
cyan: init3(36, 39),
|
|
304952
|
+
white: init3(37, 39),
|
|
304953
|
+
gray: init3(90, 39),
|
|
304954
|
+
bgBlack: init3(40, 49),
|
|
304955
|
+
bgRed: init3(41, 49),
|
|
304956
|
+
bgGreen: init3(42, 49),
|
|
304957
|
+
bgYellow: init3(43, 49),
|
|
304958
|
+
bgBlue: init3(44, 49),
|
|
304959
|
+
bgMagenta: init3(45, 49),
|
|
304960
|
+
bgCyan: init3(46, 49),
|
|
304961
|
+
bgWhite: init3(47, 49),
|
|
304962
|
+
blackBright: init3(90, 39),
|
|
304963
|
+
redBright: init3(91, 39),
|
|
304964
|
+
greenBright: init3(92, 39),
|
|
304965
|
+
yellowBright: init3(93, 39),
|
|
304966
|
+
blueBright: init3(94, 39),
|
|
304967
|
+
magentaBright: init3(95, 39),
|
|
304968
|
+
cyanBright: init3(96, 39),
|
|
304969
|
+
whiteBright: init3(97, 39),
|
|
304970
|
+
bgBlackBright: init3(100, 49),
|
|
304971
|
+
bgRedBright: init3(101, 49),
|
|
304972
|
+
bgGreenBright: init3(102, 49),
|
|
304973
|
+
bgYellowBright: init3(103, 49),
|
|
304974
|
+
bgBlueBright: init3(104, 49),
|
|
304975
|
+
bgMagentaBright: init3(105, 49),
|
|
304976
|
+
bgCyanBright: init3(106, 49),
|
|
304977
|
+
bgWhiteBright: init3(107, 49)
|
|
304978
|
+
};
|
|
304979
|
+
var createColors = ({ useColor = isColorSupported } = {}) => useColor ? colors9 : Object.keys(colors9).reduce((colors10, key2) => ({ ...colors10, [key2]: String }), {});
|
|
304980
|
+
var {
|
|
304981
|
+
reset: reset3,
|
|
304982
|
+
bold,
|
|
304983
|
+
dim,
|
|
304984
|
+
italic,
|
|
304985
|
+
underline,
|
|
304986
|
+
inverse,
|
|
304987
|
+
hidden,
|
|
304988
|
+
strikethrough: strikethrough2,
|
|
304989
|
+
black,
|
|
304990
|
+
red,
|
|
304991
|
+
green,
|
|
304992
|
+
yellow,
|
|
304993
|
+
blue,
|
|
304994
|
+
magenta,
|
|
304995
|
+
cyan,
|
|
304996
|
+
white,
|
|
304997
|
+
gray,
|
|
304998
|
+
bgBlack,
|
|
304999
|
+
bgRed,
|
|
305000
|
+
bgGreen,
|
|
305001
|
+
bgYellow,
|
|
305002
|
+
bgBlue,
|
|
305003
|
+
bgMagenta,
|
|
305004
|
+
bgCyan,
|
|
305005
|
+
bgWhite,
|
|
305006
|
+
blackBright,
|
|
305007
|
+
redBright,
|
|
305008
|
+
greenBright,
|
|
305009
|
+
yellowBright,
|
|
305010
|
+
blueBright,
|
|
305011
|
+
magentaBright,
|
|
305012
|
+
cyanBright,
|
|
305013
|
+
whiteBright,
|
|
305014
|
+
bgBlackBright,
|
|
305015
|
+
bgRedBright,
|
|
305016
|
+
bgGreenBright,
|
|
305017
|
+
bgYellowBright,
|
|
305018
|
+
bgBlueBright,
|
|
305019
|
+
bgMagentaBright,
|
|
305020
|
+
bgCyanBright,
|
|
305021
|
+
bgWhiteBright
|
|
305022
|
+
} = createColors();
|
|
305023
|
+
exports.bgBlack = bgBlack;
|
|
305024
|
+
exports.bgBlackBright = bgBlackBright;
|
|
305025
|
+
exports.bgBlue = bgBlue;
|
|
305026
|
+
exports.bgBlueBright = bgBlueBright;
|
|
305027
|
+
exports.bgCyan = bgCyan;
|
|
305028
|
+
exports.bgCyanBright = bgCyanBright;
|
|
305029
|
+
exports.bgGreen = bgGreen;
|
|
305030
|
+
exports.bgGreenBright = bgGreenBright;
|
|
305031
|
+
exports.bgMagenta = bgMagenta;
|
|
305032
|
+
exports.bgMagentaBright = bgMagentaBright;
|
|
305033
|
+
exports.bgRed = bgRed;
|
|
305034
|
+
exports.bgRedBright = bgRedBright;
|
|
305035
|
+
exports.bgWhite = bgWhite;
|
|
305036
|
+
exports.bgWhiteBright = bgWhiteBright;
|
|
305037
|
+
exports.bgYellow = bgYellow;
|
|
305038
|
+
exports.bgYellowBright = bgYellowBright;
|
|
305039
|
+
exports.black = black;
|
|
305040
|
+
exports.blackBright = blackBright;
|
|
305041
|
+
exports.blue = blue;
|
|
305042
|
+
exports.blueBright = blueBright;
|
|
305043
|
+
exports.bold = bold;
|
|
305044
|
+
exports.createColors = createColors;
|
|
305045
|
+
exports.cyan = cyan;
|
|
305046
|
+
exports.cyanBright = cyanBright;
|
|
305047
|
+
exports.dim = dim;
|
|
305048
|
+
exports.gray = gray;
|
|
305049
|
+
exports.green = green;
|
|
305050
|
+
exports.greenBright = greenBright;
|
|
305051
|
+
exports.hidden = hidden;
|
|
305052
|
+
exports.inverse = inverse;
|
|
305053
|
+
exports.isColorSupported = isColorSupported;
|
|
305054
|
+
exports.italic = italic;
|
|
305055
|
+
exports.magenta = magenta;
|
|
305056
|
+
exports.magentaBright = magentaBright;
|
|
305057
|
+
exports.red = red;
|
|
305058
|
+
exports.redBright = redBright;
|
|
305059
|
+
exports.reset = reset3;
|
|
305060
|
+
exports.strikethrough = strikethrough2;
|
|
305061
|
+
exports.underline = underline;
|
|
305062
|
+
exports.white = white;
|
|
305063
|
+
exports.whiteBright = whiteBright;
|
|
305064
|
+
exports.yellow = yellow;
|
|
305065
|
+
exports.yellowBright = yellowBright;
|
|
305066
|
+
});
|
|
305067
|
+
|
|
305068
|
+
// node_modules/end-of-stream/index.js
|
|
305069
|
+
var require_end_of_stream = __commonJS((exports, module) => {
|
|
305070
|
+
var once2 = require_once();
|
|
305071
|
+
var noop10 = function() {};
|
|
305072
|
+
var qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process);
|
|
305073
|
+
var isRequest = function(stream3) {
|
|
305074
|
+
return stream3.setHeader && typeof stream3.abort === "function";
|
|
305075
|
+
};
|
|
305076
|
+
var isChildProcess = function(stream3) {
|
|
305077
|
+
return stream3.stdio && Array.isArray(stream3.stdio) && stream3.stdio.length === 3;
|
|
305078
|
+
};
|
|
305079
|
+
var eos = function(stream3, opts, callback2) {
|
|
305080
|
+
if (typeof opts === "function")
|
|
305081
|
+
return eos(stream3, null, opts);
|
|
305082
|
+
if (!opts)
|
|
305083
|
+
opts = {};
|
|
305084
|
+
callback2 = once2(callback2 || noop10);
|
|
305085
|
+
var ws3 = stream3._writableState;
|
|
305086
|
+
var rs2 = stream3._readableState;
|
|
305087
|
+
var readable = opts.readable || opts.readable !== false && stream3.readable;
|
|
305088
|
+
var writable = opts.writable || opts.writable !== false && stream3.writable;
|
|
305089
|
+
var cancelled = false;
|
|
305090
|
+
var onlegacyfinish = function() {
|
|
305091
|
+
if (!stream3.writable)
|
|
305092
|
+
onfinish();
|
|
305093
|
+
};
|
|
305094
|
+
var onfinish = function() {
|
|
305095
|
+
writable = false;
|
|
305096
|
+
if (!readable)
|
|
305097
|
+
callback2.call(stream3);
|
|
305098
|
+
};
|
|
305099
|
+
var onend = function() {
|
|
305100
|
+
readable = false;
|
|
305101
|
+
if (!writable)
|
|
305102
|
+
callback2.call(stream3);
|
|
305103
|
+
};
|
|
305104
|
+
var onexit = function(exitCode) {
|
|
305105
|
+
callback2.call(stream3, exitCode ? new Error("exited with error code: " + exitCode) : null);
|
|
305106
|
+
};
|
|
305107
|
+
var onerror = function(err) {
|
|
305108
|
+
callback2.call(stream3, err);
|
|
305109
|
+
};
|
|
305110
|
+
var onclose = function() {
|
|
305111
|
+
qnt(onclosenexttick);
|
|
305112
|
+
};
|
|
305113
|
+
var onclosenexttick = function() {
|
|
305114
|
+
if (cancelled)
|
|
305115
|
+
return;
|
|
305116
|
+
if (readable && !(rs2 && (rs2.ended && !rs2.destroyed)))
|
|
305117
|
+
return callback2.call(stream3, new Error("premature close"));
|
|
305118
|
+
if (writable && !(ws3 && (ws3.ended && !ws3.destroyed)))
|
|
305119
|
+
return callback2.call(stream3, new Error("premature close"));
|
|
305120
|
+
};
|
|
305121
|
+
var onrequest = function() {
|
|
305122
|
+
stream3.req.on("finish", onfinish);
|
|
305123
|
+
};
|
|
305124
|
+
if (isRequest(stream3)) {
|
|
305125
|
+
stream3.on("complete", onfinish);
|
|
305126
|
+
stream3.on("abort", onclose);
|
|
305127
|
+
if (stream3.req)
|
|
305128
|
+
onrequest();
|
|
305129
|
+
else
|
|
305130
|
+
stream3.on("request", onrequest);
|
|
305131
|
+
} else if (writable && !ws3) {
|
|
305132
|
+
stream3.on("end", onlegacyfinish);
|
|
305133
|
+
stream3.on("close", onlegacyfinish);
|
|
305134
|
+
}
|
|
305135
|
+
if (isChildProcess(stream3))
|
|
305136
|
+
stream3.on("exit", onexit);
|
|
305137
|
+
stream3.on("end", onend);
|
|
305138
|
+
stream3.on("finish", onfinish);
|
|
305139
|
+
if (opts.error !== false)
|
|
305140
|
+
stream3.on("error", onerror);
|
|
305141
|
+
stream3.on("close", onclose);
|
|
305142
|
+
return function() {
|
|
305143
|
+
cancelled = true;
|
|
305144
|
+
stream3.removeListener("complete", onfinish);
|
|
305145
|
+
stream3.removeListener("abort", onclose);
|
|
305146
|
+
stream3.removeListener("request", onrequest);
|
|
305147
|
+
if (stream3.req)
|
|
305148
|
+
stream3.req.removeListener("finish", onfinish);
|
|
305149
|
+
stream3.removeListener("end", onlegacyfinish);
|
|
305150
|
+
stream3.removeListener("close", onlegacyfinish);
|
|
305151
|
+
stream3.removeListener("finish", onfinish);
|
|
305152
|
+
stream3.removeListener("exit", onexit);
|
|
305153
|
+
stream3.removeListener("end", onend);
|
|
305154
|
+
stream3.removeListener("error", onerror);
|
|
305155
|
+
stream3.removeListener("close", onclose);
|
|
305156
|
+
};
|
|
305157
|
+
};
|
|
305158
|
+
module.exports = eos;
|
|
305159
|
+
});
|
|
305160
|
+
|
|
305161
|
+
// node_modules/pump/index.js
|
|
305162
|
+
var require_pump = __commonJS((exports, module) => {
|
|
305163
|
+
var once2 = require_once();
|
|
305164
|
+
var eos = require_end_of_stream();
|
|
305165
|
+
var fs5;
|
|
305166
|
+
try {
|
|
305167
|
+
fs5 = __require("fs");
|
|
305168
|
+
} catch (e3) {}
|
|
305169
|
+
var noop10 = function() {};
|
|
305170
|
+
var ancient = typeof process === "undefined" ? false : /^v?\.0/.test(process.version);
|
|
305171
|
+
var isFn = function(fn4) {
|
|
305172
|
+
return typeof fn4 === "function";
|
|
305173
|
+
};
|
|
305174
|
+
var isFS = function(stream3) {
|
|
305175
|
+
if (!ancient)
|
|
305176
|
+
return false;
|
|
305177
|
+
if (!fs5)
|
|
305178
|
+
return false;
|
|
305179
|
+
return (stream3 instanceof (fs5.ReadStream || noop10) || stream3 instanceof (fs5.WriteStream || noop10)) && isFn(stream3.close);
|
|
305180
|
+
};
|
|
305181
|
+
var isRequest = function(stream3) {
|
|
305182
|
+
return stream3.setHeader && isFn(stream3.abort);
|
|
305183
|
+
};
|
|
305184
|
+
var destroyer = function(stream3, reading, writing, callback2) {
|
|
305185
|
+
callback2 = once2(callback2);
|
|
305186
|
+
var closed = false;
|
|
305187
|
+
stream3.on("close", function() {
|
|
305188
|
+
closed = true;
|
|
305189
|
+
});
|
|
305190
|
+
eos(stream3, { readable: reading, writable: writing }, function(err) {
|
|
305191
|
+
if (err)
|
|
305192
|
+
return callback2(err);
|
|
305193
|
+
closed = true;
|
|
305194
|
+
callback2();
|
|
305195
|
+
});
|
|
305196
|
+
var destroyed = false;
|
|
305197
|
+
return function(err) {
|
|
305198
|
+
if (closed)
|
|
305199
|
+
return;
|
|
305200
|
+
if (destroyed)
|
|
305201
|
+
return;
|
|
305202
|
+
destroyed = true;
|
|
305203
|
+
if (isFS(stream3))
|
|
305204
|
+
return stream3.close(noop10);
|
|
305205
|
+
if (isRequest(stream3))
|
|
305206
|
+
return stream3.abort();
|
|
305207
|
+
if (isFn(stream3.destroy))
|
|
305208
|
+
return stream3.destroy();
|
|
305209
|
+
callback2(err || new Error("stream was destroyed"));
|
|
305210
|
+
};
|
|
305211
|
+
};
|
|
305212
|
+
var call = function(fn4) {
|
|
305213
|
+
fn4();
|
|
305214
|
+
};
|
|
305215
|
+
var pipe3 = function(from, to3) {
|
|
305216
|
+
return from.pipe(to3);
|
|
305217
|
+
};
|
|
305218
|
+
var pump = function() {
|
|
305219
|
+
var streams = Array.prototype.slice.call(arguments);
|
|
305220
|
+
var callback2 = isFn(streams[streams.length - 1] || noop10) && streams.pop() || noop10;
|
|
305221
|
+
if (Array.isArray(streams[0]))
|
|
305222
|
+
streams = streams[0];
|
|
305223
|
+
if (streams.length < 2)
|
|
305224
|
+
throw new Error("pump requires two streams per minimum");
|
|
305225
|
+
var error48;
|
|
305226
|
+
var destroys = streams.map(function(stream3, i2) {
|
|
305227
|
+
var reading = i2 < streams.length - 1;
|
|
305228
|
+
var writing = i2 > 0;
|
|
305229
|
+
return destroyer(stream3, reading, writing, function(err) {
|
|
305230
|
+
if (!error48)
|
|
305231
|
+
error48 = err;
|
|
305232
|
+
if (err)
|
|
305233
|
+
destroys.forEach(call);
|
|
305234
|
+
if (reading)
|
|
305235
|
+
return;
|
|
305236
|
+
destroys.forEach(call);
|
|
305237
|
+
callback2(error48);
|
|
305238
|
+
});
|
|
305239
|
+
});
|
|
305240
|
+
return streams.reduce(pipe3);
|
|
305241
|
+
};
|
|
305242
|
+
module.exports = pump;
|
|
305243
|
+
});
|
|
305244
|
+
|
|
305245
|
+
// node_modules/pino-abstract-transport/index.js
|
|
305246
|
+
var require_pino_abstract_transport = __commonJS((exports, module) => {
|
|
305247
|
+
var metadata = Symbol.for("pino.metadata");
|
|
305248
|
+
var split2 = require_split2();
|
|
305249
|
+
var { Duplex } = __require("stream");
|
|
305250
|
+
var { parentPort, workerData } = __require("worker_threads");
|
|
305251
|
+
function createDeferred2() {
|
|
305252
|
+
let resolve2;
|
|
305253
|
+
let reject;
|
|
305254
|
+
const promise2 = new Promise((_resolve, _reject) => {
|
|
305255
|
+
resolve2 = _resolve;
|
|
305256
|
+
reject = _reject;
|
|
305257
|
+
});
|
|
305258
|
+
promise2.resolve = resolve2;
|
|
305259
|
+
promise2.reject = reject;
|
|
305260
|
+
return promise2;
|
|
305261
|
+
}
|
|
305262
|
+
module.exports = function build(fn4, opts = {}) {
|
|
305263
|
+
const waitForConfig = opts.expectPinoConfig === true && workerData?.workerData?.pinoWillSendConfig === true;
|
|
305264
|
+
const parseLines = opts.parse === "lines";
|
|
305265
|
+
const parseLine = typeof opts.parseLine === "function" ? opts.parseLine : JSON.parse;
|
|
305266
|
+
const close = opts.close || defaultClose;
|
|
305267
|
+
const stream3 = split2(function(line4) {
|
|
305268
|
+
let value2;
|
|
305269
|
+
try {
|
|
305270
|
+
value2 = parseLine(line4);
|
|
305271
|
+
} catch (error48) {
|
|
305272
|
+
this.emit("unknown", line4, error48);
|
|
305273
|
+
return;
|
|
305274
|
+
}
|
|
305275
|
+
if (value2 === null) {
|
|
305276
|
+
this.emit("unknown", line4, "Null value ignored");
|
|
305277
|
+
return;
|
|
305278
|
+
}
|
|
305279
|
+
if (typeof value2 !== "object") {
|
|
305280
|
+
value2 = {
|
|
305281
|
+
data: value2,
|
|
305282
|
+
time: Date.now()
|
|
305283
|
+
};
|
|
305284
|
+
}
|
|
305285
|
+
if (stream3[metadata]) {
|
|
305286
|
+
stream3.lastTime = value2.time;
|
|
305287
|
+
stream3.lastLevel = value2.level;
|
|
305288
|
+
stream3.lastObj = value2;
|
|
305289
|
+
}
|
|
305290
|
+
if (parseLines) {
|
|
305291
|
+
return line4;
|
|
305292
|
+
}
|
|
305293
|
+
return value2;
|
|
305294
|
+
}, { autoDestroy: true });
|
|
305295
|
+
stream3._destroy = function(err, cb) {
|
|
305296
|
+
const promise2 = close(err, cb);
|
|
305297
|
+
if (promise2 && typeof promise2.then === "function") {
|
|
305298
|
+
promise2.then(cb, cb);
|
|
305299
|
+
}
|
|
305300
|
+
};
|
|
305301
|
+
if (opts.expectPinoConfig === true && workerData?.workerData?.pinoWillSendConfig !== true) {
|
|
305302
|
+
setImmediate(() => {
|
|
305303
|
+
stream3.emit("error", new Error("This transport is not compatible with the current version of pino. Please upgrade pino to the latest version."));
|
|
305304
|
+
});
|
|
305305
|
+
}
|
|
305306
|
+
if (opts.metadata !== false) {
|
|
305307
|
+
stream3[metadata] = true;
|
|
305308
|
+
stream3.lastTime = 0;
|
|
305309
|
+
stream3.lastLevel = 0;
|
|
305310
|
+
stream3.lastObj = null;
|
|
305311
|
+
}
|
|
305312
|
+
if (waitForConfig) {
|
|
305313
|
+
let pinoConfig = {};
|
|
305314
|
+
const configReceived = createDeferred2();
|
|
305315
|
+
parentPort.on("message", function handleMessage(message2) {
|
|
305316
|
+
if (message2.code === "PINO_CONFIG") {
|
|
305317
|
+
pinoConfig = message2.config;
|
|
305318
|
+
configReceived.resolve();
|
|
305319
|
+
parentPort.off("message", handleMessage);
|
|
305320
|
+
}
|
|
305321
|
+
});
|
|
305322
|
+
Object.defineProperties(stream3, {
|
|
305323
|
+
levels: {
|
|
305324
|
+
get() {
|
|
305325
|
+
return pinoConfig.levels;
|
|
305326
|
+
}
|
|
305327
|
+
},
|
|
305328
|
+
messageKey: {
|
|
305329
|
+
get() {
|
|
305330
|
+
return pinoConfig.messageKey;
|
|
305331
|
+
}
|
|
305332
|
+
},
|
|
305333
|
+
errorKey: {
|
|
305334
|
+
get() {
|
|
305335
|
+
return pinoConfig.errorKey;
|
|
305336
|
+
}
|
|
305337
|
+
}
|
|
305338
|
+
});
|
|
305339
|
+
return configReceived.then(finish);
|
|
305340
|
+
}
|
|
305341
|
+
return finish();
|
|
305342
|
+
function finish() {
|
|
305343
|
+
let res = fn4(stream3);
|
|
305344
|
+
if (res && typeof res.catch === "function") {
|
|
305345
|
+
res.catch((err) => {
|
|
305346
|
+
stream3.destroy(err);
|
|
305347
|
+
});
|
|
305348
|
+
res = null;
|
|
305349
|
+
} else if (opts.enablePipelining && res) {
|
|
305350
|
+
return Duplex.from({ writable: stream3, readable: res });
|
|
305351
|
+
}
|
|
305352
|
+
return stream3;
|
|
305353
|
+
}
|
|
305354
|
+
};
|
|
305355
|
+
function defaultClose(err, cb) {
|
|
305356
|
+
process.nextTick(cb, err);
|
|
305357
|
+
}
|
|
305358
|
+
});
|
|
305359
|
+
|
|
305360
|
+
// node_modules/pino-pretty/lib/constants.js
|
|
305361
|
+
var require_constants7 = __commonJS((exports, module) => {
|
|
305362
|
+
module.exports = {
|
|
305363
|
+
DATE_FORMAT: "yyyy-mm-dd HH:MM:ss.l o",
|
|
305364
|
+
DATE_FORMAT_SIMPLE: "HH:MM:ss.l",
|
|
305365
|
+
ERROR_LIKE_KEYS: ["err", "error"],
|
|
305366
|
+
MESSAGE_KEY: "msg",
|
|
305367
|
+
LEVEL_KEY: "level",
|
|
305368
|
+
LEVEL_LABEL: "levelLabel",
|
|
305369
|
+
TIMESTAMP_KEY: "time",
|
|
305370
|
+
LEVELS: {
|
|
305371
|
+
default: "USERLVL",
|
|
305372
|
+
60: "FATAL",
|
|
305373
|
+
50: "ERROR",
|
|
305374
|
+
40: "WARN",
|
|
305375
|
+
30: "INFO",
|
|
305376
|
+
20: "DEBUG",
|
|
305377
|
+
10: "TRACE"
|
|
305378
|
+
},
|
|
305379
|
+
LEVEL_NAMES: {
|
|
305380
|
+
fatal: 60,
|
|
305381
|
+
error: 50,
|
|
305382
|
+
warn: 40,
|
|
305383
|
+
info: 30,
|
|
305384
|
+
debug: 20,
|
|
305385
|
+
trace: 10
|
|
305386
|
+
},
|
|
305387
|
+
LOGGER_KEYS: [
|
|
305388
|
+
"pid",
|
|
305389
|
+
"hostname",
|
|
305390
|
+
"name",
|
|
305391
|
+
"level",
|
|
305392
|
+
"time",
|
|
305393
|
+
"timestamp",
|
|
305394
|
+
"caller"
|
|
305395
|
+
]
|
|
305396
|
+
};
|
|
305397
|
+
});
|
|
305398
|
+
|
|
305399
|
+
// node_modules/pino-pretty/lib/utils/get-level-label-data.js
|
|
305400
|
+
var require_get_level_label_data = __commonJS((exports, module) => {
|
|
305401
|
+
module.exports = getLevelLabelData;
|
|
305402
|
+
var { LEVELS, LEVEL_NAMES } = require_constants7();
|
|
305403
|
+
function getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) {
|
|
305404
|
+
const levels2 = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels);
|
|
305405
|
+
const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames);
|
|
305406
|
+
return function(level) {
|
|
305407
|
+
let levelNum = "default";
|
|
305408
|
+
if (Number.isInteger(+level)) {
|
|
305409
|
+
levelNum = Object.prototype.hasOwnProperty.call(levels2, level) ? level : levelNum;
|
|
305410
|
+
} else {
|
|
305411
|
+
levelNum = Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum;
|
|
305412
|
+
}
|
|
305413
|
+
return [levels2[levelNum], levelNum];
|
|
305414
|
+
};
|
|
305415
|
+
}
|
|
305416
|
+
});
|
|
305417
|
+
|
|
305418
|
+
// node_modules/pino-pretty/lib/colors.js
|
|
305419
|
+
var require_colors = __commonJS((exports, module) => {
|
|
305420
|
+
var nocolor = (input) => input;
|
|
305421
|
+
var plain = {
|
|
305422
|
+
default: nocolor,
|
|
305423
|
+
60: nocolor,
|
|
305424
|
+
50: nocolor,
|
|
305425
|
+
40: nocolor,
|
|
305426
|
+
30: nocolor,
|
|
305427
|
+
20: nocolor,
|
|
305428
|
+
10: nocolor,
|
|
305429
|
+
message: nocolor,
|
|
305430
|
+
greyMessage: nocolor,
|
|
305431
|
+
property: nocolor
|
|
305432
|
+
};
|
|
305433
|
+
var { createColors } = require_colorette();
|
|
305434
|
+
var getLevelLabelData = require_get_level_label_data();
|
|
305435
|
+
var availableColors = createColors({ useColor: true });
|
|
305436
|
+
var { white, bgRed, red, yellow, green, blue, gray, cyan, magenta } = availableColors;
|
|
305437
|
+
var colored = {
|
|
305438
|
+
default: white,
|
|
305439
|
+
60: bgRed,
|
|
305440
|
+
50: red,
|
|
305441
|
+
40: yellow,
|
|
305442
|
+
30: green,
|
|
305443
|
+
20: blue,
|
|
305444
|
+
10: gray,
|
|
305445
|
+
message: cyan,
|
|
305446
|
+
greyMessage: gray,
|
|
305447
|
+
property: magenta
|
|
305448
|
+
};
|
|
305449
|
+
function resolveCustomColoredColorizer(customColors) {
|
|
305450
|
+
return customColors.reduce(function(agg, [level, color2]) {
|
|
305451
|
+
agg[level] = typeof availableColors[color2] === "function" ? availableColors[color2] : white;
|
|
305452
|
+
return agg;
|
|
305453
|
+
}, { default: white, message: cyan, greyMessage: gray, property: magenta });
|
|
305454
|
+
}
|
|
305455
|
+
function colorizeLevel(useOnlyCustomProps) {
|
|
305456
|
+
return function(level, colorizer, { customLevels, customLevelNames } = {}) {
|
|
305457
|
+
const [levelStr, levelNum] = getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames)(level);
|
|
305458
|
+
return Object.prototype.hasOwnProperty.call(colorizer, levelNum) ? colorizer[levelNum](levelStr) : colorizer.default(levelStr);
|
|
305459
|
+
};
|
|
305460
|
+
}
|
|
305461
|
+
function plainColorizer(useOnlyCustomProps) {
|
|
305462
|
+
const newPlainColorizer = colorizeLevel(useOnlyCustomProps);
|
|
305463
|
+
const customColoredColorizer = function(level, opts) {
|
|
305464
|
+
return newPlainColorizer(level, plain, opts);
|
|
305465
|
+
};
|
|
305466
|
+
customColoredColorizer.message = plain.message;
|
|
305467
|
+
customColoredColorizer.greyMessage = plain.greyMessage;
|
|
305468
|
+
customColoredColorizer.property = plain.property;
|
|
305469
|
+
customColoredColorizer.colors = createColors({ useColor: false });
|
|
305470
|
+
return customColoredColorizer;
|
|
305471
|
+
}
|
|
305472
|
+
function coloredColorizer(useOnlyCustomProps) {
|
|
305473
|
+
const newColoredColorizer = colorizeLevel(useOnlyCustomProps);
|
|
305474
|
+
const customColoredColorizer = function(level, opts) {
|
|
305475
|
+
return newColoredColorizer(level, colored, opts);
|
|
305476
|
+
};
|
|
305477
|
+
customColoredColorizer.message = colored.message;
|
|
305478
|
+
customColoredColorizer.property = colored.property;
|
|
305479
|
+
customColoredColorizer.greyMessage = colored.greyMessage;
|
|
305480
|
+
customColoredColorizer.colors = availableColors;
|
|
305481
|
+
return customColoredColorizer;
|
|
305482
|
+
}
|
|
305483
|
+
function customColoredColorizerFactory(customColors, useOnlyCustomProps) {
|
|
305484
|
+
const onlyCustomColored = resolveCustomColoredColorizer(customColors);
|
|
305485
|
+
const customColored = useOnlyCustomProps ? onlyCustomColored : Object.assign({}, colored, onlyCustomColored);
|
|
305486
|
+
const colorizeLevelCustom = colorizeLevel(useOnlyCustomProps);
|
|
305487
|
+
const customColoredColorizer = function(level, opts) {
|
|
305488
|
+
return colorizeLevelCustom(level, customColored, opts);
|
|
305489
|
+
};
|
|
305490
|
+
customColoredColorizer.colors = availableColors;
|
|
305491
|
+
customColoredColorizer.message = customColoredColorizer.message || customColored.message;
|
|
305492
|
+
customColoredColorizer.property = customColoredColorizer.property || customColored.property;
|
|
305493
|
+
customColoredColorizer.greyMessage = customColoredColorizer.greyMessage || customColored.greyMessage;
|
|
305494
|
+
return customColoredColorizer;
|
|
305495
|
+
}
|
|
305496
|
+
module.exports = function getColorizer(useColors = false, customColors, useOnlyCustomProps) {
|
|
305497
|
+
if (useColors && customColors !== undefined) {
|
|
305498
|
+
return customColoredColorizerFactory(customColors, useOnlyCustomProps);
|
|
305499
|
+
} else if (useColors) {
|
|
305500
|
+
return coloredColorizer(useOnlyCustomProps);
|
|
305501
|
+
}
|
|
305502
|
+
return plainColorizer(useOnlyCustomProps);
|
|
305503
|
+
};
|
|
305504
|
+
});
|
|
305505
|
+
|
|
305506
|
+
// node_modules/pino-pretty/lib/utils/noop.js
|
|
305507
|
+
var require_noop = __commonJS((exports, module) => {
|
|
305508
|
+
module.exports = function noop() {};
|
|
305509
|
+
});
|
|
305510
|
+
|
|
305511
|
+
// node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js
|
|
305512
|
+
var require_build_safe_sonic_boom = __commonJS((exports, module) => {
|
|
305513
|
+
module.exports = buildSafeSonicBoom;
|
|
305514
|
+
var { isMainThread } = __require("node:worker_threads");
|
|
305515
|
+
var SonicBoom = require_sonic_boom();
|
|
305516
|
+
var noop10 = require_noop();
|
|
305517
|
+
function buildSafeSonicBoom(opts) {
|
|
305518
|
+
const stream3 = new SonicBoom(opts);
|
|
305519
|
+
stream3.on("error", filterBrokenPipe);
|
|
305520
|
+
if (!opts.sync && isMainThread) {
|
|
305521
|
+
setupOnExit(stream3);
|
|
305522
|
+
}
|
|
305523
|
+
return stream3;
|
|
305524
|
+
function filterBrokenPipe(err) {
|
|
305525
|
+
if (err.code === "EPIPE") {
|
|
305526
|
+
stream3.write = noop10;
|
|
305527
|
+
stream3.end = noop10;
|
|
305528
|
+
stream3.flushSync = noop10;
|
|
305529
|
+
stream3.destroy = noop10;
|
|
305530
|
+
return;
|
|
305531
|
+
}
|
|
305532
|
+
stream3.removeListener("error", filterBrokenPipe);
|
|
305533
|
+
}
|
|
305534
|
+
}
|
|
305535
|
+
function setupOnExit(stream3) {
|
|
305536
|
+
if (global.WeakRef && global.WeakMap && global.FinalizationRegistry) {
|
|
305537
|
+
const onExit = require_on_exit_leak_free();
|
|
305538
|
+
onExit.register(stream3, autoEnd);
|
|
305539
|
+
stream3.on("close", function() {
|
|
305540
|
+
onExit.unregister(stream3);
|
|
305541
|
+
});
|
|
305542
|
+
}
|
|
305543
|
+
}
|
|
305544
|
+
function autoEnd(stream3, eventName) {
|
|
305545
|
+
if (stream3.destroyed) {
|
|
305546
|
+
return;
|
|
305547
|
+
}
|
|
305548
|
+
if (eventName === "beforeExit") {
|
|
305549
|
+
stream3.flush();
|
|
305550
|
+
stream3.on("drain", function() {
|
|
305551
|
+
stream3.end();
|
|
305552
|
+
});
|
|
305553
|
+
} else {
|
|
305554
|
+
stream3.flushSync();
|
|
305555
|
+
}
|
|
305556
|
+
}
|
|
305557
|
+
});
|
|
305558
|
+
|
|
305559
|
+
// node_modules/pino-pretty/lib/utils/is-valid-date.js
|
|
305560
|
+
var require_is_valid_date = __commonJS((exports, module) => {
|
|
305561
|
+
module.exports = isValidDate2;
|
|
305562
|
+
function isValidDate2(date6) {
|
|
305563
|
+
return date6 instanceof Date && !Number.isNaN(date6.getTime());
|
|
305564
|
+
}
|
|
305565
|
+
});
|
|
305566
|
+
|
|
305567
|
+
// node_modules/pino-pretty/lib/utils/create-date.js
|
|
305568
|
+
var require_create_date = __commonJS((exports, module) => {
|
|
305569
|
+
module.exports = createDate;
|
|
305570
|
+
var isValidDate2 = require_is_valid_date();
|
|
305571
|
+
function createDate(epoch) {
|
|
305572
|
+
let date6 = new Date(epoch);
|
|
305573
|
+
if (isValidDate2(date6)) {
|
|
305574
|
+
return date6;
|
|
305575
|
+
}
|
|
305576
|
+
date6 = new Date(+epoch);
|
|
305577
|
+
return date6;
|
|
305578
|
+
}
|
|
305579
|
+
});
|
|
305580
|
+
|
|
305581
|
+
// node_modules/pino-pretty/lib/utils/split-property-key.js
|
|
305582
|
+
var require_split_property_key = __commonJS((exports, module) => {
|
|
305583
|
+
module.exports = splitPropertyKey;
|
|
305584
|
+
function splitPropertyKey(key2) {
|
|
305585
|
+
const result = [];
|
|
305586
|
+
let backslash = false;
|
|
305587
|
+
let segment = "";
|
|
305588
|
+
for (let i2 = 0;i2 < key2.length; i2++) {
|
|
305589
|
+
const c3 = key2.charAt(i2);
|
|
305590
|
+
if (c3 === "\\") {
|
|
305591
|
+
backslash = true;
|
|
305592
|
+
continue;
|
|
305593
|
+
}
|
|
305594
|
+
if (backslash) {
|
|
305595
|
+
backslash = false;
|
|
305596
|
+
segment += c3;
|
|
305597
|
+
continue;
|
|
305598
|
+
}
|
|
305599
|
+
if (c3 === ".") {
|
|
305600
|
+
result.push(segment);
|
|
305601
|
+
segment = "";
|
|
305602
|
+
continue;
|
|
305603
|
+
}
|
|
305604
|
+
segment += c3;
|
|
305605
|
+
}
|
|
305606
|
+
if (segment.length) {
|
|
305607
|
+
result.push(segment);
|
|
305608
|
+
}
|
|
305609
|
+
return result;
|
|
305610
|
+
}
|
|
305611
|
+
});
|
|
305612
|
+
|
|
305613
|
+
// node_modules/pino-pretty/lib/utils/get-property-value.js
|
|
305614
|
+
var require_get_property_value = __commonJS((exports, module) => {
|
|
305615
|
+
module.exports = getPropertyValue;
|
|
305616
|
+
var splitPropertyKey = require_split_property_key();
|
|
305617
|
+
function getPropertyValue(obj, property) {
|
|
305618
|
+
const props = Array.isArray(property) ? property : splitPropertyKey(property);
|
|
305619
|
+
for (const prop of props) {
|
|
305620
|
+
if (!Object.prototype.hasOwnProperty.call(obj, prop)) {
|
|
305621
|
+
return;
|
|
305622
|
+
}
|
|
305623
|
+
obj = obj[prop];
|
|
305624
|
+
}
|
|
305625
|
+
return obj;
|
|
305626
|
+
}
|
|
305627
|
+
});
|
|
305628
|
+
|
|
305629
|
+
// node_modules/pino-pretty/lib/utils/delete-log-property.js
|
|
305630
|
+
var require_delete_log_property = __commonJS((exports, module) => {
|
|
305631
|
+
module.exports = deleteLogProperty;
|
|
305632
|
+
var getPropertyValue = require_get_property_value();
|
|
305633
|
+
var splitPropertyKey = require_split_property_key();
|
|
305634
|
+
function deleteLogProperty(log4, property) {
|
|
305635
|
+
const props = splitPropertyKey(property);
|
|
305636
|
+
const propToDelete = props.pop();
|
|
305637
|
+
log4 = getPropertyValue(log4, props);
|
|
305638
|
+
if (log4 !== null && typeof log4 === "object" && Object.prototype.hasOwnProperty.call(log4, propToDelete)) {
|
|
305639
|
+
delete log4[propToDelete];
|
|
305640
|
+
}
|
|
305641
|
+
}
|
|
305642
|
+
});
|
|
305643
|
+
|
|
305644
|
+
// node_modules/fast-copy/dist/cjs/index.cjs
|
|
305645
|
+
var require_cjs9 = __commonJS((exports) => {
|
|
305646
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
305647
|
+
var toStringFunction = Function.prototype.toString;
|
|
305648
|
+
var create2 = Object.create;
|
|
305649
|
+
var toStringObject = Object.prototype.toString;
|
|
305650
|
+
var LegacyCache = function() {
|
|
305651
|
+
function LegacyCache2() {
|
|
305652
|
+
this._keys = [];
|
|
305653
|
+
this._values = [];
|
|
305654
|
+
}
|
|
305655
|
+
LegacyCache2.prototype.has = function(key2) {
|
|
305656
|
+
return !!~this._keys.indexOf(key2);
|
|
305657
|
+
};
|
|
305658
|
+
LegacyCache2.prototype.get = function(key2) {
|
|
305659
|
+
return this._values[this._keys.indexOf(key2)];
|
|
305660
|
+
};
|
|
305661
|
+
LegacyCache2.prototype.set = function(key2, value2) {
|
|
305662
|
+
this._keys.push(key2);
|
|
305663
|
+
this._values.push(value2);
|
|
305664
|
+
};
|
|
305665
|
+
return LegacyCache2;
|
|
305666
|
+
}();
|
|
305667
|
+
function createCacheLegacy() {
|
|
305668
|
+
return new LegacyCache;
|
|
305669
|
+
}
|
|
305670
|
+
function createCacheModern() {
|
|
305671
|
+
return new WeakMap;
|
|
305672
|
+
}
|
|
305673
|
+
var createCache = typeof WeakMap !== "undefined" ? createCacheModern : createCacheLegacy;
|
|
305674
|
+
function getCleanClone(prototype) {
|
|
305675
|
+
if (!prototype) {
|
|
305676
|
+
return create2(null);
|
|
305677
|
+
}
|
|
305678
|
+
var Constructor = prototype.constructor;
|
|
305679
|
+
if (Constructor === Object) {
|
|
305680
|
+
return prototype === Object.prototype ? {} : create2(prototype);
|
|
305681
|
+
}
|
|
305682
|
+
if (Constructor && ~toStringFunction.call(Constructor).indexOf("[native code]")) {
|
|
305683
|
+
try {
|
|
305684
|
+
return new Constructor;
|
|
305685
|
+
} catch (_a4) {}
|
|
305686
|
+
}
|
|
305687
|
+
return create2(prototype);
|
|
305688
|
+
}
|
|
305689
|
+
function getRegExpFlagsLegacy(regExp) {
|
|
305690
|
+
var flags = "";
|
|
305691
|
+
if (regExp.global) {
|
|
305692
|
+
flags += "g";
|
|
305693
|
+
}
|
|
305694
|
+
if (regExp.ignoreCase) {
|
|
305695
|
+
flags += "i";
|
|
305696
|
+
}
|
|
305697
|
+
if (regExp.multiline) {
|
|
305698
|
+
flags += "m";
|
|
305699
|
+
}
|
|
305700
|
+
if (regExp.unicode) {
|
|
305701
|
+
flags += "u";
|
|
305702
|
+
}
|
|
305703
|
+
if (regExp.sticky) {
|
|
305704
|
+
flags += "y";
|
|
305705
|
+
}
|
|
305706
|
+
return flags;
|
|
305707
|
+
}
|
|
305708
|
+
function getRegExpFlagsModern(regExp) {
|
|
305709
|
+
return regExp.flags;
|
|
305710
|
+
}
|
|
305711
|
+
var getRegExpFlags = /test/g.flags === "g" ? getRegExpFlagsModern : getRegExpFlagsLegacy;
|
|
305712
|
+
function getTagLegacy(value2) {
|
|
305713
|
+
var type2 = toStringObject.call(value2);
|
|
305714
|
+
return type2.substring(8, type2.length - 1);
|
|
305715
|
+
}
|
|
305716
|
+
function getTagModern(value2) {
|
|
305717
|
+
return value2[Symbol.toStringTag] || getTagLegacy(value2);
|
|
305718
|
+
}
|
|
305719
|
+
var getTag3 = typeof Symbol !== "undefined" ? getTagModern : getTagLegacy;
|
|
305720
|
+
var defineProperty = Object.defineProperty;
|
|
305721
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
305722
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
305723
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
305724
|
+
var _a3 = Object.prototype;
|
|
305725
|
+
var hasOwnProperty5 = _a3.hasOwnProperty;
|
|
305726
|
+
var propertyIsEnumerable = _a3.propertyIsEnumerable;
|
|
305727
|
+
var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === "function";
|
|
305728
|
+
function getStrictPropertiesModern(object2) {
|
|
305729
|
+
return getOwnPropertyNames(object2).concat(getOwnPropertySymbols(object2));
|
|
305730
|
+
}
|
|
305731
|
+
var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPropertyNames;
|
|
305732
|
+
function copyOwnPropertiesStrict(value2, clone3, state) {
|
|
305733
|
+
var properties = getStrictProperties(value2);
|
|
305734
|
+
for (var index4 = 0, length_1 = properties.length, property = undefined, descriptor = undefined;index4 < length_1; ++index4) {
|
|
305735
|
+
property = properties[index4];
|
|
305736
|
+
if (property === "callee" || property === "caller") {
|
|
305737
|
+
continue;
|
|
305738
|
+
}
|
|
305739
|
+
descriptor = getOwnPropertyDescriptor(value2, property);
|
|
305740
|
+
if (!descriptor) {
|
|
305741
|
+
clone3[property] = state.copier(value2[property], state);
|
|
305742
|
+
continue;
|
|
305743
|
+
}
|
|
305744
|
+
if (!descriptor.get && !descriptor.set) {
|
|
305745
|
+
descriptor.value = state.copier(descriptor.value, state);
|
|
305746
|
+
}
|
|
305747
|
+
try {
|
|
305748
|
+
defineProperty(clone3, property, descriptor);
|
|
305749
|
+
} catch (error48) {
|
|
305750
|
+
clone3[property] = descriptor.value;
|
|
305751
|
+
}
|
|
305752
|
+
}
|
|
305753
|
+
return clone3;
|
|
305754
|
+
}
|
|
305755
|
+
function copyArrayLoose(array3, state) {
|
|
305756
|
+
var clone3 = new state.Constructor;
|
|
305757
|
+
state.cache.set(array3, clone3);
|
|
305758
|
+
for (var index4 = 0, length_2 = array3.length;index4 < length_2; ++index4) {
|
|
305759
|
+
clone3[index4] = state.copier(array3[index4], state);
|
|
305760
|
+
}
|
|
305761
|
+
return clone3;
|
|
305762
|
+
}
|
|
305763
|
+
function copyArrayStrict(array3, state) {
|
|
305764
|
+
var clone3 = new state.Constructor;
|
|
305765
|
+
state.cache.set(array3, clone3);
|
|
305766
|
+
return copyOwnPropertiesStrict(array3, clone3, state);
|
|
305767
|
+
}
|
|
305768
|
+
function copyArrayBuffer(arrayBuffer, _state) {
|
|
305769
|
+
return arrayBuffer.slice(0);
|
|
305770
|
+
}
|
|
305771
|
+
function copyBlob(blob, _state) {
|
|
305772
|
+
return blob.slice(0, blob.size, blob.type);
|
|
305773
|
+
}
|
|
305774
|
+
function copyDataView(dataView, state) {
|
|
305775
|
+
return new state.Constructor(copyArrayBuffer(dataView.buffer));
|
|
305776
|
+
}
|
|
305777
|
+
function copyDate(date6, state) {
|
|
305778
|
+
return new state.Constructor(date6.getTime());
|
|
305779
|
+
}
|
|
305780
|
+
function copyMapLoose(map6, state) {
|
|
305781
|
+
var clone3 = new state.Constructor;
|
|
305782
|
+
state.cache.set(map6, clone3);
|
|
305783
|
+
map6.forEach(function(value2, key2) {
|
|
305784
|
+
clone3.set(key2, state.copier(value2, state));
|
|
305785
|
+
});
|
|
305786
|
+
return clone3;
|
|
305787
|
+
}
|
|
305788
|
+
function copyMapStrict(map6, state) {
|
|
305789
|
+
return copyOwnPropertiesStrict(map6, copyMapLoose(map6, state), state);
|
|
305790
|
+
}
|
|
305791
|
+
function copyObjectLooseLegacy(object2, state) {
|
|
305792
|
+
var clone3 = getCleanClone(state.prototype);
|
|
305793
|
+
state.cache.set(object2, clone3);
|
|
305794
|
+
for (var key2 in object2) {
|
|
305795
|
+
if (hasOwnProperty5.call(object2, key2)) {
|
|
305796
|
+
clone3[key2] = state.copier(object2[key2], state);
|
|
305797
|
+
}
|
|
305798
|
+
}
|
|
305799
|
+
return clone3;
|
|
305800
|
+
}
|
|
305801
|
+
function copyObjectLooseModern(object2, state) {
|
|
305802
|
+
var clone3 = getCleanClone(state.prototype);
|
|
305803
|
+
state.cache.set(object2, clone3);
|
|
305804
|
+
for (var key2 in object2) {
|
|
305805
|
+
if (hasOwnProperty5.call(object2, key2)) {
|
|
305806
|
+
clone3[key2] = state.copier(object2[key2], state);
|
|
305807
|
+
}
|
|
305808
|
+
}
|
|
305809
|
+
var symbols = getOwnPropertySymbols(object2);
|
|
305810
|
+
for (var index4 = 0, length_3 = symbols.length, symbol2 = undefined;index4 < length_3; ++index4) {
|
|
305811
|
+
symbol2 = symbols[index4];
|
|
305812
|
+
if (propertyIsEnumerable.call(object2, symbol2)) {
|
|
305813
|
+
clone3[symbol2] = state.copier(object2[symbol2], state);
|
|
305814
|
+
}
|
|
305815
|
+
}
|
|
305816
|
+
return clone3;
|
|
305817
|
+
}
|
|
305818
|
+
var copyObjectLoose = SUPPORTS_SYMBOL ? copyObjectLooseModern : copyObjectLooseLegacy;
|
|
305819
|
+
function copyObjectStrict(object2, state) {
|
|
305820
|
+
var clone3 = getCleanClone(state.prototype);
|
|
305821
|
+
state.cache.set(object2, clone3);
|
|
305822
|
+
return copyOwnPropertiesStrict(object2, clone3, state);
|
|
305823
|
+
}
|
|
305824
|
+
function copyPrimitiveWrapper(primitiveObject, state) {
|
|
305825
|
+
return new state.Constructor(primitiveObject.valueOf());
|
|
305826
|
+
}
|
|
305827
|
+
function copyRegExp(regExp, state) {
|
|
305828
|
+
var clone3 = new state.Constructor(regExp.source, getRegExpFlags(regExp));
|
|
305829
|
+
clone3.lastIndex = regExp.lastIndex;
|
|
305830
|
+
return clone3;
|
|
305831
|
+
}
|
|
305832
|
+
function copySelf(value2, _state) {
|
|
305833
|
+
return value2;
|
|
305834
|
+
}
|
|
305835
|
+
function copySetLoose(set4, state) {
|
|
305836
|
+
var clone3 = new state.Constructor;
|
|
305837
|
+
state.cache.set(set4, clone3);
|
|
305838
|
+
set4.forEach(function(value2) {
|
|
305839
|
+
clone3.add(state.copier(value2, state));
|
|
305840
|
+
});
|
|
305841
|
+
return clone3;
|
|
305842
|
+
}
|
|
305843
|
+
function copySetStrict(set4, state) {
|
|
305844
|
+
return copyOwnPropertiesStrict(set4, copySetLoose(set4, state), state);
|
|
305845
|
+
}
|
|
305846
|
+
var isArray3 = Array.isArray;
|
|
305847
|
+
var assign4 = Object.assign;
|
|
305848
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
305849
|
+
return obj.__proto__;
|
|
305850
|
+
};
|
|
305851
|
+
var DEFAULT_LOOSE_OPTIONS = {
|
|
305852
|
+
array: copyArrayLoose,
|
|
305853
|
+
arrayBuffer: copyArrayBuffer,
|
|
305854
|
+
blob: copyBlob,
|
|
305855
|
+
dataView: copyDataView,
|
|
305856
|
+
date: copyDate,
|
|
305857
|
+
error: copySelf,
|
|
305858
|
+
map: copyMapLoose,
|
|
305859
|
+
object: copyObjectLoose,
|
|
305860
|
+
regExp: copyRegExp,
|
|
305861
|
+
set: copySetLoose
|
|
305862
|
+
};
|
|
305863
|
+
var DEFAULT_STRICT_OPTIONS = assign4({}, DEFAULT_LOOSE_OPTIONS, {
|
|
305864
|
+
array: copyArrayStrict,
|
|
305865
|
+
map: copyMapStrict,
|
|
305866
|
+
object: copyObjectStrict,
|
|
305867
|
+
set: copySetStrict
|
|
305868
|
+
});
|
|
305869
|
+
function getTagSpecificCopiers(options) {
|
|
305870
|
+
return {
|
|
305871
|
+
Arguments: options.object,
|
|
305872
|
+
Array: options.array,
|
|
305873
|
+
ArrayBuffer: options.arrayBuffer,
|
|
305874
|
+
Blob: options.blob,
|
|
305875
|
+
Boolean: copyPrimitiveWrapper,
|
|
305876
|
+
DataView: options.dataView,
|
|
305877
|
+
Date: options.date,
|
|
305878
|
+
Error: options.error,
|
|
305879
|
+
Float32Array: options.arrayBuffer,
|
|
305880
|
+
Float64Array: options.arrayBuffer,
|
|
305881
|
+
Int8Array: options.arrayBuffer,
|
|
305882
|
+
Int16Array: options.arrayBuffer,
|
|
305883
|
+
Int32Array: options.arrayBuffer,
|
|
305884
|
+
Map: options.map,
|
|
305885
|
+
Number: copyPrimitiveWrapper,
|
|
305886
|
+
Object: options.object,
|
|
305887
|
+
Promise: copySelf,
|
|
305888
|
+
RegExp: options.regExp,
|
|
305889
|
+
Set: options.set,
|
|
305890
|
+
String: copyPrimitiveWrapper,
|
|
305891
|
+
WeakMap: copySelf,
|
|
305892
|
+
WeakSet: copySelf,
|
|
305893
|
+
Uint8Array: options.arrayBuffer,
|
|
305894
|
+
Uint8ClampedArray: options.arrayBuffer,
|
|
305895
|
+
Uint16Array: options.arrayBuffer,
|
|
305896
|
+
Uint32Array: options.arrayBuffer,
|
|
305897
|
+
Uint64Array: options.arrayBuffer
|
|
305898
|
+
};
|
|
305899
|
+
}
|
|
305900
|
+
function createCopier(options) {
|
|
305901
|
+
var normalizedOptions = assign4({}, DEFAULT_LOOSE_OPTIONS, options);
|
|
305902
|
+
var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
|
|
305903
|
+
var { Array: array3, Object: object2 } = tagSpecificCopiers;
|
|
305904
|
+
function copier(value2, state) {
|
|
305905
|
+
state.prototype = state.Constructor = undefined;
|
|
305906
|
+
if (!value2 || typeof value2 !== "object") {
|
|
305907
|
+
return value2;
|
|
305908
|
+
}
|
|
305909
|
+
if (state.cache.has(value2)) {
|
|
305910
|
+
return state.cache.get(value2);
|
|
305911
|
+
}
|
|
305912
|
+
state.prototype = getPrototypeOf(value2);
|
|
305913
|
+
state.Constructor = state.prototype && state.prototype.constructor;
|
|
305914
|
+
if (!state.Constructor || state.Constructor === Object) {
|
|
305915
|
+
return object2(value2, state);
|
|
305916
|
+
}
|
|
305917
|
+
if (isArray3(value2)) {
|
|
305918
|
+
return array3(value2, state);
|
|
305919
|
+
}
|
|
305920
|
+
var tagSpecificCopier = tagSpecificCopiers[getTag3(value2)];
|
|
305921
|
+
if (tagSpecificCopier) {
|
|
305922
|
+
return tagSpecificCopier(value2, state);
|
|
305923
|
+
}
|
|
305924
|
+
return typeof value2.then === "function" ? value2 : object2(value2, state);
|
|
305925
|
+
}
|
|
305926
|
+
return function copy(value2) {
|
|
305927
|
+
return copier(value2, {
|
|
305928
|
+
Constructor: undefined,
|
|
305929
|
+
cache: createCache(),
|
|
305930
|
+
copier,
|
|
305931
|
+
prototype: undefined
|
|
305932
|
+
});
|
|
305933
|
+
};
|
|
305934
|
+
}
|
|
305935
|
+
function createStrictCopier(options) {
|
|
305936
|
+
return createCopier(assign4({}, DEFAULT_STRICT_OPTIONS, options));
|
|
305937
|
+
}
|
|
305938
|
+
var copyStrict = createStrictCopier({});
|
|
305939
|
+
var index3 = createCopier({});
|
|
305940
|
+
exports.copyStrict = copyStrict;
|
|
305941
|
+
exports.createCopier = createCopier;
|
|
305942
|
+
exports.createStrictCopier = createStrictCopier;
|
|
305943
|
+
exports.default = index3;
|
|
305944
|
+
});
|
|
305945
|
+
|
|
305946
|
+
// node_modules/pino-pretty/lib/utils/filter-log.js
|
|
305947
|
+
var require_filter_log = __commonJS((exports, module) => {
|
|
305948
|
+
module.exports = filterLog;
|
|
305949
|
+
var { createCopier } = require_cjs9();
|
|
305950
|
+
var fastCopy = createCopier({});
|
|
305951
|
+
var deleteLogProperty = require_delete_log_property();
|
|
305952
|
+
function filterLog({ log: log4, context }) {
|
|
305953
|
+
const { ignoreKeys, includeKeys } = context;
|
|
305954
|
+
const logCopy = fastCopy(log4);
|
|
305955
|
+
if (includeKeys) {
|
|
305956
|
+
const logIncluded = {};
|
|
305957
|
+
includeKeys.forEach((key2) => {
|
|
305958
|
+
logIncluded[key2] = logCopy[key2];
|
|
305959
|
+
});
|
|
305960
|
+
return logIncluded;
|
|
305961
|
+
}
|
|
305962
|
+
ignoreKeys.forEach((ignoreKey) => {
|
|
305963
|
+
deleteLogProperty(logCopy, ignoreKey);
|
|
305964
|
+
});
|
|
305965
|
+
return logCopy;
|
|
305966
|
+
}
|
|
305967
|
+
});
|
|
305968
|
+
|
|
305969
|
+
// node_modules/dateformat/lib/dateformat.js
|
|
305970
|
+
var require_dateformat = __commonJS((exports, module) => {
|
|
305971
|
+
function _typeof4(obj) {
|
|
305972
|
+
"@babel/helpers - typeof";
|
|
305973
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
305974
|
+
_typeof4 = function _typeof(obj2) {
|
|
305975
|
+
return typeof obj2;
|
|
305976
|
+
};
|
|
305977
|
+
} else {
|
|
305978
|
+
_typeof4 = function _typeof(obj2) {
|
|
305979
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
305980
|
+
};
|
|
305981
|
+
}
|
|
305982
|
+
return _typeof4(obj);
|
|
305983
|
+
}
|
|
305984
|
+
(function(global2) {
|
|
305985
|
+
var _arguments = arguments;
|
|
305986
|
+
var dateFormat = function() {
|
|
305987
|
+
var token3 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g;
|
|
305988
|
+
var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
|
|
305989
|
+
var timezoneClip = /[^-+\dA-Z]/g;
|
|
305990
|
+
return function(date6, mask, utc, gmt) {
|
|
305991
|
+
if (_arguments.length === 1 && kindOf(date6) === "string" && !/\d/.test(date6)) {
|
|
305992
|
+
mask = date6;
|
|
305993
|
+
date6 = undefined;
|
|
305994
|
+
}
|
|
305995
|
+
date6 = date6 || date6 === 0 ? date6 : new Date;
|
|
305996
|
+
if (!(date6 instanceof Date)) {
|
|
305997
|
+
date6 = new Date(date6);
|
|
305998
|
+
}
|
|
305999
|
+
if (isNaN(date6)) {
|
|
306000
|
+
throw TypeError("Invalid date");
|
|
306001
|
+
}
|
|
306002
|
+
mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]);
|
|
306003
|
+
var maskSlice = mask.slice(0, 4);
|
|
306004
|
+
if (maskSlice === "UTC:" || maskSlice === "GMT:") {
|
|
306005
|
+
mask = mask.slice(4);
|
|
306006
|
+
utc = true;
|
|
306007
|
+
if (maskSlice === "GMT:") {
|
|
306008
|
+
gmt = true;
|
|
306009
|
+
}
|
|
306010
|
+
}
|
|
306011
|
+
var _5 = function _() {
|
|
306012
|
+
return utc ? "getUTC" : "get";
|
|
306013
|
+
};
|
|
306014
|
+
var _d = function d() {
|
|
306015
|
+
return date6[_5() + "Date"]();
|
|
306016
|
+
};
|
|
306017
|
+
var D2 = function D() {
|
|
306018
|
+
return date6[_5() + "Day"]();
|
|
306019
|
+
};
|
|
306020
|
+
var _m = function m() {
|
|
306021
|
+
return date6[_5() + "Month"]();
|
|
306022
|
+
};
|
|
306023
|
+
var y5 = function y() {
|
|
306024
|
+
return date6[_5() + "FullYear"]();
|
|
306025
|
+
};
|
|
306026
|
+
var _H = function H() {
|
|
306027
|
+
return date6[_5() + "Hours"]();
|
|
306028
|
+
};
|
|
306029
|
+
var _M = function M() {
|
|
306030
|
+
return date6[_5() + "Minutes"]();
|
|
306031
|
+
};
|
|
306032
|
+
var _s2 = function s() {
|
|
306033
|
+
return date6[_5() + "Seconds"]();
|
|
306034
|
+
};
|
|
306035
|
+
var _L = function L() {
|
|
306036
|
+
return date6[_5() + "Milliseconds"]();
|
|
306037
|
+
};
|
|
306038
|
+
var _o2 = function o() {
|
|
306039
|
+
return utc ? 0 : date6.getTimezoneOffset();
|
|
306040
|
+
};
|
|
306041
|
+
var _W = function W() {
|
|
306042
|
+
return getWeek(date6);
|
|
306043
|
+
};
|
|
306044
|
+
var _N = function N() {
|
|
306045
|
+
return getDayOfWeek(date6);
|
|
306046
|
+
};
|
|
306047
|
+
var flags = { d: function d() {
|
|
306048
|
+
return _d();
|
|
306049
|
+
}, dd: function dd() {
|
|
306050
|
+
return pad(_d());
|
|
306051
|
+
}, ddd: function ddd() {
|
|
306052
|
+
return dateFormat.i18n.dayNames[D2()];
|
|
306053
|
+
}, DDD: function DDD() {
|
|
306054
|
+
return getDayName({ y: y5(), m: _m(), d: _d(), _: _5(), dayName: dateFormat.i18n.dayNames[D2()], short: true });
|
|
306055
|
+
}, dddd: function dddd() {
|
|
306056
|
+
return dateFormat.i18n.dayNames[D2() + 7];
|
|
306057
|
+
}, DDDD: function DDDD() {
|
|
306058
|
+
return getDayName({ y: y5(), m: _m(), d: _d(), _: _5(), dayName: dateFormat.i18n.dayNames[D2() + 7] });
|
|
306059
|
+
}, m: function m() {
|
|
306060
|
+
return _m() + 1;
|
|
306061
|
+
}, mm: function mm() {
|
|
306062
|
+
return pad(_m() + 1);
|
|
306063
|
+
}, mmm: function mmm() {
|
|
306064
|
+
return dateFormat.i18n.monthNames[_m()];
|
|
306065
|
+
}, mmmm: function mmmm() {
|
|
306066
|
+
return dateFormat.i18n.monthNames[_m() + 12];
|
|
306067
|
+
}, yy: function yy() {
|
|
306068
|
+
return String(y5()).slice(2);
|
|
306069
|
+
}, yyyy: function yyyy() {
|
|
306070
|
+
return pad(y5(), 4);
|
|
306071
|
+
}, h: function h() {
|
|
306072
|
+
return _H() % 12 || 12;
|
|
306073
|
+
}, hh: function hh() {
|
|
306074
|
+
return pad(_H() % 12 || 12);
|
|
306075
|
+
}, H: function H() {
|
|
306076
|
+
return _H();
|
|
306077
|
+
}, HH: function HH() {
|
|
306078
|
+
return pad(_H());
|
|
306079
|
+
}, M: function M() {
|
|
306080
|
+
return _M();
|
|
306081
|
+
}, MM: function MM() {
|
|
306082
|
+
return pad(_M());
|
|
306083
|
+
}, s: function s() {
|
|
306084
|
+
return _s2();
|
|
306085
|
+
}, ss: function ss() {
|
|
306086
|
+
return pad(_s2());
|
|
306087
|
+
}, l: function l() {
|
|
306088
|
+
return pad(_L(), 3);
|
|
306089
|
+
}, L: function L() {
|
|
306090
|
+
return pad(Math.floor(_L() / 10));
|
|
306091
|
+
}, t: function t() {
|
|
306092
|
+
return _H() < 12 ? dateFormat.i18n.timeNames[0] : dateFormat.i18n.timeNames[1];
|
|
306093
|
+
}, tt: function tt() {
|
|
306094
|
+
return _H() < 12 ? dateFormat.i18n.timeNames[2] : dateFormat.i18n.timeNames[3];
|
|
306095
|
+
}, T: function T() {
|
|
306096
|
+
return _H() < 12 ? dateFormat.i18n.timeNames[4] : dateFormat.i18n.timeNames[5];
|
|
306097
|
+
}, TT: function TT() {
|
|
306098
|
+
return _H() < 12 ? dateFormat.i18n.timeNames[6] : dateFormat.i18n.timeNames[7];
|
|
306099
|
+
}, Z: function Z() {
|
|
306100
|
+
return gmt ? "GMT" : utc ? "UTC" : (String(date6).match(timezone) || [""]).pop().replace(timezoneClip, "").replace(/GMT\+0000/g, "UTC");
|
|
306101
|
+
}, o: function o() {
|
|
306102
|
+
return (_o2() > 0 ? "-" : "+") + pad(Math.floor(Math.abs(_o2()) / 60) * 100 + Math.abs(_o2()) % 60, 4);
|
|
306103
|
+
}, p: function p() {
|
|
306104
|
+
return (_o2() > 0 ? "-" : "+") + pad(Math.floor(Math.abs(_o2()) / 60), 2) + ":" + pad(Math.floor(Math.abs(_o2()) % 60), 2);
|
|
306105
|
+
}, S: function S() {
|
|
306106
|
+
return ["th", "st", "nd", "rd"][_d() % 10 > 3 ? 0 : (_d() % 100 - _d() % 10 != 10) * _d() % 10];
|
|
306107
|
+
}, W: function W() {
|
|
306108
|
+
return _W();
|
|
306109
|
+
}, WW: function WW() {
|
|
306110
|
+
return pad(_W());
|
|
306111
|
+
}, N: function N() {
|
|
306112
|
+
return _N();
|
|
306113
|
+
} };
|
|
306114
|
+
return mask.replace(token3, function(match) {
|
|
306115
|
+
if (match in flags) {
|
|
306116
|
+
return flags[match]();
|
|
306117
|
+
}
|
|
306118
|
+
return match.slice(1, match.length - 1);
|
|
306119
|
+
});
|
|
306120
|
+
};
|
|
306121
|
+
}();
|
|
306122
|
+
dateFormat.masks = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" };
|
|
306123
|
+
dateFormat.i18n = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] };
|
|
306124
|
+
var pad = function pad(val, len) {
|
|
306125
|
+
val = String(val);
|
|
306126
|
+
len = len || 2;
|
|
306127
|
+
while (val.length < len) {
|
|
306128
|
+
val = "0" + val;
|
|
306129
|
+
}
|
|
306130
|
+
return val;
|
|
306131
|
+
};
|
|
306132
|
+
var getDayName = function getDayName(_ref) {
|
|
306133
|
+
var { y: y5, m: m3, d: d5, _: _5, dayName } = _ref, _ref$short = _ref["short"], _short = _ref$short === undefined ? false : _ref$short;
|
|
306134
|
+
var today = new Date;
|
|
306135
|
+
var yesterday = new Date;
|
|
306136
|
+
yesterday.setDate(yesterday[_5 + "Date"]() - 1);
|
|
306137
|
+
var tomorrow = new Date;
|
|
306138
|
+
tomorrow.setDate(tomorrow[_5 + "Date"]() + 1);
|
|
306139
|
+
var today_d = function today_d() {
|
|
306140
|
+
return today[_5 + "Date"]();
|
|
306141
|
+
};
|
|
306142
|
+
var today_m = function today_m() {
|
|
306143
|
+
return today[_5 + "Month"]();
|
|
306144
|
+
};
|
|
306145
|
+
var today_y = function today_y() {
|
|
306146
|
+
return today[_5 + "FullYear"]();
|
|
306147
|
+
};
|
|
306148
|
+
var yesterday_d = function yesterday_d() {
|
|
306149
|
+
return yesterday[_5 + "Date"]();
|
|
306150
|
+
};
|
|
306151
|
+
var yesterday_m = function yesterday_m() {
|
|
306152
|
+
return yesterday[_5 + "Month"]();
|
|
306153
|
+
};
|
|
306154
|
+
var yesterday_y = function yesterday_y() {
|
|
306155
|
+
return yesterday[_5 + "FullYear"]();
|
|
306156
|
+
};
|
|
306157
|
+
var tomorrow_d = function tomorrow_d() {
|
|
306158
|
+
return tomorrow[_5 + "Date"]();
|
|
306159
|
+
};
|
|
306160
|
+
var tomorrow_m = function tomorrow_m() {
|
|
306161
|
+
return tomorrow[_5 + "Month"]();
|
|
306162
|
+
};
|
|
306163
|
+
var tomorrow_y = function tomorrow_y() {
|
|
306164
|
+
return tomorrow[_5 + "FullYear"]();
|
|
306165
|
+
};
|
|
306166
|
+
if (today_y() === y5 && today_m() === m3 && today_d() === d5) {
|
|
306167
|
+
return _short ? "Tdy" : "Today";
|
|
306168
|
+
} else if (yesterday_y() === y5 && yesterday_m() === m3 && yesterday_d() === d5) {
|
|
306169
|
+
return _short ? "Ysd" : "Yesterday";
|
|
306170
|
+
} else if (tomorrow_y() === y5 && tomorrow_m() === m3 && tomorrow_d() === d5) {
|
|
306171
|
+
return _short ? "Tmw" : "Tomorrow";
|
|
306172
|
+
}
|
|
306173
|
+
return dayName;
|
|
306174
|
+
};
|
|
306175
|
+
var getWeek = function getWeek(date6) {
|
|
306176
|
+
var targetThursday = new Date(date6.getFullYear(), date6.getMonth(), date6.getDate());
|
|
306177
|
+
targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3);
|
|
306178
|
+
var firstThursday = new Date(targetThursday.getFullYear(), 0, 4);
|
|
306179
|
+
firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3);
|
|
306180
|
+
var ds2 = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset();
|
|
306181
|
+
targetThursday.setHours(targetThursday.getHours() - ds2);
|
|
306182
|
+
var weekDiff = (targetThursday - firstThursday) / (86400000 * 7);
|
|
306183
|
+
return 1 + Math.floor(weekDiff);
|
|
306184
|
+
};
|
|
306185
|
+
var getDayOfWeek = function getDayOfWeek(date6) {
|
|
306186
|
+
var dow = date6.getDay();
|
|
306187
|
+
if (dow === 0) {
|
|
306188
|
+
dow = 7;
|
|
306189
|
+
}
|
|
306190
|
+
return dow;
|
|
306191
|
+
};
|
|
306192
|
+
var kindOf = function kindOf(val) {
|
|
306193
|
+
if (val === null) {
|
|
306194
|
+
return "null";
|
|
306195
|
+
}
|
|
306196
|
+
if (val === undefined) {
|
|
306197
|
+
return "undefined";
|
|
306198
|
+
}
|
|
306199
|
+
if (_typeof4(val) !== "object") {
|
|
306200
|
+
return _typeof4(val);
|
|
306201
|
+
}
|
|
306202
|
+
if (Array.isArray(val)) {
|
|
306203
|
+
return "array";
|
|
306204
|
+
}
|
|
306205
|
+
return {}.toString.call(val).slice(8, -1).toLowerCase();
|
|
306206
|
+
};
|
|
306207
|
+
if (typeof define === "function" && define.amd) {
|
|
306208
|
+
define(function() {
|
|
306209
|
+
return dateFormat;
|
|
306210
|
+
});
|
|
306211
|
+
} else if ((typeof exports === "undefined" ? "undefined" : _typeof4(exports)) === "object") {
|
|
306212
|
+
module.exports = dateFormat;
|
|
306213
|
+
} else {
|
|
306214
|
+
global2.dateFormat = dateFormat;
|
|
306215
|
+
}
|
|
306216
|
+
})(undefined);
|
|
306217
|
+
});
|
|
306218
|
+
|
|
306219
|
+
// node_modules/pino-pretty/lib/utils/format-time.js
|
|
306220
|
+
var require_format_time = __commonJS((exports, module) => {
|
|
306221
|
+
module.exports = formatTime;
|
|
306222
|
+
var {
|
|
306223
|
+
DATE_FORMAT,
|
|
306224
|
+
DATE_FORMAT_SIMPLE
|
|
306225
|
+
} = require_constants7();
|
|
306226
|
+
var dateformat = require_dateformat();
|
|
306227
|
+
var createDate = require_create_date();
|
|
306228
|
+
var isValidDate2 = require_is_valid_date();
|
|
306229
|
+
function formatTime(epoch, translateTime = false) {
|
|
306230
|
+
if (translateTime === false) {
|
|
306231
|
+
return epoch;
|
|
306232
|
+
}
|
|
306233
|
+
const instant = createDate(epoch);
|
|
306234
|
+
if (!isValidDate2(instant)) {
|
|
306235
|
+
return epoch;
|
|
306236
|
+
}
|
|
306237
|
+
if (translateTime === true) {
|
|
306238
|
+
return dateformat(instant, DATE_FORMAT_SIMPLE);
|
|
306239
|
+
}
|
|
306240
|
+
const upperFormat = translateTime.toUpperCase();
|
|
306241
|
+
if (upperFormat === "SYS:STANDARD") {
|
|
306242
|
+
return dateformat(instant, DATE_FORMAT);
|
|
306243
|
+
}
|
|
306244
|
+
const prefix3 = upperFormat.substr(0, 4);
|
|
306245
|
+
if (prefix3 === "SYS:" || prefix3 === "UTC:") {
|
|
306246
|
+
if (prefix3 === "UTC:") {
|
|
306247
|
+
return dateformat(instant, translateTime);
|
|
306248
|
+
}
|
|
306249
|
+
return dateformat(instant, translateTime.slice(4));
|
|
306250
|
+
}
|
|
306251
|
+
return dateformat(instant, `UTC:${translateTime}`);
|
|
306252
|
+
}
|
|
306253
|
+
});
|
|
306254
|
+
|
|
306255
|
+
// node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js
|
|
306256
|
+
var require_handle_custom_levels_names_opts = __commonJS((exports, module) => {
|
|
306257
|
+
module.exports = handleCustomLevelsNamesOpts;
|
|
306258
|
+
function handleCustomLevelsNamesOpts(cLevels) {
|
|
306259
|
+
if (!cLevels)
|
|
306260
|
+
return {};
|
|
306261
|
+
if (typeof cLevels === "string") {
|
|
306262
|
+
return cLevels.split(",").reduce((agg, value2, idx) => {
|
|
306263
|
+
const [levelName, levelNum = idx] = value2.split(":");
|
|
306264
|
+
agg[levelName.toLowerCase()] = levelNum;
|
|
306265
|
+
return agg;
|
|
306266
|
+
}, {});
|
|
306267
|
+
} else if (Object.prototype.toString.call(cLevels) === "[object Object]") {
|
|
306268
|
+
return Object.keys(cLevels).reduce((agg, levelName) => {
|
|
306269
|
+
agg[levelName.toLowerCase()] = cLevels[levelName];
|
|
306270
|
+
return agg;
|
|
306271
|
+
}, {});
|
|
306272
|
+
} else {
|
|
306273
|
+
return {};
|
|
306274
|
+
}
|
|
306275
|
+
}
|
|
306276
|
+
});
|
|
306277
|
+
|
|
306278
|
+
// node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js
|
|
306279
|
+
var require_handle_custom_levels_opts = __commonJS((exports, module) => {
|
|
306280
|
+
module.exports = handleCustomLevelsOpts;
|
|
306281
|
+
function handleCustomLevelsOpts(cLevels) {
|
|
306282
|
+
if (!cLevels)
|
|
306283
|
+
return {};
|
|
306284
|
+
if (typeof cLevels === "string") {
|
|
306285
|
+
return cLevels.split(",").reduce((agg, value2, idx) => {
|
|
306286
|
+
const [levelName, levelNum = idx] = value2.split(":");
|
|
306287
|
+
agg[levelNum] = levelName.toUpperCase();
|
|
306288
|
+
return agg;
|
|
306289
|
+
}, { default: "USERLVL" });
|
|
306290
|
+
} else if (Object.prototype.toString.call(cLevels) === "[object Object]") {
|
|
306291
|
+
return Object.keys(cLevels).reduce((agg, levelName) => {
|
|
306292
|
+
agg[cLevels[levelName]] = levelName.toUpperCase();
|
|
306293
|
+
return agg;
|
|
306294
|
+
}, { default: "USERLVL" });
|
|
306295
|
+
} else {
|
|
306296
|
+
return {};
|
|
306297
|
+
}
|
|
306298
|
+
}
|
|
306299
|
+
});
|
|
306300
|
+
|
|
306301
|
+
// node_modules/pino-pretty/lib/utils/interpret-conditionals.js
|
|
306302
|
+
var require_interpret_conditionals = __commonJS((exports, module) => {
|
|
306303
|
+
module.exports = interpretConditionals;
|
|
306304
|
+
var getPropertyValue = require_get_property_value();
|
|
306305
|
+
function interpretConditionals(messageFormat, log4) {
|
|
306306
|
+
messageFormat = messageFormat.replace(/{if (.*?)}(.*?){end}/g, replacer);
|
|
306307
|
+
messageFormat = messageFormat.replace(/{if (.*?)}/g, "");
|
|
306308
|
+
messageFormat = messageFormat.replace(/{end}/g, "");
|
|
306309
|
+
return messageFormat.replace(/\s+/g, " ").trim();
|
|
306310
|
+
function replacer(_5, key2, value2) {
|
|
306311
|
+
const propertyValue = getPropertyValue(log4, key2);
|
|
306312
|
+
if (propertyValue && value2.includes(key2)) {
|
|
306313
|
+
return value2.replace(new RegExp("{" + key2 + "}", "g"), propertyValue);
|
|
306314
|
+
} else {
|
|
306315
|
+
return "";
|
|
306316
|
+
}
|
|
306317
|
+
}
|
|
306318
|
+
}
|
|
306319
|
+
});
|
|
306320
|
+
|
|
306321
|
+
// node_modules/pino-pretty/lib/utils/is-object.js
|
|
306322
|
+
var require_is_object = __commonJS((exports, module) => {
|
|
306323
|
+
module.exports = isObject7;
|
|
306324
|
+
function isObject7(input) {
|
|
306325
|
+
return Object.prototype.toString.apply(input) === "[object Object]";
|
|
306326
|
+
}
|
|
306327
|
+
});
|
|
306328
|
+
|
|
306329
|
+
// node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js
|
|
306330
|
+
var require_join_lines_with_indentation = __commonJS((exports, module) => {
|
|
306331
|
+
module.exports = joinLinesWithIndentation;
|
|
306332
|
+
function joinLinesWithIndentation({ input, ident: ident2 = " ", eol = `
|
|
306333
|
+
` }) {
|
|
306334
|
+
const lines = input.split(/\r?\n/);
|
|
306335
|
+
for (let i2 = 1;i2 < lines.length; i2 += 1) {
|
|
306336
|
+
lines[i2] = ident2 + lines[i2];
|
|
306337
|
+
}
|
|
306338
|
+
return lines.join(eol);
|
|
306339
|
+
}
|
|
306340
|
+
});
|
|
306341
|
+
|
|
306342
|
+
// node_modules/pino-pretty/lib/utils/parse-factory-options.js
|
|
306343
|
+
var require_parse_factory_options = __commonJS((exports, module) => {
|
|
306344
|
+
module.exports = parseFactoryOptions;
|
|
306345
|
+
var {
|
|
306346
|
+
LEVEL_NAMES
|
|
306347
|
+
} = require_constants7();
|
|
306348
|
+
var colors9 = require_colors();
|
|
306349
|
+
var handleCustomLevelsOpts = require_handle_custom_levels_opts();
|
|
306350
|
+
var handleCustomLevelsNamesOpts = require_handle_custom_levels_names_opts();
|
|
306351
|
+
var handleLevelLabelData = require_get_level_label_data();
|
|
306352
|
+
function parseFactoryOptions(options) {
|
|
306353
|
+
const EOL = options.crlf ? `\r
|
|
306354
|
+
` : `
|
|
306355
|
+
`;
|
|
306356
|
+
const IDENT = " ";
|
|
306357
|
+
const {
|
|
306358
|
+
customPrettifiers,
|
|
306359
|
+
errorLikeObjectKeys,
|
|
306360
|
+
hideObject,
|
|
306361
|
+
levelFirst,
|
|
306362
|
+
levelKey,
|
|
306363
|
+
levelLabel,
|
|
306364
|
+
messageFormat,
|
|
306365
|
+
messageKey,
|
|
306366
|
+
minimumLevel,
|
|
306367
|
+
singleLine,
|
|
306368
|
+
timestampKey,
|
|
306369
|
+
translateTime
|
|
306370
|
+
} = options;
|
|
306371
|
+
const errorProps = options.errorProps.split(",");
|
|
306372
|
+
const useOnlyCustomProps = typeof options.useOnlyCustomProps === "boolean" ? options.useOnlyCustomProps : options.useOnlyCustomProps === "true";
|
|
306373
|
+
const customLevels = handleCustomLevelsOpts(options.customLevels);
|
|
306374
|
+
const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels);
|
|
306375
|
+
const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames);
|
|
306376
|
+
let customColors;
|
|
306377
|
+
if (options.customColors) {
|
|
306378
|
+
if (typeof options.customColors === "string") {
|
|
306379
|
+
customColors = options.customColors.split(",").reduce((agg, value2) => {
|
|
306380
|
+
const [level, color2] = value2.split(":");
|
|
306381
|
+
const condition = useOnlyCustomProps ? options.customLevels : customLevelNames[level] !== undefined;
|
|
306382
|
+
const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
|
|
306383
|
+
const colorIdx = levelNum !== undefined ? levelNum : level;
|
|
306384
|
+
agg.push([colorIdx, color2]);
|
|
306385
|
+
return agg;
|
|
306386
|
+
}, []);
|
|
306387
|
+
} else if (typeof options.customColors === "object") {
|
|
306388
|
+
customColors = Object.keys(options.customColors).reduce((agg, value2) => {
|
|
306389
|
+
const [level, color2] = [value2, options.customColors[value2]];
|
|
306390
|
+
const condition = useOnlyCustomProps ? options.customLevels : customLevelNames[level] !== undefined;
|
|
306391
|
+
const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
|
|
306392
|
+
const colorIdx = levelNum !== undefined ? levelNum : level;
|
|
306393
|
+
agg.push([colorIdx, color2]);
|
|
306394
|
+
return agg;
|
|
306395
|
+
}, []);
|
|
306396
|
+
} else {
|
|
306397
|
+
throw new Error("options.customColors must be of type string or object.");
|
|
306398
|
+
}
|
|
306399
|
+
}
|
|
306400
|
+
const customProperties = { customLevels, customLevelNames };
|
|
306401
|
+
if (useOnlyCustomProps === true && !options.customLevels) {
|
|
306402
|
+
customProperties.customLevels = undefined;
|
|
306403
|
+
customProperties.customLevelNames = undefined;
|
|
306404
|
+
}
|
|
306405
|
+
const includeKeys = options.include !== undefined ? new Set(options.include.split(",")) : undefined;
|
|
306406
|
+
const ignoreKeys = !includeKeys && options.ignore ? new Set(options.ignore.split(",")) : undefined;
|
|
306407
|
+
const colorizer = colors9(options.colorize, customColors, useOnlyCustomProps);
|
|
306408
|
+
const objectColorizer = options.colorizeObjects ? colorizer : colors9(false, [], false);
|
|
306409
|
+
return {
|
|
306410
|
+
EOL,
|
|
306411
|
+
IDENT,
|
|
306412
|
+
colorizer,
|
|
306413
|
+
customColors,
|
|
306414
|
+
customLevelNames,
|
|
306415
|
+
customLevels,
|
|
306416
|
+
customPrettifiers,
|
|
306417
|
+
customProperties,
|
|
306418
|
+
errorLikeObjectKeys,
|
|
306419
|
+
errorProps,
|
|
306420
|
+
getLevelLabelData,
|
|
306421
|
+
hideObject,
|
|
306422
|
+
ignoreKeys,
|
|
306423
|
+
includeKeys,
|
|
306424
|
+
levelFirst,
|
|
306425
|
+
levelKey,
|
|
306426
|
+
levelLabel,
|
|
306427
|
+
messageFormat,
|
|
306428
|
+
messageKey,
|
|
306429
|
+
minimumLevel,
|
|
306430
|
+
objectColorizer,
|
|
306431
|
+
singleLine,
|
|
306432
|
+
timestampKey,
|
|
306433
|
+
translateTime,
|
|
306434
|
+
useOnlyCustomProps
|
|
306435
|
+
};
|
|
306436
|
+
}
|
|
306437
|
+
});
|
|
306438
|
+
|
|
306439
|
+
// node_modules/fast-safe-stringify/index.js
|
|
306440
|
+
var require_fast_safe_stringify = __commonJS((exports, module) => {
|
|
306441
|
+
module.exports = stringify7;
|
|
306442
|
+
stringify7.default = stringify7;
|
|
306443
|
+
stringify7.stable = deterministicStringify;
|
|
306444
|
+
stringify7.stableStringify = deterministicStringify;
|
|
306445
|
+
var LIMIT_REPLACE_NODE = "[...]";
|
|
306446
|
+
var CIRCULAR_REPLACE_NODE = "[Circular]";
|
|
306447
|
+
var arr2 = [];
|
|
306448
|
+
var replacerStack = [];
|
|
306449
|
+
function defaultOptions3() {
|
|
306450
|
+
return {
|
|
306451
|
+
depthLimit: Number.MAX_SAFE_INTEGER,
|
|
306452
|
+
edgesLimit: Number.MAX_SAFE_INTEGER
|
|
306453
|
+
};
|
|
306454
|
+
}
|
|
306455
|
+
function stringify7(obj, replacer, spacer, options) {
|
|
306456
|
+
if (typeof options === "undefined") {
|
|
306457
|
+
options = defaultOptions3();
|
|
306458
|
+
}
|
|
306459
|
+
decirc(obj, "", 0, [], undefined, 0, options);
|
|
306460
|
+
var res;
|
|
306461
|
+
try {
|
|
306462
|
+
if (replacerStack.length === 0) {
|
|
306463
|
+
res = JSON.stringify(obj, replacer, spacer);
|
|
306464
|
+
} else {
|
|
306465
|
+
res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);
|
|
306466
|
+
}
|
|
306467
|
+
} catch (_5) {
|
|
306468
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
306469
|
+
} finally {
|
|
306470
|
+
while (arr2.length !== 0) {
|
|
306471
|
+
var part = arr2.pop();
|
|
306472
|
+
if (part.length === 4) {
|
|
306473
|
+
Object.defineProperty(part[0], part[1], part[3]);
|
|
306474
|
+
} else {
|
|
306475
|
+
part[0][part[1]] = part[2];
|
|
306476
|
+
}
|
|
306477
|
+
}
|
|
306478
|
+
}
|
|
306479
|
+
return res;
|
|
306480
|
+
}
|
|
306481
|
+
function setReplace(replace, val, k5, parent) {
|
|
306482
|
+
var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k5);
|
|
306483
|
+
if (propertyDescriptor.get !== undefined) {
|
|
306484
|
+
if (propertyDescriptor.configurable) {
|
|
306485
|
+
Object.defineProperty(parent, k5, { value: replace });
|
|
306486
|
+
arr2.push([parent, k5, val, propertyDescriptor]);
|
|
306487
|
+
} else {
|
|
306488
|
+
replacerStack.push([val, k5, replace]);
|
|
306489
|
+
}
|
|
306490
|
+
} else {
|
|
306491
|
+
parent[k5] = replace;
|
|
306492
|
+
arr2.push([parent, k5, val]);
|
|
306493
|
+
}
|
|
306494
|
+
}
|
|
306495
|
+
function decirc(val, k5, edgeIndex, stack2, parent, depth, options) {
|
|
306496
|
+
depth += 1;
|
|
306497
|
+
var i2;
|
|
306498
|
+
if (typeof val === "object" && val !== null) {
|
|
306499
|
+
for (i2 = 0;i2 < stack2.length; i2++) {
|
|
306500
|
+
if (stack2[i2] === val) {
|
|
306501
|
+
setReplace(CIRCULAR_REPLACE_NODE, val, k5, parent);
|
|
306502
|
+
return;
|
|
306503
|
+
}
|
|
306504
|
+
}
|
|
306505
|
+
if (typeof options.depthLimit !== "undefined" && depth > options.depthLimit) {
|
|
306506
|
+
setReplace(LIMIT_REPLACE_NODE, val, k5, parent);
|
|
306507
|
+
return;
|
|
306508
|
+
}
|
|
306509
|
+
if (typeof options.edgesLimit !== "undefined" && edgeIndex + 1 > options.edgesLimit) {
|
|
306510
|
+
setReplace(LIMIT_REPLACE_NODE, val, k5, parent);
|
|
306511
|
+
return;
|
|
306512
|
+
}
|
|
306513
|
+
stack2.push(val);
|
|
306514
|
+
if (Array.isArray(val)) {
|
|
306515
|
+
for (i2 = 0;i2 < val.length; i2++) {
|
|
306516
|
+
decirc(val[i2], i2, i2, stack2, val, depth, options);
|
|
306517
|
+
}
|
|
306518
|
+
} else {
|
|
306519
|
+
var keys2 = Object.keys(val);
|
|
306520
|
+
for (i2 = 0;i2 < keys2.length; i2++) {
|
|
306521
|
+
var key2 = keys2[i2];
|
|
306522
|
+
decirc(val[key2], key2, i2, stack2, val, depth, options);
|
|
306523
|
+
}
|
|
306524
|
+
}
|
|
306525
|
+
stack2.pop();
|
|
306526
|
+
}
|
|
306527
|
+
}
|
|
306528
|
+
function compareFunction(a, b5) {
|
|
306529
|
+
if (a < b5) {
|
|
306530
|
+
return -1;
|
|
306531
|
+
}
|
|
306532
|
+
if (a > b5) {
|
|
306533
|
+
return 1;
|
|
306534
|
+
}
|
|
306535
|
+
return 0;
|
|
306536
|
+
}
|
|
306537
|
+
function deterministicStringify(obj, replacer, spacer, options) {
|
|
306538
|
+
if (typeof options === "undefined") {
|
|
306539
|
+
options = defaultOptions3();
|
|
306540
|
+
}
|
|
306541
|
+
var tmp = deterministicDecirc(obj, "", 0, [], undefined, 0, options) || obj;
|
|
306542
|
+
var res;
|
|
306543
|
+
try {
|
|
306544
|
+
if (replacerStack.length === 0) {
|
|
306545
|
+
res = JSON.stringify(tmp, replacer, spacer);
|
|
306546
|
+
} else {
|
|
306547
|
+
res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);
|
|
306548
|
+
}
|
|
306549
|
+
} catch (_5) {
|
|
306550
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
306551
|
+
} finally {
|
|
306552
|
+
while (arr2.length !== 0) {
|
|
306553
|
+
var part = arr2.pop();
|
|
306554
|
+
if (part.length === 4) {
|
|
306555
|
+
Object.defineProperty(part[0], part[1], part[3]);
|
|
306556
|
+
} else {
|
|
306557
|
+
part[0][part[1]] = part[2];
|
|
306558
|
+
}
|
|
306559
|
+
}
|
|
306560
|
+
}
|
|
306561
|
+
return res;
|
|
306562
|
+
}
|
|
306563
|
+
function deterministicDecirc(val, k5, edgeIndex, stack2, parent, depth, options) {
|
|
306564
|
+
depth += 1;
|
|
306565
|
+
var i2;
|
|
306566
|
+
if (typeof val === "object" && val !== null) {
|
|
306567
|
+
for (i2 = 0;i2 < stack2.length; i2++) {
|
|
306568
|
+
if (stack2[i2] === val) {
|
|
306569
|
+
setReplace(CIRCULAR_REPLACE_NODE, val, k5, parent);
|
|
306570
|
+
return;
|
|
306571
|
+
}
|
|
306572
|
+
}
|
|
306573
|
+
try {
|
|
306574
|
+
if (typeof val.toJSON === "function") {
|
|
306575
|
+
return;
|
|
306576
|
+
}
|
|
306577
|
+
} catch (_5) {
|
|
306578
|
+
return;
|
|
306579
|
+
}
|
|
306580
|
+
if (typeof options.depthLimit !== "undefined" && depth > options.depthLimit) {
|
|
306581
|
+
setReplace(LIMIT_REPLACE_NODE, val, k5, parent);
|
|
306582
|
+
return;
|
|
306583
|
+
}
|
|
306584
|
+
if (typeof options.edgesLimit !== "undefined" && edgeIndex + 1 > options.edgesLimit) {
|
|
306585
|
+
setReplace(LIMIT_REPLACE_NODE, val, k5, parent);
|
|
306586
|
+
return;
|
|
306587
|
+
}
|
|
306588
|
+
stack2.push(val);
|
|
306589
|
+
if (Array.isArray(val)) {
|
|
306590
|
+
for (i2 = 0;i2 < val.length; i2++) {
|
|
306591
|
+
deterministicDecirc(val[i2], i2, i2, stack2, val, depth, options);
|
|
306592
|
+
}
|
|
306593
|
+
} else {
|
|
306594
|
+
var tmp = {};
|
|
306595
|
+
var keys2 = Object.keys(val).sort(compareFunction);
|
|
306596
|
+
for (i2 = 0;i2 < keys2.length; i2++) {
|
|
306597
|
+
var key2 = keys2[i2];
|
|
306598
|
+
deterministicDecirc(val[key2], key2, i2, stack2, val, depth, options);
|
|
306599
|
+
tmp[key2] = val[key2];
|
|
306600
|
+
}
|
|
306601
|
+
if (typeof parent !== "undefined") {
|
|
306602
|
+
arr2.push([parent, k5, val]);
|
|
306603
|
+
parent[k5] = tmp;
|
|
306604
|
+
} else {
|
|
306605
|
+
return tmp;
|
|
306606
|
+
}
|
|
306607
|
+
}
|
|
306608
|
+
stack2.pop();
|
|
306609
|
+
}
|
|
306610
|
+
}
|
|
306611
|
+
function replaceGetterValues(replacer) {
|
|
306612
|
+
replacer = typeof replacer !== "undefined" ? replacer : function(k5, v4) {
|
|
306613
|
+
return v4;
|
|
306614
|
+
};
|
|
306615
|
+
return function(key2, val) {
|
|
306616
|
+
if (replacerStack.length > 0) {
|
|
306617
|
+
for (var i2 = 0;i2 < replacerStack.length; i2++) {
|
|
306618
|
+
var part = replacerStack[i2];
|
|
306619
|
+
if (part[1] === key2 && part[0] === val) {
|
|
306620
|
+
val = part[2];
|
|
306621
|
+
replacerStack.splice(i2, 1);
|
|
306622
|
+
break;
|
|
306623
|
+
}
|
|
306624
|
+
}
|
|
306625
|
+
}
|
|
306626
|
+
return replacer.call(this, key2, val);
|
|
306627
|
+
};
|
|
306628
|
+
}
|
|
306629
|
+
});
|
|
306630
|
+
|
|
306631
|
+
// node_modules/pino-pretty/lib/utils/prettify-error.js
|
|
306632
|
+
var require_prettify_error = __commonJS((exports, module) => {
|
|
306633
|
+
module.exports = prettifyError2;
|
|
306634
|
+
var joinLinesWithIndentation = require_join_lines_with_indentation();
|
|
306635
|
+
function prettifyError2({ keyName, lines, eol, ident: ident2 }) {
|
|
306636
|
+
let result = "";
|
|
306637
|
+
const joinedLines = joinLinesWithIndentation({ input: lines, ident: ident2, eol });
|
|
306638
|
+
const splitLines = `${ident2}${keyName}: ${joinedLines}${eol}`.split(eol);
|
|
306639
|
+
for (let j4 = 0;j4 < splitLines.length; j4 += 1) {
|
|
306640
|
+
if (j4 !== 0)
|
|
306641
|
+
result += eol;
|
|
306642
|
+
const line4 = splitLines[j4];
|
|
306643
|
+
if (/^\s*"stack"/.test(line4)) {
|
|
306644
|
+
const matches = /^(\s*"stack":)\s*(".*"),?$/.exec(line4);
|
|
306645
|
+
if (matches && matches.length === 3) {
|
|
306646
|
+
const indentSize = /^\s*/.exec(line4)[0].length + 4;
|
|
306647
|
+
const indentation = " ".repeat(indentSize);
|
|
306648
|
+
const stackMessage = matches[2];
|
|
306649
|
+
result += matches[1] + eol + indentation + JSON.parse(stackMessage).replace(/\n/g, eol + indentation);
|
|
306650
|
+
} else {
|
|
306651
|
+
result += line4;
|
|
306652
|
+
}
|
|
306653
|
+
} else {
|
|
306654
|
+
result += line4;
|
|
306655
|
+
}
|
|
306656
|
+
}
|
|
306657
|
+
return result;
|
|
306658
|
+
}
|
|
306659
|
+
});
|
|
306660
|
+
|
|
306661
|
+
// node_modules/pino-pretty/lib/utils/prettify-object.js
|
|
306662
|
+
var require_prettify_object = __commonJS((exports, module) => {
|
|
306663
|
+
module.exports = prettifyObject;
|
|
306664
|
+
var {
|
|
306665
|
+
LOGGER_KEYS
|
|
306666
|
+
} = require_constants7();
|
|
306667
|
+
var stringifySafe = require_fast_safe_stringify();
|
|
306668
|
+
var joinLinesWithIndentation = require_join_lines_with_indentation();
|
|
306669
|
+
var prettifyError2 = require_prettify_error();
|
|
306670
|
+
function prettifyObject({
|
|
306671
|
+
log: log4,
|
|
306672
|
+
excludeLoggerKeys = true,
|
|
306673
|
+
skipKeys = [],
|
|
306674
|
+
context
|
|
306675
|
+
}) {
|
|
306676
|
+
const {
|
|
306677
|
+
EOL: eol,
|
|
306678
|
+
IDENT: ident2,
|
|
306679
|
+
customPrettifiers,
|
|
306680
|
+
errorLikeObjectKeys: errorLikeKeys,
|
|
306681
|
+
objectColorizer,
|
|
306682
|
+
singleLine,
|
|
306683
|
+
colorizer
|
|
306684
|
+
} = context;
|
|
306685
|
+
const keysToIgnore = [].concat(skipKeys);
|
|
306686
|
+
if (excludeLoggerKeys === true)
|
|
306687
|
+
Array.prototype.push.apply(keysToIgnore, LOGGER_KEYS);
|
|
306688
|
+
let result = "";
|
|
306689
|
+
const { plain, errors: errors3 } = Object.entries(log4).reduce(({ plain: plain2, errors: errors4 }, [k5, v4]) => {
|
|
306690
|
+
if (keysToIgnore.includes(k5) === false) {
|
|
306691
|
+
const pretty2 = typeof customPrettifiers[k5] === "function" ? customPrettifiers[k5](v4, k5, log4, { colors: colorizer.colors }) : v4;
|
|
306692
|
+
if (errorLikeKeys.includes(k5)) {
|
|
306693
|
+
errors4[k5] = pretty2;
|
|
306694
|
+
} else {
|
|
306695
|
+
plain2[k5] = pretty2;
|
|
306696
|
+
}
|
|
306697
|
+
}
|
|
306698
|
+
return { plain: plain2, errors: errors4 };
|
|
306699
|
+
}, { plain: {}, errors: {} });
|
|
306700
|
+
if (singleLine) {
|
|
306701
|
+
if (Object.keys(plain).length > 0) {
|
|
306702
|
+
result += objectColorizer.greyMessage(stringifySafe(plain));
|
|
306703
|
+
}
|
|
306704
|
+
result += eol;
|
|
306705
|
+
result = result.replace(/\\\\/gi, "\\");
|
|
306706
|
+
} else {
|
|
306707
|
+
Object.entries(plain).forEach(([keyName, keyValue]) => {
|
|
306708
|
+
let lines = typeof customPrettifiers[keyName] === "function" ? keyValue : stringifySafe(keyValue, null, 2);
|
|
306709
|
+
if (lines === undefined)
|
|
306710
|
+
return;
|
|
306711
|
+
lines = lines.replace(/\\\\/gi, "\\");
|
|
306712
|
+
const joinedLines = joinLinesWithIndentation({ input: lines, ident: ident2, eol });
|
|
306713
|
+
result += `${ident2}${objectColorizer.property(keyName)}:${joinedLines.startsWith(eol) ? "" : " "}${joinedLines}${eol}`;
|
|
306714
|
+
});
|
|
306715
|
+
}
|
|
306716
|
+
Object.entries(errors3).forEach(([keyName, keyValue]) => {
|
|
306717
|
+
const lines = typeof customPrettifiers[keyName] === "function" ? keyValue : stringifySafe(keyValue, null, 2);
|
|
306718
|
+
if (lines === undefined)
|
|
306719
|
+
return;
|
|
306720
|
+
result += prettifyError2({ keyName, lines, eol, ident: ident2 });
|
|
306721
|
+
});
|
|
306722
|
+
return result;
|
|
306723
|
+
}
|
|
306724
|
+
});
|
|
306725
|
+
|
|
306726
|
+
// node_modules/pino-pretty/lib/utils/prettify-error-log.js
|
|
306727
|
+
var require_prettify_error_log = __commonJS((exports, module) => {
|
|
306728
|
+
module.exports = prettifyErrorLog;
|
|
306729
|
+
var {
|
|
306730
|
+
LOGGER_KEYS
|
|
306731
|
+
} = require_constants7();
|
|
306732
|
+
var isObject7 = require_is_object();
|
|
306733
|
+
var joinLinesWithIndentation = require_join_lines_with_indentation();
|
|
306734
|
+
var prettifyObject = require_prettify_object();
|
|
306735
|
+
function prettifyErrorLog({ log: log4, context }) {
|
|
306736
|
+
const {
|
|
306737
|
+
EOL: eol,
|
|
306738
|
+
IDENT: ident2,
|
|
306739
|
+
errorProps: errorProperties,
|
|
306740
|
+
messageKey
|
|
306741
|
+
} = context;
|
|
306742
|
+
const stack2 = log4.stack;
|
|
306743
|
+
const joinedLines = joinLinesWithIndentation({ input: stack2, ident: ident2, eol });
|
|
306744
|
+
let result = `${ident2}${joinedLines}${eol}`;
|
|
306745
|
+
if (errorProperties.length > 0) {
|
|
306746
|
+
const excludeProperties = LOGGER_KEYS.concat(messageKey, "type", "stack");
|
|
306747
|
+
let propertiesToPrint;
|
|
306748
|
+
if (errorProperties[0] === "*") {
|
|
306749
|
+
propertiesToPrint = Object.keys(log4).filter((k5) => excludeProperties.includes(k5) === false);
|
|
306750
|
+
} else {
|
|
306751
|
+
propertiesToPrint = errorProperties.filter((k5) => excludeProperties.includes(k5) === false);
|
|
306752
|
+
}
|
|
306753
|
+
for (let i2 = 0;i2 < propertiesToPrint.length; i2 += 1) {
|
|
306754
|
+
const key2 = propertiesToPrint[i2];
|
|
306755
|
+
if (key2 in log4 === false)
|
|
306756
|
+
continue;
|
|
306757
|
+
if (isObject7(log4[key2])) {
|
|
306758
|
+
const prettifiedObject = prettifyObject({
|
|
306759
|
+
log: log4[key2],
|
|
306760
|
+
excludeLoggerKeys: false,
|
|
306761
|
+
context: {
|
|
306762
|
+
...context,
|
|
306763
|
+
IDENT: ident2 + ident2
|
|
306764
|
+
}
|
|
306765
|
+
});
|
|
306766
|
+
result = `${result}${ident2}${key2}: {${eol}${prettifiedObject}${ident2}}${eol}`;
|
|
306767
|
+
continue;
|
|
306768
|
+
}
|
|
306769
|
+
result = `${result}${ident2}${key2}: ${log4[key2]}${eol}`;
|
|
306770
|
+
}
|
|
306771
|
+
}
|
|
306772
|
+
return result;
|
|
306773
|
+
}
|
|
306774
|
+
});
|
|
306775
|
+
|
|
306776
|
+
// node_modules/pino-pretty/lib/utils/prettify-level.js
|
|
306777
|
+
var require_prettify_level = __commonJS((exports, module) => {
|
|
306778
|
+
module.exports = prettifyLevel;
|
|
306779
|
+
var getPropertyValue = require_get_property_value();
|
|
306780
|
+
function prettifyLevel({ log: log4, context }) {
|
|
306781
|
+
const {
|
|
306782
|
+
colorizer,
|
|
306783
|
+
customLevels,
|
|
306784
|
+
customLevelNames,
|
|
306785
|
+
levelKey,
|
|
306786
|
+
getLevelLabelData
|
|
306787
|
+
} = context;
|
|
306788
|
+
const prettifier = context.customPrettifiers?.level;
|
|
306789
|
+
const output = getPropertyValue(log4, levelKey);
|
|
306790
|
+
if (output === undefined)
|
|
306791
|
+
return;
|
|
306792
|
+
const labelColorized = colorizer(output, { customLevels, customLevelNames });
|
|
306793
|
+
if (prettifier) {
|
|
306794
|
+
const [label] = getLevelLabelData(output);
|
|
306795
|
+
return prettifier(output, levelKey, log4, { label, labelColorized, colors: colorizer.colors });
|
|
306796
|
+
}
|
|
306797
|
+
return labelColorized;
|
|
306798
|
+
}
|
|
306799
|
+
});
|
|
306800
|
+
|
|
306801
|
+
// node_modules/pino-pretty/lib/utils/prettify-message.js
|
|
306802
|
+
var require_prettify_message = __commonJS((exports, module) => {
|
|
306803
|
+
module.exports = prettifyMessage;
|
|
306804
|
+
var {
|
|
306805
|
+
LEVELS
|
|
306806
|
+
} = require_constants7();
|
|
306807
|
+
var getPropertyValue = require_get_property_value();
|
|
306808
|
+
var interpretConditionals = require_interpret_conditionals();
|
|
306809
|
+
function prettifyMessage({ log: log4, context }) {
|
|
306810
|
+
const {
|
|
306811
|
+
colorizer,
|
|
306812
|
+
customLevels,
|
|
306813
|
+
levelKey,
|
|
306814
|
+
levelLabel,
|
|
306815
|
+
messageFormat,
|
|
306816
|
+
messageKey,
|
|
306817
|
+
useOnlyCustomProps
|
|
306818
|
+
} = context;
|
|
306819
|
+
if (messageFormat && typeof messageFormat === "string") {
|
|
306820
|
+
const parsedMessageFormat = interpretConditionals(messageFormat, log4);
|
|
306821
|
+
const message2 = String(parsedMessageFormat).replace(/{([^{}]+)}/g, function(match, p1) {
|
|
306822
|
+
let level;
|
|
306823
|
+
if (p1 === levelLabel && (level = getPropertyValue(log4, levelKey)) !== undefined) {
|
|
306824
|
+
const condition = useOnlyCustomProps ? customLevels === undefined : customLevels[level] === undefined;
|
|
306825
|
+
return condition ? LEVELS[level] : customLevels[level];
|
|
306826
|
+
}
|
|
306827
|
+
return getPropertyValue(log4, p1) || "";
|
|
306828
|
+
});
|
|
306829
|
+
return colorizer.message(message2);
|
|
306830
|
+
}
|
|
306831
|
+
if (messageFormat && typeof messageFormat === "function") {
|
|
306832
|
+
const msg = messageFormat(log4, messageKey, levelLabel, { colors: colorizer.colors });
|
|
306833
|
+
return colorizer.message(msg);
|
|
306834
|
+
}
|
|
306835
|
+
if (messageKey in log4 === false)
|
|
306836
|
+
return;
|
|
306837
|
+
if (typeof log4[messageKey] !== "string" && typeof log4[messageKey] !== "number" && typeof log4[messageKey] !== "boolean")
|
|
306838
|
+
return;
|
|
306839
|
+
return colorizer.message(log4[messageKey]);
|
|
306840
|
+
}
|
|
306841
|
+
});
|
|
306842
|
+
|
|
306843
|
+
// node_modules/pino-pretty/lib/utils/prettify-metadata.js
|
|
306844
|
+
var require_prettify_metadata = __commonJS((exports, module) => {
|
|
306845
|
+
module.exports = prettifyMetadata;
|
|
306846
|
+
function prettifyMetadata({ log: log4, context }) {
|
|
306847
|
+
const { customPrettifiers: prettifiers, colorizer } = context;
|
|
306848
|
+
let line4 = "";
|
|
306849
|
+
if (log4.name || log4.pid || log4.hostname) {
|
|
306850
|
+
line4 += "(";
|
|
306851
|
+
if (log4.name) {
|
|
306852
|
+
line4 += prettifiers.name ? prettifiers.name(log4.name, "name", log4, { colors: colorizer.colors }) : log4.name;
|
|
306853
|
+
}
|
|
306854
|
+
if (log4.pid) {
|
|
306855
|
+
const prettyPid = prettifiers.pid ? prettifiers.pid(log4.pid, "pid", log4, { colors: colorizer.colors }) : log4.pid;
|
|
306856
|
+
if (log4.name && log4.pid) {
|
|
306857
|
+
line4 += "/" + prettyPid;
|
|
306858
|
+
} else {
|
|
306859
|
+
line4 += prettyPid;
|
|
306860
|
+
}
|
|
306861
|
+
}
|
|
306862
|
+
if (log4.hostname) {
|
|
306863
|
+
const prettyHostname = prettifiers.hostname ? prettifiers.hostname(log4.hostname, "hostname", log4, { colors: colorizer.colors }) : log4.hostname;
|
|
306864
|
+
line4 += `${line4 === "(" ? "on" : " on"} ${prettyHostname}`;
|
|
306865
|
+
}
|
|
306866
|
+
line4 += ")";
|
|
306867
|
+
}
|
|
306868
|
+
if (log4.caller) {
|
|
306869
|
+
const prettyCaller = prettifiers.caller ? prettifiers.caller(log4.caller, "caller", log4, { colors: colorizer.colors }) : log4.caller;
|
|
306870
|
+
line4 += `${line4 === "" ? "" : " "}<${prettyCaller}>`;
|
|
306871
|
+
}
|
|
306872
|
+
if (line4 === "") {
|
|
306873
|
+
return;
|
|
306874
|
+
} else {
|
|
306875
|
+
return line4;
|
|
306876
|
+
}
|
|
306877
|
+
}
|
|
306878
|
+
});
|
|
306879
|
+
|
|
306880
|
+
// node_modules/pino-pretty/lib/utils/prettify-time.js
|
|
306881
|
+
var require_prettify_time = __commonJS((exports, module) => {
|
|
306882
|
+
module.exports = prettifyTime;
|
|
306883
|
+
var formatTime = require_format_time();
|
|
306884
|
+
function prettifyTime({ log: log4, context }) {
|
|
306885
|
+
const {
|
|
306886
|
+
timestampKey,
|
|
306887
|
+
translateTime: translateFormat
|
|
306888
|
+
} = context;
|
|
306889
|
+
const prettifier = context.customPrettifiers?.time;
|
|
306890
|
+
let time4 = null;
|
|
306891
|
+
if (timestampKey in log4) {
|
|
306892
|
+
time4 = log4[timestampKey];
|
|
306893
|
+
} else if ("timestamp" in log4) {
|
|
306894
|
+
time4 = log4.timestamp;
|
|
306895
|
+
}
|
|
306896
|
+
if (time4 === null)
|
|
306897
|
+
return;
|
|
306898
|
+
const output = translateFormat ? formatTime(time4, translateFormat) : time4;
|
|
306899
|
+
return prettifier ? prettifier(output) : `[${output}]`;
|
|
306900
|
+
}
|
|
306901
|
+
});
|
|
306902
|
+
|
|
306903
|
+
// node_modules/pino-pretty/lib/utils/index.js
|
|
306904
|
+
var require_utils16 = __commonJS((exports, module) => {
|
|
306905
|
+
module.exports = {
|
|
306906
|
+
buildSafeSonicBoom: require_build_safe_sonic_boom(),
|
|
306907
|
+
createDate: require_create_date(),
|
|
306908
|
+
deleteLogProperty: require_delete_log_property(),
|
|
306909
|
+
filterLog: require_filter_log(),
|
|
306910
|
+
formatTime: require_format_time(),
|
|
306911
|
+
getPropertyValue: require_get_property_value(),
|
|
306912
|
+
handleCustomLevelsNamesOpts: require_handle_custom_levels_names_opts(),
|
|
306913
|
+
handleCustomLevelsOpts: require_handle_custom_levels_opts(),
|
|
306914
|
+
interpretConditionals: require_interpret_conditionals(),
|
|
306915
|
+
isObject: require_is_object(),
|
|
306916
|
+
isValidDate: require_is_valid_date(),
|
|
306917
|
+
joinLinesWithIndentation: require_join_lines_with_indentation(),
|
|
306918
|
+
noop: require_noop(),
|
|
306919
|
+
parseFactoryOptions: require_parse_factory_options(),
|
|
306920
|
+
prettifyErrorLog: require_prettify_error_log(),
|
|
306921
|
+
prettifyError: require_prettify_error(),
|
|
306922
|
+
prettifyLevel: require_prettify_level(),
|
|
306923
|
+
prettifyMessage: require_prettify_message(),
|
|
306924
|
+
prettifyMetadata: require_prettify_metadata(),
|
|
306925
|
+
prettifyObject: require_prettify_object(),
|
|
306926
|
+
prettifyTime: require_prettify_time(),
|
|
306927
|
+
splitPropertyKey: require_split_property_key(),
|
|
306928
|
+
getLevelLabelData: require_get_level_label_data()
|
|
306929
|
+
};
|
|
306930
|
+
});
|
|
306931
|
+
|
|
306932
|
+
// node_modules/pino-pretty/lib/pretty.js
|
|
306933
|
+
var require_pretty = __commonJS((exports, module) => {
|
|
306934
|
+
module.exports = pretty2;
|
|
306935
|
+
var sjs = require_secure_json_parse();
|
|
306936
|
+
var isObject7 = require_is_object();
|
|
306937
|
+
var prettifyErrorLog = require_prettify_error_log();
|
|
306938
|
+
var prettifyLevel = require_prettify_level();
|
|
306939
|
+
var prettifyMessage = require_prettify_message();
|
|
306940
|
+
var prettifyMetadata = require_prettify_metadata();
|
|
306941
|
+
var prettifyObject = require_prettify_object();
|
|
306942
|
+
var prettifyTime = require_prettify_time();
|
|
306943
|
+
var filterLog = require_filter_log();
|
|
306944
|
+
var {
|
|
306945
|
+
LEVELS,
|
|
306946
|
+
LEVEL_KEY,
|
|
306947
|
+
LEVEL_NAMES
|
|
306948
|
+
} = require_constants7();
|
|
306949
|
+
var jsonParser = (input) => {
|
|
306950
|
+
try {
|
|
306951
|
+
return { value: sjs.parse(input, { protoAction: "remove" }) };
|
|
306952
|
+
} catch (err) {
|
|
306953
|
+
return { err };
|
|
306954
|
+
}
|
|
306955
|
+
};
|
|
306956
|
+
function pretty2(inputData) {
|
|
306957
|
+
let log4;
|
|
306958
|
+
if (!isObject7(inputData)) {
|
|
306959
|
+
const parsed = jsonParser(inputData);
|
|
306960
|
+
if (parsed.err || !isObject7(parsed.value)) {
|
|
306961
|
+
return inputData + this.EOL;
|
|
306962
|
+
}
|
|
306963
|
+
log4 = parsed.value;
|
|
306964
|
+
} else {
|
|
306965
|
+
log4 = inputData;
|
|
306966
|
+
}
|
|
306967
|
+
if (this.minimumLevel) {
|
|
306968
|
+
let condition;
|
|
306969
|
+
if (this.useOnlyCustomProps) {
|
|
306970
|
+
condition = this.customLevels;
|
|
306971
|
+
} else {
|
|
306972
|
+
condition = this.customLevelNames[this.minimumLevel] !== undefined;
|
|
306973
|
+
}
|
|
306974
|
+
let minimum;
|
|
306975
|
+
if (condition) {
|
|
306976
|
+
minimum = this.customLevelNames[this.minimumLevel];
|
|
306977
|
+
} else {
|
|
306978
|
+
minimum = LEVEL_NAMES[this.minimumLevel];
|
|
306979
|
+
}
|
|
306980
|
+
if (!minimum) {
|
|
306981
|
+
minimum = typeof this.minimumLevel === "string" ? LEVEL_NAMES[this.minimumLevel] : LEVEL_NAMES[LEVELS[this.minimumLevel].toLowerCase()];
|
|
306982
|
+
}
|
|
306983
|
+
const level = log4[this.levelKey === undefined ? LEVEL_KEY : this.levelKey];
|
|
306984
|
+
if (level < minimum)
|
|
306985
|
+
return;
|
|
306986
|
+
}
|
|
306987
|
+
const prettifiedMessage = prettifyMessage({ log: log4, context: this.context });
|
|
306988
|
+
if (this.ignoreKeys || this.includeKeys) {
|
|
306989
|
+
log4 = filterLog({ log: log4, context: this.context });
|
|
306990
|
+
}
|
|
306991
|
+
const prettifiedLevel = prettifyLevel({
|
|
306992
|
+
log: log4,
|
|
306993
|
+
context: {
|
|
306994
|
+
...this.context,
|
|
306995
|
+
...this.context.customProperties
|
|
306996
|
+
}
|
|
306997
|
+
});
|
|
306998
|
+
const prettifiedMetadata = prettifyMetadata({ log: log4, context: this.context });
|
|
306999
|
+
const prettifiedTime = prettifyTime({ log: log4, context: this.context });
|
|
307000
|
+
let line4 = "";
|
|
307001
|
+
if (this.levelFirst && prettifiedLevel) {
|
|
307002
|
+
line4 = `${prettifiedLevel}`;
|
|
307003
|
+
}
|
|
307004
|
+
if (prettifiedTime && line4 === "") {
|
|
307005
|
+
line4 = `${prettifiedTime}`;
|
|
307006
|
+
} else if (prettifiedTime) {
|
|
307007
|
+
line4 = `${line4} ${prettifiedTime}`;
|
|
307008
|
+
}
|
|
307009
|
+
if (!this.levelFirst && prettifiedLevel) {
|
|
307010
|
+
if (line4.length > 0) {
|
|
307011
|
+
line4 = `${line4} ${prettifiedLevel}`;
|
|
307012
|
+
} else {
|
|
307013
|
+
line4 = prettifiedLevel;
|
|
307014
|
+
}
|
|
307015
|
+
}
|
|
307016
|
+
if (prettifiedMetadata) {
|
|
307017
|
+
if (line4.length > 0) {
|
|
307018
|
+
line4 = `${line4} ${prettifiedMetadata}:`;
|
|
307019
|
+
} else {
|
|
307020
|
+
line4 = prettifiedMetadata;
|
|
307021
|
+
}
|
|
307022
|
+
}
|
|
307023
|
+
if (line4.endsWith(":") === false && line4 !== "") {
|
|
307024
|
+
line4 += ":";
|
|
307025
|
+
}
|
|
307026
|
+
if (prettifiedMessage !== undefined) {
|
|
307027
|
+
if (line4.length > 0) {
|
|
307028
|
+
line4 = `${line4} ${prettifiedMessage}`;
|
|
307029
|
+
} else {
|
|
307030
|
+
line4 = prettifiedMessage;
|
|
307031
|
+
}
|
|
307032
|
+
}
|
|
307033
|
+
if (line4.length > 0 && !this.singleLine) {
|
|
307034
|
+
line4 += this.EOL;
|
|
307035
|
+
}
|
|
307036
|
+
if (log4.type === "Error" && typeof log4.stack === "string") {
|
|
307037
|
+
const prettifiedErrorLog = prettifyErrorLog({ log: log4, context: this.context });
|
|
307038
|
+
if (this.singleLine)
|
|
307039
|
+
line4 += this.EOL;
|
|
307040
|
+
line4 += prettifiedErrorLog;
|
|
307041
|
+
} else if (this.hideObject === false) {
|
|
307042
|
+
const skipKeys = [
|
|
307043
|
+
this.messageKey,
|
|
307044
|
+
this.levelKey,
|
|
307045
|
+
this.timestampKey
|
|
307046
|
+
].map((key2) => key2.replaceAll(/\\/g, "")).filter((key2) => {
|
|
307047
|
+
return typeof log4[key2] === "string" || typeof log4[key2] === "number" || typeof log4[key2] === "boolean";
|
|
307048
|
+
});
|
|
307049
|
+
const prettifiedObject = prettifyObject({
|
|
307050
|
+
log: log4,
|
|
307051
|
+
skipKeys,
|
|
307052
|
+
context: this.context
|
|
307053
|
+
});
|
|
307054
|
+
if (this.singleLine && !/^\s$/.test(prettifiedObject)) {
|
|
307055
|
+
line4 += " ";
|
|
307056
|
+
}
|
|
307057
|
+
line4 += prettifiedObject;
|
|
307058
|
+
}
|
|
307059
|
+
return line4;
|
|
307060
|
+
}
|
|
307061
|
+
});
|
|
307062
|
+
|
|
307063
|
+
// node_modules/pino-pretty/index.js
|
|
307064
|
+
var require_pino_pretty = __commonJS((exports, module) => {
|
|
307065
|
+
var { isColorSupported } = require_colorette();
|
|
307066
|
+
var pump = require_pump();
|
|
307067
|
+
var { Transform } = __require("node:stream");
|
|
307068
|
+
var abstractTransport = require_pino_abstract_transport();
|
|
307069
|
+
var colors9 = require_colors();
|
|
307070
|
+
var {
|
|
307071
|
+
ERROR_LIKE_KEYS,
|
|
307072
|
+
LEVEL_KEY,
|
|
307073
|
+
LEVEL_LABEL,
|
|
307074
|
+
MESSAGE_KEY,
|
|
307075
|
+
TIMESTAMP_KEY
|
|
307076
|
+
} = require_constants7();
|
|
307077
|
+
var {
|
|
307078
|
+
buildSafeSonicBoom,
|
|
307079
|
+
parseFactoryOptions
|
|
307080
|
+
} = require_utils16();
|
|
307081
|
+
var pretty2 = require_pretty();
|
|
307082
|
+
var defaultOptions3 = {
|
|
307083
|
+
colorize: isColorSupported,
|
|
307084
|
+
colorizeObjects: true,
|
|
307085
|
+
crlf: false,
|
|
307086
|
+
customColors: null,
|
|
307087
|
+
customLevels: null,
|
|
307088
|
+
customPrettifiers: {},
|
|
307089
|
+
errorLikeObjectKeys: ERROR_LIKE_KEYS,
|
|
307090
|
+
errorProps: "",
|
|
307091
|
+
hideObject: false,
|
|
307092
|
+
ignore: "hostname",
|
|
307093
|
+
include: undefined,
|
|
307094
|
+
levelFirst: false,
|
|
307095
|
+
levelKey: LEVEL_KEY,
|
|
307096
|
+
levelLabel: LEVEL_LABEL,
|
|
307097
|
+
messageFormat: null,
|
|
307098
|
+
messageKey: MESSAGE_KEY,
|
|
307099
|
+
minimumLevel: undefined,
|
|
307100
|
+
outputStream: process.stdout,
|
|
307101
|
+
singleLine: false,
|
|
307102
|
+
timestampKey: TIMESTAMP_KEY,
|
|
307103
|
+
translateTime: true,
|
|
307104
|
+
useOnlyCustomProps: true
|
|
307105
|
+
};
|
|
307106
|
+
function prettyFactory(options) {
|
|
307107
|
+
const context = parseFactoryOptions(Object.assign({}, defaultOptions3, options));
|
|
307108
|
+
return pretty2.bind({ ...context, context });
|
|
307109
|
+
}
|
|
307110
|
+
function build(opts = {}) {
|
|
307111
|
+
let pretty3 = prettyFactory(opts);
|
|
307112
|
+
let destination;
|
|
307113
|
+
return abstractTransport(function(source2) {
|
|
307114
|
+
source2.on("message", function pinoConfigListener(message2) {
|
|
307115
|
+
if (!message2 || message2.code !== "PINO_CONFIG")
|
|
307116
|
+
return;
|
|
307117
|
+
Object.assign(opts, {
|
|
307118
|
+
messageKey: message2.config.messageKey,
|
|
307119
|
+
errorLikeObjectKeys: Array.from(new Set([...opts.errorLikeObjectKeys || ERROR_LIKE_KEYS, message2.config.errorKey])),
|
|
307120
|
+
customLevels: message2.config.levels.values
|
|
307121
|
+
});
|
|
307122
|
+
pretty3 = prettyFactory(opts);
|
|
307123
|
+
source2.off("message", pinoConfigListener);
|
|
307124
|
+
});
|
|
307125
|
+
const stream3 = new Transform({
|
|
307126
|
+
objectMode: true,
|
|
307127
|
+
autoDestroy: true,
|
|
307128
|
+
transform(chunk, enc2, cb) {
|
|
307129
|
+
const line4 = pretty3(chunk);
|
|
307130
|
+
cb(null, line4);
|
|
307131
|
+
}
|
|
307132
|
+
});
|
|
307133
|
+
if (typeof opts.destination === "object" && typeof opts.destination.write === "function") {
|
|
307134
|
+
destination = opts.destination;
|
|
307135
|
+
} else {
|
|
307136
|
+
destination = buildSafeSonicBoom({
|
|
307137
|
+
dest: opts.destination || 1,
|
|
307138
|
+
append: opts.append,
|
|
307139
|
+
mkdir: opts.mkdir,
|
|
307140
|
+
sync: opts.sync
|
|
307141
|
+
});
|
|
307142
|
+
}
|
|
307143
|
+
source2.on("unknown", function(line4) {
|
|
307144
|
+
destination.write(line4 + `
|
|
307145
|
+
`);
|
|
307146
|
+
});
|
|
307147
|
+
pump(source2, stream3, destination);
|
|
307148
|
+
return stream3;
|
|
307149
|
+
}, {
|
|
307150
|
+
parse: "lines",
|
|
307151
|
+
close(err, cb) {
|
|
307152
|
+
destination.on("close", () => {
|
|
307153
|
+
cb(err);
|
|
307154
|
+
});
|
|
307155
|
+
}
|
|
307156
|
+
});
|
|
307157
|
+
}
|
|
307158
|
+
module.exports = build;
|
|
307159
|
+
module.exports.build = build;
|
|
307160
|
+
module.exports.PinoPretty = build;
|
|
307161
|
+
module.exports.prettyFactory = prettyFactory;
|
|
307162
|
+
module.exports.colorizerFactory = colors9;
|
|
307163
|
+
module.exports.isColorSupported = isColorSupported;
|
|
307164
|
+
module.exports.default = build;
|
|
307165
|
+
});
|
|
307166
|
+
|
|
304895
307167
|
// node_modules/nodemailer/lib/fetch/cookies.js
|
|
304896
307168
|
var require_cookies = __commonJS((exports, module) => {
|
|
304897
307169
|
var urllib = __require("url");
|
|
@@ -315104,7 +317376,7 @@ var require_lib14 = __commonJS((exports, module) => {
|
|
|
315104
317376
|
});
|
|
315105
317377
|
|
|
315106
317378
|
// node_modules/node-fetch/node_modules/whatwg-url/lib/utils.js
|
|
315107
|
-
var
|
|
317379
|
+
var require_utils17 = __commonJS((exports, module) => {
|
|
315108
317380
|
exports.mixin = function mixin(target, source2) {
|
|
315109
317381
|
const keys2 = Object.getOwnPropertyNames(source2);
|
|
315110
317382
|
for (let i2 = 0;i2 < keys2.length; ++i2) {
|
|
@@ -316508,7 +318780,7 @@ var require_URL_impl = __commonJS((exports) => {
|
|
|
316508
318780
|
// node_modules/node-fetch/node_modules/whatwg-url/lib/URL.js
|
|
316509
318781
|
var require_URL = __commonJS((exports, module) => {
|
|
316510
318782
|
var conversions = require_lib14();
|
|
316511
|
-
var utils2 =
|
|
318783
|
+
var utils2 = require_utils17();
|
|
316512
318784
|
var Impl = require_URL_impl();
|
|
316513
318785
|
var impl = utils2.implSymbol;
|
|
316514
318786
|
function URL2(url2) {
|
|
@@ -378506,8 +380778,15 @@ async function defineI18n(opts) {
|
|
|
378506
380778
|
|
|
378507
380779
|
// app/.server/primitives/logger.ts
|
|
378508
380780
|
var import_pino = __toESM(require_pino(), 1);
|
|
380781
|
+
var import_pino_pretty = __toESM(require_pino_pretty(), 1);
|
|
378509
380782
|
async function defineLogger(opts) {
|
|
378510
|
-
const transports = [
|
|
380783
|
+
const transports = [
|
|
380784
|
+
...process.env.NODE_ENV !== "production" ? [
|
|
380785
|
+
{
|
|
380786
|
+
target: "pino-pretty"
|
|
380787
|
+
}
|
|
380788
|
+
] : []
|
|
380789
|
+
];
|
|
378511
380790
|
const commonOpts = {
|
|
378512
380791
|
level: opts.level || "info",
|
|
378513
380792
|
redact: opts.redact || [],
|