@sockethub/logger 1.0.0-alpha.24 → 1.0.0-beta.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/dist/index.js CHANGED
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
22
  if (mod && typeof mod === "object" || typeof mod === "function") {
23
23
  for (let key of __getOwnPropNames(mod))
24
24
  if (!__hasOwnProp.call(to, key))
@@ -432,23 +432,23 @@ var require_zalgo = __commonJS(function(exports, module) {
432
432
  });
433
433
  return bool;
434
434
  }
435
- function heComes(text2, options2) {
435
+ function heComes(text, options) {
436
436
  var result = "";
437
437
  var counts;
438
438
  var l;
439
- options2 = options2 || {};
440
- options2["up"] = typeof options2["up"] !== "undefined" ? options2["up"] : true;
441
- options2["mid"] = typeof options2["mid"] !== "undefined" ? options2["mid"] : true;
442
- options2["down"] = typeof options2["down"] !== "undefined" ? options2["down"] : true;
443
- options2["size"] = typeof options2["size"] !== "undefined" ? options2["size"] : "maxi";
444
- text2 = text2.split("");
445
- for (l in text2) {
439
+ options = options || {};
440
+ options["up"] = typeof options["up"] !== "undefined" ? options["up"] : true;
441
+ options["mid"] = typeof options["mid"] !== "undefined" ? options["mid"] : true;
442
+ options["down"] = typeof options["down"] !== "undefined" ? options["down"] : true;
443
+ options["size"] = typeof options["size"] !== "undefined" ? options["size"] : "maxi";
444
+ text = text.split("");
445
+ for (l in text) {
446
446
  if (isChar(l)) {
447
447
  continue;
448
448
  }
449
- result = result + text2[l];
449
+ result = result + text[l];
450
450
  counts = { up: 0, down: 0, mid: 0 };
451
- switch (options2.size) {
451
+ switch (options.size) {
452
452
  case "mini":
453
453
  counts.up = randomNumber(8);
454
454
  counts.mid = randomNumber(2);
@@ -469,7 +469,7 @@ var require_zalgo = __commonJS(function(exports, module) {
469
469
  for (var d in arr) {
470
470
  var index = arr[d];
471
471
  for (var i = 0;i <= counts[index]; i++) {
472
- if (options2[index]) {
472
+ if (options[index]) {
473
473
  result = result + soul[index][randomNumber(soul[index].length)];
474
474
  }
475
475
  }
@@ -572,7 +572,7 @@ var require_colors = __commonJS(function(exports, module) {
572
572
  colors.stripColors = colors.strip = function(str) {
573
573
  return ("" + str).replace(/\x1B\[\d+m/g, "");
574
574
  };
575
- var stylize = colors.stylize = function stylize2(str, style) {
575
+ var stylize = colors.stylize = function stylize(str, style) {
576
576
  if (!colors.enabled) {
577
577
  return str + "";
578
578
  }
@@ -590,8 +590,8 @@ var require_colors = __commonJS(function(exports, module) {
590
590
  return str.replace(matchOperatorsRe, "\\$&");
591
591
  };
592
592
  function build(_styles) {
593
- var builder = function builder2() {
594
- return applyStyle.apply(builder2, arguments);
593
+ var builder = function builder() {
594
+ return applyStyle.apply(builder, arguments);
595
595
  };
596
596
  builder._styles = _styles;
597
597
  builder.__proto__ = proto;
@@ -610,7 +610,7 @@ var require_colors = __commonJS(function(exports, module) {
610
610
  });
611
611
  return ret;
612
612
  }();
613
- var proto = defineProps(function colors2() {}, styles);
613
+ var proto = defineProps(function colors() {}, styles);
614
614
  function applyStyle() {
615
615
  var args = Array.prototype.slice.call(arguments);
616
616
  var str = args.map(function(arg) {
@@ -644,16 +644,16 @@ var require_colors = __commonJS(function(exports, module) {
644
644
  return;
645
645
  }
646
646
  for (var style in theme) {
647
- (function(style2) {
648
- colors[style2] = function(str) {
649
- if (typeof theme[style2] === "object") {
647
+ (function(style) {
648
+ colors[style] = function(str) {
649
+ if (typeof theme[style] === "object") {
650
650
  var out = str;
651
- for (var i in theme[style2]) {
652
- out = colors[theme[style2][i]](out);
651
+ for (var i in theme[style]) {
652
+ out = colors[theme[style][i]](out);
653
653
  }
654
654
  return out;
655
655
  }
656
- return colors[theme[style2]](str);
656
+ return colors[theme[style]](str);
657
657
  };
658
658
  })(style);
659
659
  }
@@ -669,9 +669,9 @@ var require_colors = __commonJS(function(exports, module) {
669
669
  });
670
670
  return ret;
671
671
  }
672
- var sequencer = function sequencer2(map2, str) {
672
+ var sequencer = function sequencer(map, str) {
673
673
  var exploded = str.split("");
674
- exploded = exploded.map(map2);
674
+ exploded = exploded.map(map);
675
675
  return exploded.join("");
676
676
  };
677
677
  colors.trap = require_trap();
@@ -682,9 +682,9 @@ var require_colors = __commonJS(function(exports, module) {
682
682
  colors.maps.rainbow = require_rainbow()(colors);
683
683
  colors.maps.random = require_random()(colors);
684
684
  for (map in colors.maps) {
685
- (function(map2) {
686
- colors[map2] = function(str) {
687
- return sequencer(colors.maps[map2], str);
685
+ (function(map) {
686
+ colors[map] = function(str) {
687
+ return sequencer(colors.maps[map], str);
688
688
  };
689
689
  })(map);
690
690
  }
@@ -1131,10 +1131,10 @@ var require_safe_stable_stringify = __commonJS(function(exports, module) {
1131
1131
  throw new TypeError('The "strict" argument must be of type boolean');
1132
1132
  }
1133
1133
  if (value) {
1134
- return (value2) => {
1135
- let message = `Object can not safely be stringified. Received type ${typeof value2}`;
1136
- if (typeof value2 !== "function")
1137
- message += ` (${value2.toString()})`;
1134
+ return (value) => {
1135
+ let message = `Object can not safely be stringified. Received type ${typeof value}`;
1136
+ if (typeof value !== "function")
1137
+ message += ` (${value.toString()})`;
1138
1138
  throw new Error(message);
1139
1139
  };
1140
1140
  }
@@ -1194,8 +1194,8 @@ ${indentation}`;
1194
1194
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
1195
1195
  let i = 0;
1196
1196
  for (;i < maximumValuesToStringify - 1; i++) {
1197
- const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
1198
- res += tmp2 !== undefined ? tmp2 : "null";
1197
+ const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
1198
+ res += tmp !== undefined ? tmp : "null";
1199
1199
  res += join;
1200
1200
  }
1201
1201
  const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
@@ -1233,10 +1233,10 @@ ${indentation}`;
1233
1233
  }
1234
1234
  stack.push(value);
1235
1235
  for (let i = 0;i < maximumPropertiesToStringify; i++) {
1236
- const key2 = keys[i];
1237
- const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
1236
+ const key = keys[i];
1237
+ const tmp = stringifyFnReplacer(key, value, stack, replacer, spacer, indentation);
1238
1238
  if (tmp !== undefined) {
1239
- res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
1239
+ res += `${separator}${strEscape(key)}:${whitespace}${tmp}`;
1240
1240
  separator = join;
1241
1241
  }
1242
1242
  }
@@ -1302,8 +1302,8 @@ ${indentation}`;
1302
1302
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
1303
1303
  let i = 0;
1304
1304
  for (;i < maximumValuesToStringify - 1; i++) {
1305
- const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
1306
- res += tmp2 !== undefined ? tmp2 : "null";
1305
+ const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
1306
+ res += tmp !== undefined ? tmp : "null";
1307
1307
  res += join;
1308
1308
  }
1309
1309
  const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
@@ -1328,10 +1328,10 @@ ${indentation}`;
1328
1328
  whitespace = " ";
1329
1329
  }
1330
1330
  let separator = "";
1331
- for (const key2 of replacer) {
1332
- const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
1331
+ for (const key of replacer) {
1332
+ const tmp = stringifyArrayReplacer(key, value[key], stack, replacer, spacer, indentation);
1333
1333
  if (tmp !== undefined) {
1334
- res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
1334
+ res += `${separator}${strEscape(key)}:${whitespace}${tmp}`;
1335
1335
  separator = join;
1336
1336
  }
1337
1337
  }
@@ -1387,27 +1387,27 @@ ${originalIndentation}`;
1387
1387
  }
1388
1388
  stack.push(value);
1389
1389
  indentation += spacer;
1390
- let res2 = `
1390
+ let res = `
1391
1391
  ${indentation}`;
1392
- const join2 = `,
1392
+ const join = `,
1393
1393
  ${indentation}`;
1394
1394
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
1395
1395
  let i = 0;
1396
1396
  for (;i < maximumValuesToStringify - 1; i++) {
1397
- const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
1398
- res2 += tmp2 !== undefined ? tmp2 : "null";
1399
- res2 += join2;
1397
+ const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
1398
+ res += tmp !== undefined ? tmp : "null";
1399
+ res += join;
1400
1400
  }
1401
1401
  const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
1402
- res2 += tmp !== undefined ? tmp : "null";
1402
+ res += tmp !== undefined ? tmp : "null";
1403
1403
  if (value.length - 1 > maximumBreadth) {
1404
1404
  const removedKeys = value.length - maximumBreadth - 1;
1405
- res2 += `${join2}"... ${getItemCount(removedKeys)} not stringified"`;
1405
+ res += `${join}"... ${getItemCount(removedKeys)} not stringified"`;
1406
1406
  }
1407
- res2 += `
1407
+ res += `
1408
1408
  ${originalIndentation}`;
1409
1409
  stack.pop();
1410
- return `[${res2}]`;
1410
+ return `[${res}]`;
1411
1411
  }
1412
1412
  let keys = Object.keys(value);
1413
1413
  const keyLength = keys.length;
@@ -1434,10 +1434,10 @@ ${indentation}`;
1434
1434
  }
1435
1435
  stack.push(value);
1436
1436
  for (let i = 0;i < maximumPropertiesToStringify; i++) {
1437
- const key2 = keys[i];
1438
- const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
1437
+ const key = keys[i];
1438
+ const tmp = stringifyIndent(key, value[key], stack, spacer, indentation);
1439
1439
  if (tmp !== undefined) {
1440
- res += `${separator}${strEscape(key2)}: ${tmp}`;
1440
+ res += `${separator}${strEscape(key)}: ${tmp}`;
1441
1441
  separator = join;
1442
1442
  }
1443
1443
  }
@@ -1501,8 +1501,8 @@ ${originalIndentation}`;
1501
1501
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
1502
1502
  let i = 0;
1503
1503
  for (;i < maximumValuesToStringify - 1; i++) {
1504
- const tmp2 = stringifySimple(String(i), value[i], stack);
1505
- res += tmp2 !== undefined ? tmp2 : "null";
1504
+ const tmp = stringifySimple(String(i), value[i], stack);
1505
+ res += tmp !== undefined ? tmp : "null";
1506
1506
  res += ",";
1507
1507
  }
1508
1508
  const tmp = stringifySimple(String(i), value[i], stack);
@@ -1535,10 +1535,10 @@ ${originalIndentation}`;
1535
1535
  }
1536
1536
  stack.push(value);
1537
1537
  for (let i = 0;i < maximumPropertiesToStringify; i++) {
1538
- const key2 = keys[i];
1539
- const tmp = stringifySimple(key2, value[key2], stack);
1538
+ const key = keys[i];
1539
+ const tmp = stringifySimple(key, value[key], stack);
1540
1540
  if (tmp !== undefined) {
1541
- res += `${separator}${strEscape(key2)}:${tmp}`;
1541
+ res += `${separator}${strEscape(key)}:${tmp}`;
1542
1542
  separator = ",";
1543
1543
  }
1544
1544
  }
@@ -1563,7 +1563,7 @@ ${originalIndentation}`;
1563
1563
  return fail ? fail(value) : undefined;
1564
1564
  }
1565
1565
  }
1566
- function stringify2(value, replacer, space) {
1566
+ function stringify(value, replacer, space) {
1567
1567
  if (arguments.length > 1) {
1568
1568
  let spacer = "";
1569
1569
  if (typeof space === "number") {
@@ -1585,7 +1585,7 @@ ${originalIndentation}`;
1585
1585
  }
1586
1586
  return stringifySimple("", value, []);
1587
1587
  }
1588
- return stringify2;
1588
+ return stringify;
1589
1589
  }
1590
1590
  });
1591
1591
 
@@ -1941,8 +1941,8 @@ var require_fecha_umd = __commonJS(function(exports, module) {
1941
1941
  }
1942
1942
  var monthUpdate = function(arrName) {
1943
1943
  return function(v, i18n) {
1944
- var lowerCaseArr = i18n[arrName].map(function(v2) {
1945
- return v2.toLowerCase();
1944
+ var lowerCaseArr = i18n[arrName].map(function(v) {
1945
+ return v.toLowerCase();
1946
1946
  });
1947
1947
  var index = lowerCaseArr.indexOf(v.toLowerCase());
1948
1948
  if (index > -1) {
@@ -2220,14 +2220,14 @@ var require_fecha_umd = __commonJS(function(exports, module) {
2220
2220
  return literals.shift();
2221
2221
  });
2222
2222
  };
2223
- function parse(dateStr, format2, i18n) {
2223
+ function parse(dateStr, format, i18n) {
2224
2224
  if (i18n === undefined) {
2225
2225
  i18n = {};
2226
2226
  }
2227
- if (typeof format2 !== "string") {
2227
+ if (typeof format !== "string") {
2228
2228
  throw new Error("Invalid format in fecha parse");
2229
2229
  }
2230
- format2 = globalMasks[format2] || format2;
2230
+ format = globalMasks[format] || format;
2231
2231
  if (dateStr.length > 1000) {
2232
2232
  return null;
2233
2233
  }
@@ -2245,7 +2245,7 @@ var require_fecha_umd = __commonJS(function(exports, module) {
2245
2245
  };
2246
2246
  var parseInfo = [];
2247
2247
  var literals = [];
2248
- var newFormat = format2.replace(literal, function($0, $1) {
2248
+ var newFormat = format.replace(literal, function($0, $1) {
2249
2249
  literals.push(regexEscape($1));
2250
2250
  return "@@@";
2251
2251
  });
@@ -2253,20 +2253,20 @@ var require_fecha_umd = __commonJS(function(exports, module) {
2253
2253
  var requiredFields = {};
2254
2254
  newFormat = regexEscape(newFormat).replace(token, function($0) {
2255
2255
  var info = parseFlags[$0];
2256
- var field2 = info[0], regex = info[1], requiredField = info[3];
2257
- if (specifiedFields[field2]) {
2258
- throw new Error("Invalid format. " + field2 + " specified twice in format");
2256
+ var field = info[0], regex = info[1], requiredField = info[3];
2257
+ if (specifiedFields[field]) {
2258
+ throw new Error("Invalid format. " + field + " specified twice in format");
2259
2259
  }
2260
- specifiedFields[field2] = true;
2260
+ specifiedFields[field] = true;
2261
2261
  if (requiredField) {
2262
2262
  requiredFields[requiredField] = true;
2263
2263
  }
2264
2264
  parseInfo.push(info);
2265
2265
  return "(" + regex + ")";
2266
2266
  });
2267
- Object.keys(requiredFields).forEach(function(field2) {
2268
- if (!specifiedFields[field2]) {
2269
- throw new Error("Invalid format. " + field2 + " is required in specified format");
2267
+ Object.keys(requiredFields).forEach(function(field) {
2268
+ if (!specifiedFields[field]) {
2269
+ throw new Error("Invalid format. " + field + " is required in specified format");
2270
2270
  }
2271
2271
  });
2272
2272
  newFormat = newFormat.replace(/@@@/g, function() {
@@ -2576,19 +2576,19 @@ var require_destroy = __commonJS(function(exports, module) {
2576
2576
  if (this._writableState) {
2577
2577
  this._writableState.destroyed = true;
2578
2578
  }
2579
- this._destroy(err || null, function(err2) {
2580
- if (!cb && err2) {
2579
+ this._destroy(err || null, function(err) {
2580
+ if (!cb && err) {
2581
2581
  if (!_this._writableState) {
2582
- process.nextTick(emitErrorAndCloseNT, _this, err2);
2582
+ process.nextTick(emitErrorAndCloseNT, _this, err);
2583
2583
  } else if (!_this._writableState.errorEmitted) {
2584
2584
  _this._writableState.errorEmitted = true;
2585
- process.nextTick(emitErrorAndCloseNT, _this, err2);
2585
+ process.nextTick(emitErrorAndCloseNT, _this, err);
2586
2586
  } else {
2587
2587
  process.nextTick(emitCloseNT, _this);
2588
2588
  }
2589
2589
  } else if (cb) {
2590
2590
  process.nextTick(emitCloseNT, _this);
2591
- cb(err2);
2591
+ cb(err);
2592
2592
  } else {
2593
2593
  process.nextTick(emitCloseNT, _this);
2594
2594
  }
@@ -3395,28 +3395,28 @@ var require_end_of_stream = __commonJS(function(exports, module) {
3395
3395
  callback = once(callback || noop);
3396
3396
  var readable = opts.readable || opts.readable !== false && stream.readable;
3397
3397
  var writable = opts.writable || opts.writable !== false && stream.writable;
3398
- var onlegacyfinish = function onlegacyfinish2() {
3398
+ var onlegacyfinish = function onlegacyfinish() {
3399
3399
  if (!stream.writable)
3400
3400
  onfinish();
3401
3401
  };
3402
3402
  var writableEnded = stream._writableState && stream._writableState.finished;
3403
- var onfinish = function onfinish2() {
3403
+ var onfinish = function onfinish() {
3404
3404
  writable = false;
3405
3405
  writableEnded = true;
3406
3406
  if (!readable)
3407
3407
  callback.call(stream);
3408
3408
  };
3409
3409
  var readableEnded = stream._readableState && stream._readableState.endEmitted;
3410
- var onend = function onend2() {
3410
+ var onend = function onend() {
3411
3411
  readable = false;
3412
3412
  readableEnded = true;
3413
3413
  if (!writable)
3414
3414
  callback.call(stream);
3415
3415
  };
3416
- var onerror = function onerror2(err) {
3416
+ var onerror = function onerror(err) {
3417
3417
  callback.call(stream, err);
3418
3418
  };
3419
- var onclose = function onclose2() {
3419
+ var onclose = function onclose() {
3420
3420
  var err;
3421
3421
  if (readable && !readableEnded) {
3422
3422
  if (!stream._readableState || !stream._readableState.ended)
@@ -3429,7 +3429,7 @@ var require_end_of_stream = __commonJS(function(exports, module) {
3429
3429
  return callback.call(stream, err);
3430
3430
  }
3431
3431
  };
3432
- var onrequest = function onrequest2() {
3432
+ var onrequest = function onrequest() {
3433
3433
  stream.req.on("finish", onfinish);
3434
3434
  };
3435
3435
  if (isRequest(stream)) {
@@ -3586,7 +3586,7 @@ var require_async_iterator = __commonJS(function(exports, module) {
3586
3586
  });
3587
3587
  });
3588
3588
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
3589
- var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
3589
+ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
3590
3590
  var _Object$create;
3591
3591
  var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
3592
3592
  value: stream,
@@ -3750,7 +3750,7 @@ var require_from = __commonJS(function(exports, module) {
3750
3750
  function _next2() {
3751
3751
  _next2 = _asyncToGenerator(function* () {
3752
3752
  try {
3753
- var _yield$iterator$next = yield iterator.next(), value = _yield$iterator$next.value, done = _yield$iterator$next.done;
3753
+ var _yield$iterator$next = yield iterator.next(), { value, done } = _yield$iterator$next;
3754
3754
  if (done) {
3755
3755
  readable.push(null);
3756
3756
  } else if (readable.push(yield value)) {
@@ -3775,7 +3775,7 @@ var require__stream_readable = __commonJS(function(exports, module) {
3775
3775
  var Duplex;
3776
3776
  Readable.ReadableState = ReadableState;
3777
3777
  var EE = __require("events").EventEmitter;
3778
- var EElistenerCount = function EElistenerCount2(emitter, type) {
3778
+ var EElistenerCount = function EElistenerCount(emitter, type) {
3779
3779
  return emitter.listeners(type).length;
3780
3780
  };
3781
3781
  var Stream = __require("stream");
@@ -3792,7 +3792,7 @@ var require__stream_readable = __commonJS(function(exports, module) {
3792
3792
  if (debugUtil && debugUtil.debuglog) {
3793
3793
  debug = debugUtil.debuglog("stream");
3794
3794
  } else {
3795
- debug = function debug2() {};
3795
+ debug = function debug() {};
3796
3796
  }
3797
3797
  var BufferList = require_buffer_list();
3798
3798
  var destroyImpl = require_destroy();
@@ -4440,8 +4440,8 @@ var require__stream_readable = __commonJS(function(exports, module) {
4440
4440
  for (var n = 0;n < kProxyEvents.length; n++) {
4441
4441
  stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
4442
4442
  }
4443
- this._read = function(n2) {
4444
- debug("wrapped _read", n2);
4443
+ this._read = function(n) {
4444
+ debug("wrapped _read", n);
4445
4445
  if (paused) {
4446
4446
  paused = false;
4447
4447
  stream.resume();
@@ -4548,10 +4548,10 @@ var require__stream_readable = __commonJS(function(exports, module) {
4548
4548
  // ../../node_modules/readable-stream/lib/_stream_duplex.js
4549
4549
  var require__stream_duplex = __commonJS(function(exports, module) {
4550
4550
  var objectKeys = Object.keys || function(obj) {
4551
- var keys2 = [];
4551
+ var keys = [];
4552
4552
  for (var key in obj)
4553
- keys2.push(key);
4554
- return keys2;
4553
+ keys.push(key);
4554
+ return keys;
4555
4555
  };
4556
4556
  module.exports = Duplex;
4557
4557
  var Readable = require__stream_readable();
@@ -4738,7 +4738,7 @@ var require__stream_writable = __commonJS(function(exports, module) {
4738
4738
  }
4739
4739
  });
4740
4740
  } else {
4741
- realHasInstance = function realHasInstance2(object) {
4741
+ realHasInstance = function realHasInstance(object) {
4742
4742
  return object instanceof this;
4743
4743
  };
4744
4744
  }
@@ -5116,7 +5116,7 @@ var require_modern = __commonJS(function(exports, module) {
5116
5116
  var util = __require("util");
5117
5117
  var Writable = require__stream_writable();
5118
5118
  var { LEVEL } = require_triple_beam();
5119
- var TransportStream = module.exports = function TransportStream2(options = {}) {
5119
+ var TransportStream = module.exports = function TransportStream(options = {}) {
5120
5120
  Writable.call(this, { objectMode: true, highWaterMark: options.highWaterMark });
5121
5121
  this.format = options.format;
5122
5122
  this.level = options.level;
@@ -5227,7 +5227,7 @@ var require_legacy = __commonJS(function(exports, module) {
5227
5227
  var util = __require("util");
5228
5228
  var { LEVEL } = require_triple_beam();
5229
5229
  var TransportStream = require_modern();
5230
- var LegacyTransportStream = module.exports = function LegacyTransportStream2(options = {}) {
5230
+ var LegacyTransportStream = module.exports = function LegacyTransportStream(options = {}) {
5231
5231
  TransportStream.call(this, options);
5232
5232
  if (!options.transport || typeof options.transport.log !== "function") {
5233
5233
  throw new Error("Invalid transport, must be an object with a log method.");
@@ -6391,7 +6391,7 @@ var require_index_cjs = __commonJS(function(exports, module) {
6391
6391
  return null;
6392
6392
  }
6393
6393
  const abbr = /^#([a-f\d]{3,4})$/i;
6394
- const hex2 = /^#([a-f\d]{6})([a-f\d]{2})?$/i;
6394
+ const hex = /^#([a-f\d]{6})([a-f\d]{2})?$/i;
6395
6395
  const rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/;
6396
6396
  const per = /^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/;
6397
6397
  const keyword = /^(\w+)$/;
@@ -6399,7 +6399,7 @@ var require_index_cjs = __commonJS(function(exports, module) {
6399
6399
  let match;
6400
6400
  let i;
6401
6401
  let hexAlpha;
6402
- if (match = string.match(hex2)) {
6402
+ if (match = string.match(hex)) {
6403
6403
  hexAlpha = match[2];
6404
6404
  match = match[1];
6405
6405
  for (i = 0;i < 3; i++) {
@@ -7262,9 +7262,9 @@ var require_index_cjs = __commonJS(function(exports, module) {
7262
7262
  };
7263
7263
  function buildGraph() {
7264
7264
  const graph = {};
7265
- const models2 = Object.keys(convert$1);
7266
- for (let { length } = models2, i = 0;i < length; i++) {
7267
- graph[models2[i]] = {
7265
+ const models = Object.keys(convert$1);
7266
+ for (let { length } = models, i = 0;i < length; i++) {
7267
+ graph[models[i]] = {
7268
7268
  distance: -1,
7269
7269
  parent: null
7270
7270
  };
@@ -7310,9 +7310,9 @@ var require_index_cjs = __commonJS(function(exports, module) {
7310
7310
  function route(fromModel) {
7311
7311
  const graph = deriveBFS(fromModel);
7312
7312
  const conversion = {};
7313
- const models2 = Object.keys(graph);
7314
- for (let { length } = models2, i = 0;i < length; i++) {
7315
- const toModel = models2[i];
7313
+ const models = Object.keys(graph);
7314
+ for (let { length } = models, i = 0;i < length; i++) {
7315
+ const toModel = models[i];
7316
7316
  const node = graph[toModel];
7317
7317
  if (node.parent === null) {
7318
7318
  continue;
@@ -7745,7 +7745,7 @@ var require_index_cjs = __commonJS(function(exports, module) {
7745
7745
  function getDefaultExportFromCjs(x) {
7746
7746
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7747
7747
  }
7748
- var textHex = function hex2(str) {
7748
+ var textHex = function hex(str) {
7749
7749
  for (var i = 0, hash = 0;i < str.length; hash = str.charCodeAt(i++) + ((hash << 5) - hash))
7750
7750
  ;
7751
7751
  var color = Math.floor(Math.abs(Math.sin(hash) * 1e4 % 1 * 16777216)).toString(16);
@@ -7931,7 +7931,7 @@ var require_tail_file = __commonJS(function(exports, module) {
7931
7931
  stream.destroy();
7932
7932
  return;
7933
7933
  }
7934
- (function read() {
7934
+ (function read2() {
7935
7935
  if (stream.destroyed) {
7936
7936
  fs.close(fd, noop);
7937
7937
  return;
@@ -7958,7 +7958,7 @@ var require_tail_file = __commonJS(function(exports, module) {
7958
7958
  row++;
7959
7959
  buff = "";
7960
7960
  }
7961
- return setTimeout(read, 1000);
7961
+ return setTimeout(read2, 1000);
7962
7962
  }
7963
7963
  let data = decode.write(buffer.slice(0, bytes));
7964
7964
  if (!iter) {
@@ -7979,7 +7979,7 @@ var require_tail_file = __commonJS(function(exports, module) {
7979
7979
  }
7980
7980
  buff = data[l];
7981
7981
  pos += bytes;
7982
- return read();
7982
+ return read2();
7983
7983
  });
7984
7984
  })();
7985
7985
  });
@@ -8208,9 +8208,9 @@ var require_file = __commonJS(function(exports, module) {
8208
8208
  if (callback)
8209
8209
  callback(null, results);
8210
8210
  });
8211
- function add(buff2, attempt) {
8211
+ function add(buff, attempt) {
8212
8212
  try {
8213
- const log = JSON.parse(buff2);
8213
+ const log = JSON.parse(buff);
8214
8214
  if (check(log)) {
8215
8215
  push(log);
8216
8216
  }
@@ -8253,20 +8253,20 @@ var require_file = __commonJS(function(exports, module) {
8253
8253
  }
8254
8254
  return true;
8255
8255
  }
8256
- function normalizeQuery(options2) {
8257
- options2 = options2 || {};
8258
- options2.rows = options2.rows || options2.limit || 10;
8259
- options2.start = options2.start || 0;
8260
- options2.until = options2.until || new Date;
8261
- if (typeof options2.until !== "object") {
8262
- options2.until = new Date(options2.until);
8256
+ function normalizeQuery(options) {
8257
+ options = options || {};
8258
+ options.rows = options.rows || options.limit || 10;
8259
+ options.start = options.start || 0;
8260
+ options.until = options.until || new Date;
8261
+ if (typeof options.until !== "object") {
8262
+ options.until = new Date(options.until);
8263
8263
  }
8264
- options2.from = options2.from || options2.until - 24 * 60 * 60 * 1000;
8265
- if (typeof options2.from !== "object") {
8266
- options2.from = new Date(options2.from);
8264
+ options.from = options.from || options.until - 24 * 60 * 60 * 1000;
8265
+ if (typeof options.from !== "object") {
8266
+ options.from = new Date(options.from);
8267
8267
  }
8268
- options2.order = options2.order || "desc";
8269
- return options2;
8268
+ options.order = options.order || "desc";
8269
+ return options;
8270
8270
  }
8271
8271
  }
8272
8272
  stream(options = {}) {
@@ -8395,29 +8395,29 @@ var require_file = __commonJS(function(exports, module) {
8395
8395
  _incFile(callback) {
8396
8396
  debug("_incFile", this.filename);
8397
8397
  const ext = path.extname(this._basename);
8398
- const basename = path.basename(this._basename, ext);
8398
+ const basename2 = path.basename(this._basename, ext);
8399
8399
  const tasks = [];
8400
8400
  if (this.zippedArchive) {
8401
8401
  tasks.push(function(cb) {
8402
8402
  const num = this._created > 0 && !this.tailable ? this._created : "";
8403
- this._compressFile(path.join(this.dirname, `${basename}${num}${ext}`), path.join(this.dirname, `${basename}${num}${ext}.gz`), cb);
8403
+ this._compressFile(path.join(this.dirname, `${basename2}${num}${ext}`), path.join(this.dirname, `${basename2}${num}${ext}.gz`), cb);
8404
8404
  }.bind(this));
8405
8405
  }
8406
8406
  tasks.push(function(cb) {
8407
8407
  if (!this.tailable) {
8408
8408
  this._created += 1;
8409
- this._checkMaxFilesIncrementing(ext, basename, cb);
8409
+ this._checkMaxFilesIncrementing(ext, basename2, cb);
8410
8410
  } else {
8411
- this._checkMaxFilesTailable(ext, basename, cb);
8411
+ this._checkMaxFilesTailable(ext, basename2, cb);
8412
8412
  }
8413
8413
  }.bind(this));
8414
8414
  asyncSeries(tasks, callback);
8415
8415
  }
8416
8416
  _getFile() {
8417
8417
  const ext = path.extname(this._basename);
8418
- const basename = path.basename(this._basename, ext);
8418
+ const basename2 = path.basename(this._basename, ext);
8419
8419
  const isRotation = this.rotationFormat ? this.rotationFormat() : this._created;
8420
- return !this.tailable && this._created ? `${basename}${isRotation}${ext}` : `${basename}${ext}`;
8420
+ return !this.tailable && this._created ? `${basename2}${isRotation}${ext}` : `${basename2}${ext}`;
8421
8421
  }
8422
8422
  _checkMaxFilesIncrementing(ext, basename, callback) {
8423
8423
  if (!this.maxFiles || this._created < this.maxFiles) {
@@ -8861,8 +8861,8 @@ var require_stack_trace = __commonJS(function(exports) {
8861
8861
  Error.stackTraceLimit = Infinity;
8862
8862
  var dummyObject = {};
8863
8863
  var v8Handler = Error.prepareStackTrace;
8864
- Error.prepareStackTrace = function(dummyObject2, v8StackTrace2) {
8865
- return v8StackTrace2;
8864
+ Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
8865
+ return v8StackTrace;
8866
8866
  };
8867
8867
  Error.captureStackTrace(dummyObject, belowFn || exports.get);
8868
8868
  var v8StackTrace = dummyObject.stack;
@@ -9973,12 +9973,12 @@ function createLogger(namespace, options = {}) {
9973
9973
  file: options.file !== undefined ? options.file : globalConfig?.file !== undefined ? globalConfig.file : process.env.LOG_FILE ?? ""
9974
9974
  };
9975
9975
  const isProduction = false;
9976
- const consoleFormat = isProduction ? import_winston.default.format.combine(import_winston.default.format.colorize(), import_winston.default.format.printf(({ level, message, namespace: namespace2, ...meta }) => {
9977
- const ns = namespace2 ? `${namespace2} ` : "";
9976
+ const consoleFormat = isProduction ? import_winston.default.format.combine(import_winston.default.format.colorize(), import_winston.default.format.printf(({ level, message, namespace, ...meta }) => {
9977
+ const ns = namespace ? `${namespace} ` : "";
9978
9978
  const metaStr = Object.keys(meta).length > 0 ? ` ${safeStringify(meta)}` : "";
9979
9979
  return `${level}: ${ns}${message}${metaStr}`;
9980
- })) : import_winston.default.format.combine(import_winston.default.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), import_winston.default.format.colorize(), import_winston.default.format.printf(({ level, message, timestamp, namespace: namespace2, ...meta }) => {
9981
- const ns = namespace2 ? `${namespace2} ` : "";
9980
+ })) : import_winston.default.format.combine(import_winston.default.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), import_winston.default.format.colorize(), import_winston.default.format.printf(({ level, message, timestamp, namespace, ...meta }) => {
9981
+ const ns = namespace ? `${namespace} ` : "";
9982
9982
  const metaStr = Object.keys(meta).length > 0 ? ` ${safeStringify(meta)}` : "";
9983
9983
  return `${timestamp} ${level}: ${ns}${message}${metaStr}`;
9984
9984
  }));
@@ -10025,4 +10025,4 @@ export {
10025
10025
  setLoggerContext
10026
10026
  };
10027
10027
 
10028
- //# debugId=EC5BB0ECB42127DA64756E2164756E21
10028
+ //# debugId=A27BE2524B05CBF464756E2164756E21