@ardrive/turbo-sdk 1.10.0-alpha.1 → 1.10.0-alpha.2

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.
@@ -121401,13 +121401,13 @@ var require_format = __commonJS({
121401
121401
  init_dirname();
121402
121402
  init_buffer2();
121403
121403
  init_process2();
121404
- function _typeof(obj) {
121404
+ function _typeof(o9) {
121405
121405
  "@babel/helpers - typeof";
121406
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
121407
- return typeof obj2;
121408
- } : function(obj2) {
121409
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
121410
- }, _typeof(obj);
121406
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
121407
+ return typeof o10;
121408
+ } : function(o10) {
121409
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
121410
+ }, _typeof(o9);
121411
121411
  }
121412
121412
  function _defineProperties(target, props) {
121413
121413
  for (var i8 = 0; i8 < props.length; i8++) {
@@ -121416,7 +121416,7 @@ var require_format = __commonJS({
121416
121416
  descriptor.configurable = true;
121417
121417
  if ("value" in descriptor)
121418
121418
  descriptor.writable = true;
121419
- Object.defineProperty(target, descriptor.key, descriptor);
121419
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
121420
121420
  }
121421
121421
  }
121422
121422
  function _createClass(Constructor, protoProps, staticProps) {
@@ -121427,6 +121427,22 @@ var require_format = __commonJS({
121427
121427
  Object.defineProperty(Constructor, "prototype", { writable: false });
121428
121428
  return Constructor;
121429
121429
  }
121430
+ function _toPropertyKey(t9) {
121431
+ var i8 = _toPrimitive(t9, "string");
121432
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
121433
+ }
121434
+ function _toPrimitive(t9, r10) {
121435
+ if ("object" != _typeof(t9) || !t9)
121436
+ return t9;
121437
+ var e12 = t9[Symbol.toPrimitive];
121438
+ if (void 0 !== e12) {
121439
+ var i8 = e12.call(t9, r10 || "default");
121440
+ if ("object" != _typeof(i8))
121441
+ return i8;
121442
+ throw new TypeError("@@toPrimitive must return a primitive value.");
121443
+ }
121444
+ return ("string" === r10 ? String : Number)(t9);
121445
+ }
121430
121446
  function _classCallCheck(instance2, Constructor) {
121431
121447
  if (!(instance2 instanceof Constructor)) {
121432
121448
  throw new TypeError("Cannot call a class as a function");
@@ -121521,7 +121537,11 @@ var require_format = __commonJS({
121521
121537
  }
121522
121538
  }
121523
121539
  function _isNativeFunction(fn) {
121524
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
121540
+ try {
121541
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
121542
+ } catch (e12) {
121543
+ return typeof fn === "function";
121544
+ }
121525
121545
  }
121526
121546
  function _setPrototypeOf(o9, p8) {
121527
121547
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
@@ -121795,7 +121815,7 @@ var require_has_flag = __commonJS({
121795
121815
  init_buffer2();
121796
121816
  init_process2();
121797
121817
  module2.exports = function(flag, argv2) {
121798
- argv2 = argv2 || process_exports.argv;
121818
+ argv2 = argv2 || process_exports.argv || [];
121799
121819
  var terminatorPos = argv2.indexOf("--");
121800
121820
  var prefix = /^-{1,2}/.test(flag) ? "" : "--";
121801
121821
  var pos = argv2.indexOf(prefix + flag);
@@ -122560,6 +122580,14 @@ var require_colorize = __commonJS({
122560
122580
  init_dirname();
122561
122581
  init_buffer2();
122562
122582
  init_process2();
122583
+ function _typeof(o9) {
122584
+ "@babel/helpers - typeof";
122585
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
122586
+ return typeof o10;
122587
+ } : function(o10) {
122588
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
122589
+ }, _typeof(o9);
122590
+ }
122563
122591
  function _classCallCheck(instance2, Constructor) {
122564
122592
  if (!(instance2 instanceof Constructor)) {
122565
122593
  throw new TypeError("Cannot call a class as a function");
@@ -122572,7 +122600,7 @@ var require_colorize = __commonJS({
122572
122600
  descriptor.configurable = true;
122573
122601
  if ("value" in descriptor)
122574
122602
  descriptor.writable = true;
122575
- Object.defineProperty(target, descriptor.key, descriptor);
122603
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
122576
122604
  }
122577
122605
  }
122578
122606
  function _createClass(Constructor, protoProps, staticProps) {
@@ -122583,6 +122611,22 @@ var require_colorize = __commonJS({
122583
122611
  Object.defineProperty(Constructor, "prototype", { writable: false });
122584
122612
  return Constructor;
122585
122613
  }
122614
+ function _toPropertyKey(t9) {
122615
+ var i8 = _toPrimitive(t9, "string");
122616
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
122617
+ }
122618
+ function _toPrimitive(t9, r10) {
122619
+ if ("object" != _typeof(t9) || !t9)
122620
+ return t9;
122621
+ var e12 = t9[Symbol.toPrimitive];
122622
+ if (void 0 !== e12) {
122623
+ var i8 = e12.call(t9, r10 || "default");
122624
+ if ("object" != _typeof(i8))
122625
+ return i8;
122626
+ throw new TypeError("@@toPrimitive must return a primitive value.");
122627
+ }
122628
+ return ("string" === r10 ? String : Number)(t9);
122629
+ }
122586
122630
  var colors = require_safe();
122587
122631
  var _require = require_triple_beam();
122588
122632
  var LEVEL = _require.LEVEL;
@@ -122706,6 +122750,14 @@ var require_pad_levels = __commonJS({
122706
122750
  init_dirname();
122707
122751
  init_buffer2();
122708
122752
  init_process2();
122753
+ function _typeof(o9) {
122754
+ "@babel/helpers - typeof";
122755
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
122756
+ return typeof o10;
122757
+ } : function(o10) {
122758
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
122759
+ }, _typeof(o9);
122760
+ }
122709
122761
  function _toConsumableArray(arr) {
122710
122762
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
122711
122763
  }
@@ -122736,9 +122788,8 @@ var require_pad_levels = __commonJS({
122736
122788
  function _arrayLikeToArray(arr, len) {
122737
122789
  if (len == null || len > arr.length)
122738
122790
  len = arr.length;
122739
- for (var i8 = 0, arr2 = new Array(len); i8 < len; i8++) {
122791
+ for (var i8 = 0, arr2 = new Array(len); i8 < len; i8++)
122740
122792
  arr2[i8] = arr[i8];
122741
- }
122742
122793
  return arr2;
122743
122794
  }
122744
122795
  function _classCallCheck(instance2, Constructor) {
@@ -122753,7 +122804,7 @@ var require_pad_levels = __commonJS({
122753
122804
  descriptor.configurable = true;
122754
122805
  if ("value" in descriptor)
122755
122806
  descriptor.writable = true;
122756
- Object.defineProperty(target, descriptor.key, descriptor);
122807
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
122757
122808
  }
122758
122809
  }
122759
122810
  function _createClass(Constructor, protoProps, staticProps) {
@@ -122764,6 +122815,22 @@ var require_pad_levels = __commonJS({
122764
122815
  Object.defineProperty(Constructor, "prototype", { writable: false });
122765
122816
  return Constructor;
122766
122817
  }
122818
+ function _toPropertyKey(t9) {
122819
+ var i8 = _toPrimitive(t9, "string");
122820
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
122821
+ }
122822
+ function _toPrimitive(t9, r10) {
122823
+ if ("object" != _typeof(t9) || !t9)
122824
+ return t9;
122825
+ var e12 = t9[Symbol.toPrimitive];
122826
+ if (void 0 !== e12) {
122827
+ var i8 = e12.call(t9, r10 || "default");
122828
+ if ("object" != _typeof(i8))
122829
+ return i8;
122830
+ throw new TypeError("@@toPrimitive must return a primitive value.");
122831
+ }
122832
+ return ("string" === r10 ? String : Number)(t9);
122833
+ }
122767
122834
  var _require = require_triple_beam();
122768
122835
  var configs = _require.configs;
122769
122836
  var LEVEL = _require.LEVEL;
@@ -122857,6 +122924,14 @@ var require_cli2 = __commonJS({
122857
122924
  init_dirname();
122858
122925
  init_buffer2();
122859
122926
  init_process2();
122927
+ function _typeof(o9) {
122928
+ "@babel/helpers - typeof";
122929
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
122930
+ return typeof o10;
122931
+ } : function(o10) {
122932
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
122933
+ }, _typeof(o9);
122934
+ }
122860
122935
  function _classCallCheck(instance2, Constructor) {
122861
122936
  if (!(instance2 instanceof Constructor)) {
122862
122937
  throw new TypeError("Cannot call a class as a function");
@@ -122869,7 +122944,7 @@ var require_cli2 = __commonJS({
122869
122944
  descriptor.configurable = true;
122870
122945
  if ("value" in descriptor)
122871
122946
  descriptor.writable = true;
122872
- Object.defineProperty(target, descriptor.key, descriptor);
122947
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
122873
122948
  }
122874
122949
  }
122875
122950
  function _createClass(Constructor, protoProps, staticProps) {
@@ -122880,6 +122955,22 @@ var require_cli2 = __commonJS({
122880
122955
  Object.defineProperty(Constructor, "prototype", { writable: false });
122881
122956
  return Constructor;
122882
122957
  }
122958
+ function _toPropertyKey(t9) {
122959
+ var i8 = _toPrimitive(t9, "string");
122960
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
122961
+ }
122962
+ function _toPrimitive(t9, r10) {
122963
+ if ("object" != _typeof(t9) || !t9)
122964
+ return t9;
122965
+ var e12 = t9[Symbol.toPrimitive];
122966
+ if (void 0 !== e12) {
122967
+ var i8 = e12.call(t9, r10 || "default");
122968
+ if ("object" != _typeof(i8))
122969
+ return i8;
122970
+ throw new TypeError("@@toPrimitive must return a primitive value.");
122971
+ }
122972
+ return ("string" === r10 ? String : Number)(t9);
122973
+ }
122883
122974
  var _require = require_colorize();
122884
122975
  var Colorizer = _require.Colorizer;
122885
122976
  var _require2 = require_pad_levels();
@@ -122964,7 +123055,16 @@ var require_errors = __commonJS({
122964
123055
  init_dirname();
122965
123056
  init_buffer2();
122966
123057
  init_process2();
123058
+ function _typeof(o9) {
123059
+ "@babel/helpers - typeof";
123060
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
123061
+ return typeof o10;
123062
+ } : function(o10) {
123063
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
123064
+ }, _typeof(o9);
123065
+ }
122967
123066
  function _defineProperty2(obj, key2, value) {
123067
+ key2 = _toPropertyKey(key2);
122968
123068
  if (key2 in obj) {
122969
123069
  Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
122970
123070
  } else {
@@ -122972,6 +123072,22 @@ var require_errors = __commonJS({
122972
123072
  }
122973
123073
  return obj;
122974
123074
  }
123075
+ function _toPropertyKey(t9) {
123076
+ var i8 = _toPrimitive(t9, "string");
123077
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
123078
+ }
123079
+ function _toPrimitive(t9, r10) {
123080
+ if ("object" != _typeof(t9) || !t9)
123081
+ return t9;
123082
+ var e12 = t9[Symbol.toPrimitive];
123083
+ if (void 0 !== e12) {
123084
+ var i8 = e12.call(t9, r10 || "default");
123085
+ if ("object" != _typeof(i8))
123086
+ return i8;
123087
+ throw new TypeError("@@toPrimitive must return a primitive value.");
123088
+ }
123089
+ return ("string" === r10 ? String : Number)(t9);
123090
+ }
122975
123091
  var format6 = require_format();
122976
123092
  var _require = require_triple_beam();
122977
123093
  var LEVEL = _require.LEVEL;
@@ -122979,10 +123095,9 @@ var require_errors = __commonJS({
122979
123095
  module2.exports = format6(function(einfo, _ref) {
122980
123096
  var stack = _ref.stack, cause = _ref.cause;
122981
123097
  if (einfo instanceof Error) {
122982
- var _Object$assign;
122983
- var info = Object.assign({}, einfo, (_Object$assign = {
123098
+ var info = Object.assign({}, einfo, _defineProperty2(_defineProperty2(_defineProperty2({
122984
123099
  level: einfo.level
122985
- }, _defineProperty2(_Object$assign, LEVEL, einfo[LEVEL] || einfo.level), _defineProperty2(_Object$assign, "message", einfo.message), _defineProperty2(_Object$assign, MESSAGE, einfo[MESSAGE] || einfo.message), _Object$assign));
123100
+ }, LEVEL, einfo[LEVEL] || einfo.level), "message", einfo.message), MESSAGE, einfo[MESSAGE] || einfo.message));
122986
123101
  if (stack)
122987
123102
  info.stack = einfo.stack;
122988
123103
  if (cause)
@@ -123666,7 +123781,16 @@ var require_metadata = __commonJS({
123666
123781
  init_dirname();
123667
123782
  init_buffer2();
123668
123783
  init_process2();
123784
+ function _typeof(o9) {
123785
+ "@babel/helpers - typeof";
123786
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
123787
+ return typeof o10;
123788
+ } : function(o10) {
123789
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
123790
+ }, _typeof(o9);
123791
+ }
123669
123792
  function _defineProperty2(obj, key2, value) {
123793
+ key2 = _toPropertyKey(key2);
123670
123794
  if (key2 in obj) {
123671
123795
  Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
123672
123796
  } else {
@@ -123674,6 +123798,22 @@ var require_metadata = __commonJS({
123674
123798
  }
123675
123799
  return obj;
123676
123800
  }
123801
+ function _toPropertyKey(t9) {
123802
+ var i8 = _toPrimitive(t9, "string");
123803
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
123804
+ }
123805
+ function _toPrimitive(t9, r10) {
123806
+ if ("object" != _typeof(t9) || !t9)
123807
+ return t9;
123808
+ var e12 = t9[Symbol.toPrimitive];
123809
+ if (void 0 !== e12) {
123810
+ var i8 = e12.call(t9, r10 || "default");
123811
+ if ("object" != _typeof(i8))
123812
+ return i8;
123813
+ throw new TypeError("@@toPrimitive must return a primitive value.");
123814
+ }
123815
+ return ("string" === r10 ? String : Number)(t9);
123816
+ }
123677
123817
  var format6 = require_format();
123678
123818
  function fillExcept(info, fillExceptKeys, metadataKey) {
123679
123819
  var savedKeys = fillExceptKeys.reduce(function(acc, key2) {
@@ -123894,6 +124034,14 @@ var require_printf = __commonJS({
123894
124034
  init_dirname();
123895
124035
  init_buffer2();
123896
124036
  init_process2();
124037
+ function _typeof(o9) {
124038
+ "@babel/helpers - typeof";
124039
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
124040
+ return typeof o10;
124041
+ } : function(o10) {
124042
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
124043
+ }, _typeof(o9);
124044
+ }
123897
124045
  function _classCallCheck(instance2, Constructor) {
123898
124046
  if (!(instance2 instanceof Constructor)) {
123899
124047
  throw new TypeError("Cannot call a class as a function");
@@ -123906,7 +124054,7 @@ var require_printf = __commonJS({
123906
124054
  descriptor.configurable = true;
123907
124055
  if ("value" in descriptor)
123908
124056
  descriptor.writable = true;
123909
- Object.defineProperty(target, descriptor.key, descriptor);
124057
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
123910
124058
  }
123911
124059
  }
123912
124060
  function _createClass(Constructor, protoProps, staticProps) {
@@ -123917,6 +124065,22 @@ var require_printf = __commonJS({
123917
124065
  Object.defineProperty(Constructor, "prototype", { writable: false });
123918
124066
  return Constructor;
123919
124067
  }
124068
+ function _toPropertyKey(t9) {
124069
+ var i8 = _toPrimitive(t9, "string");
124070
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
124071
+ }
124072
+ function _toPrimitive(t9, r10) {
124073
+ if ("object" != _typeof(t9) || !t9)
124074
+ return t9;
124075
+ var e12 = t9[Symbol.toPrimitive];
124076
+ if (void 0 !== e12) {
124077
+ var i8 = e12.call(t9, r10 || "default");
124078
+ if ("object" != _typeof(i8))
124079
+ return i8;
124080
+ throw new TypeError("@@toPrimitive must return a primitive value.");
124081
+ }
124082
+ return ("string" === r10 ? String : Number)(t9);
124083
+ }
123920
124084
  var _require = require_triple_beam();
123921
124085
  var MESSAGE = _require.MESSAGE;
123922
124086
  var Printf = /* @__PURE__ */ function() {
@@ -123975,6 +124139,14 @@ var require_splat = __commonJS({
123975
124139
  init_dirname();
123976
124140
  init_buffer2();
123977
124141
  init_process2();
124142
+ function _typeof(o9) {
124143
+ "@babel/helpers - typeof";
124144
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
124145
+ return typeof o10;
124146
+ } : function(o10) {
124147
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
124148
+ }, _typeof(o9);
124149
+ }
123978
124150
  function _toConsumableArray(arr) {
123979
124151
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
123980
124152
  }
@@ -124005,9 +124177,8 @@ var require_splat = __commonJS({
124005
124177
  function _arrayLikeToArray(arr, len) {
124006
124178
  if (len == null || len > arr.length)
124007
124179
  len = arr.length;
124008
- for (var i8 = 0, arr2 = new Array(len); i8 < len; i8++) {
124180
+ for (var i8 = 0, arr2 = new Array(len); i8 < len; i8++)
124009
124181
  arr2[i8] = arr[i8];
124010
- }
124011
124182
  return arr2;
124012
124183
  }
124013
124184
  function _classCallCheck(instance2, Constructor) {
@@ -124022,7 +124193,7 @@ var require_splat = __commonJS({
124022
124193
  descriptor.configurable = true;
124023
124194
  if ("value" in descriptor)
124024
124195
  descriptor.writable = true;
124025
- Object.defineProperty(target, descriptor.key, descriptor);
124196
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
124026
124197
  }
124027
124198
  }
124028
124199
  function _createClass(Constructor, protoProps, staticProps) {
@@ -124033,6 +124204,22 @@ var require_splat = __commonJS({
124033
124204
  Object.defineProperty(Constructor, "prototype", { writable: false });
124034
124205
  return Constructor;
124035
124206
  }
124207
+ function _toPropertyKey(t9) {
124208
+ var i8 = _toPrimitive(t9, "string");
124209
+ return "symbol" == _typeof(i8) ? i8 : String(i8);
124210
+ }
124211
+ function _toPrimitive(t9, r10) {
124212
+ if ("object" != _typeof(t9) || !t9)
124213
+ return t9;
124214
+ var e12 = t9[Symbol.toPrimitive];
124215
+ if (void 0 !== e12) {
124216
+ var i8 = e12.call(t9, r10 || "default");
124217
+ if ("object" != _typeof(i8))
124218
+ return i8;
124219
+ throw new TypeError("@@toPrimitive must return a primitive value.");
124220
+ }
124221
+ return ("string" === r10 ? String : Number)(t9);
124222
+ }
124036
124223
  var util = (init_util(), __toCommonJS(util_exports));
124037
124224
  var _require = require_triple_beam();
124038
124225
  var SPLAT = _require.SPLAT;
@@ -124680,7 +124867,7 @@ var require_package2 = __commonJS({
124680
124867
  module2.exports = {
124681
124868
  name: "winston",
124682
124869
  description: "A logger for just about everything.",
124683
- version: "3.10.0",
124870
+ version: "3.14.1",
124684
124871
  author: "Charlie Robbins <charlie.robbins@gmail.com>",
124685
124872
  maintainers: [
124686
124873
  "David Hyde <dabh@alumni.stanford.edu>"
@@ -124704,33 +124891,33 @@ var require_package2 = __commonJS({
124704
124891
  ],
124705
124892
  dependencies: {
124706
124893
  "@dabh/diagnostics": "^2.0.2",
124707
- "@colors/colors": "1.5.0",
124894
+ "@colors/colors": "^1.6.0",
124708
124895
  async: "^3.2.3",
124709
124896
  "is-stream": "^2.0.0",
124710
- logform: "^2.4.0",
124897
+ logform: "^2.6.0",
124711
124898
  "one-time": "^1.0.0",
124712
124899
  "readable-stream": "^3.4.0",
124713
124900
  "safe-stable-stringify": "^2.3.1",
124714
124901
  "stack-trace": "0.0.x",
124715
124902
  "triple-beam": "^1.3.0",
124716
- "winston-transport": "^4.5.0"
124903
+ "winston-transport": "^4.7.0"
124717
124904
  },
124718
124905
  devDependencies: {
124719
- "@babel/cli": "^7.17.0",
124720
- "@babel/core": "^7.17.2",
124721
- "@babel/preset-env": "^7.16.7",
124722
- "@dabh/eslint-config-populist": "^5.0.0",
124723
- "@types/node": "^20.3.1",
124906
+ "@babel/cli": "^7.23.9",
124907
+ "@babel/core": "^7.24.0",
124908
+ "@babel/preset-env": "^7.24.0",
124909
+ "@dabh/eslint-config-populist": "^4.4.0",
124910
+ "@types/node": "^20.11.24",
124724
124911
  "abstract-winston-transport": "^0.5.1",
124725
124912
  assume: "^2.2.0",
124726
124913
  "cross-spawn-async": "^2.2.5",
124727
- eslint: "^8.9.0",
124914
+ eslint: "^8.57.0",
124728
124915
  hock: "^1.4.1",
124729
- mocha: "8.1.3",
124916
+ mocha: "^10.3.0",
124730
124917
  nyc: "^15.1.0",
124731
- rimraf: "^3.0.2",
124918
+ rimraf: "5.0.1",
124732
124919
  split2: "^4.1.0",
124733
- "std-mocks": "^1.0.1",
124920
+ "std-mocks": "^2.0.0",
124734
124921
  through2: "^4.0.2",
124735
124922
  "winston-compat": "^0.1.5"
124736
124923
  },
@@ -124739,7 +124926,7 @@ var require_package2 = __commonJS({
124739
124926
  types: "./index.d.ts",
124740
124927
  scripts: {
124741
124928
  lint: "eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
124742
- test: "mocha",
124929
+ test: "rimraf test/fixtures/logs/* && mocha",
124743
124930
  "test:coverage": "nyc npm run test:unit",
124744
124931
  "test:unit": "mocha test/unit",
124745
124932
  "test:integration": "mocha test/integration",
@@ -124754,6 +124941,126 @@ var require_package2 = __commonJS({
124754
124941
  }
124755
124942
  });
124756
124943
 
124944
+ // node_modules/winston-transport/dist/modern.js
124945
+ var require_modern = __commonJS({
124946
+ "node_modules/winston-transport/dist/modern.js"(exports14, module2) {
124947
+ "use strict";
124948
+ init_dirname();
124949
+ init_buffer2();
124950
+ init_process2();
124951
+ var util = (init_util(), __toCommonJS(util_exports));
124952
+ var Writable2 = require_stream_writable();
124953
+ var _require = require_triple_beam();
124954
+ var LEVEL = _require.LEVEL;
124955
+ var TransportStream = module2.exports = function TransportStream2() {
124956
+ var _this = this;
124957
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
124958
+ Writable2.call(this, { objectMode: true, highWaterMark: options.highWaterMark });
124959
+ this.format = options.format;
124960
+ this.level = options.level;
124961
+ this.handleExceptions = options.handleExceptions;
124962
+ this.handleRejections = options.handleRejections;
124963
+ this.silent = options.silent;
124964
+ if (options.log)
124965
+ this.log = options.log;
124966
+ if (options.logv)
124967
+ this.logv = options.logv;
124968
+ if (options.close)
124969
+ this.close = options.close;
124970
+ this.once("pipe", function(logger19) {
124971
+ _this.levels = logger19.levels;
124972
+ _this.parent = logger19;
124973
+ });
124974
+ this.once("unpipe", function(src) {
124975
+ if (src === _this.parent) {
124976
+ _this.parent = null;
124977
+ if (_this.close) {
124978
+ _this.close();
124979
+ }
124980
+ }
124981
+ });
124982
+ };
124983
+ util.inherits(TransportStream, Writable2);
124984
+ TransportStream.prototype._write = function _write(info, enc, callback) {
124985
+ if (this.silent || info.exception === true && !this.handleExceptions) {
124986
+ return callback(null);
124987
+ }
124988
+ var level = this.level || this.parent && this.parent.level;
124989
+ if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {
124990
+ if (info && !this.format) {
124991
+ return this.log(info, callback);
124992
+ }
124993
+ var errState = void 0;
124994
+ var transformed = void 0;
124995
+ try {
124996
+ transformed = this.format.transform(Object.assign({}, info), this.format.options);
124997
+ } catch (err) {
124998
+ errState = err;
124999
+ }
125000
+ if (errState || !transformed) {
125001
+ callback();
125002
+ if (errState)
125003
+ throw errState;
125004
+ return;
125005
+ }
125006
+ return this.log(transformed, callback);
125007
+ }
125008
+ this._writableState.sync = false;
125009
+ return callback(null);
125010
+ };
125011
+ TransportStream.prototype._writev = function _writev(chunks, callback) {
125012
+ if (this.logv) {
125013
+ var infos = chunks.filter(this._accept, this);
125014
+ if (!infos.length) {
125015
+ return callback(null);
125016
+ }
125017
+ return this.logv(infos, callback);
125018
+ }
125019
+ for (var i8 = 0; i8 < chunks.length; i8++) {
125020
+ if (!this._accept(chunks[i8]))
125021
+ continue;
125022
+ if (chunks[i8].chunk && !this.format) {
125023
+ this.log(chunks[i8].chunk, chunks[i8].callback);
125024
+ continue;
125025
+ }
125026
+ var errState = void 0;
125027
+ var transformed = void 0;
125028
+ try {
125029
+ transformed = this.format.transform(Object.assign({}, chunks[i8].chunk), this.format.options);
125030
+ } catch (err) {
125031
+ errState = err;
125032
+ }
125033
+ if (errState || !transformed) {
125034
+ chunks[i8].callback();
125035
+ if (errState) {
125036
+ callback(null);
125037
+ throw errState;
125038
+ }
125039
+ } else {
125040
+ this.log(transformed, chunks[i8].callback);
125041
+ }
125042
+ }
125043
+ return callback(null);
125044
+ };
125045
+ TransportStream.prototype._accept = function _accept(write2) {
125046
+ var info = write2.chunk;
125047
+ if (this.silent) {
125048
+ return false;
125049
+ }
125050
+ var level = this.level || this.parent && this.parent.level;
125051
+ if (info.exception === true || !level || this.levels[level] >= this.levels[info[LEVEL]]) {
125052
+ if (this.handleExceptions || info.exception !== true) {
125053
+ return true;
125054
+ }
125055
+ }
125056
+ return false;
125057
+ };
125058
+ TransportStream.prototype._nop = function _nop() {
125059
+ return void 0;
125060
+ };
125061
+ }
125062
+ });
125063
+
124757
125064
  // node_modules/winston-transport/dist/legacy.js
124758
125065
  var require_legacy = __commonJS({
124759
125066
  "node_modules/winston-transport/dist/legacy.js"(exports14, module2) {
@@ -124764,7 +125071,7 @@ var require_legacy = __commonJS({
124764
125071
  var util = (init_util(), __toCommonJS(util_exports));
124765
125072
  var _require = require_triple_beam();
124766
125073
  var LEVEL = _require.LEVEL;
124767
- var TransportStream = require_dist();
125074
+ var TransportStream = require_modern();
124768
125075
  var LegacyTransportStream = module2.exports = function LegacyTransportStream2() {
124769
125076
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
124770
125077
  TransportStream.call(this, options);
@@ -124824,116 +125131,7 @@ var require_dist = __commonJS({
124824
125131
  init_dirname();
124825
125132
  init_buffer2();
124826
125133
  init_process2();
124827
- var util = (init_util(), __toCommonJS(util_exports));
124828
- var Writable2 = require_stream_writable();
124829
- var _require = require_triple_beam();
124830
- var LEVEL = _require.LEVEL;
124831
- var TransportStream = module2.exports = function TransportStream2() {
124832
- var _this = this;
124833
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
124834
- Writable2.call(this, { objectMode: true, highWaterMark: options.highWaterMark });
124835
- this.format = options.format;
124836
- this.level = options.level;
124837
- this.handleExceptions = options.handleExceptions;
124838
- this.handleRejections = options.handleRejections;
124839
- this.silent = options.silent;
124840
- if (options.log)
124841
- this.log = options.log;
124842
- if (options.logv)
124843
- this.logv = options.logv;
124844
- if (options.close)
124845
- this.close = options.close;
124846
- this.once("pipe", function(logger19) {
124847
- _this.levels = logger19.levels;
124848
- _this.parent = logger19;
124849
- });
124850
- this.once("unpipe", function(src) {
124851
- if (src === _this.parent) {
124852
- _this.parent = null;
124853
- if (_this.close) {
124854
- _this.close();
124855
- }
124856
- }
124857
- });
124858
- };
124859
- util.inherits(TransportStream, Writable2);
124860
- TransportStream.prototype._write = function _write(info, enc, callback) {
124861
- if (this.silent || info.exception === true && !this.handleExceptions) {
124862
- return callback(null);
124863
- }
124864
- var level = this.level || this.parent && this.parent.level;
124865
- if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {
124866
- if (info && !this.format) {
124867
- return this.log(info, callback);
124868
- }
124869
- var errState = void 0;
124870
- var transformed = void 0;
124871
- try {
124872
- transformed = this.format.transform(Object.assign({}, info), this.format.options);
124873
- } catch (err) {
124874
- errState = err;
124875
- }
124876
- if (errState || !transformed) {
124877
- callback();
124878
- if (errState)
124879
- throw errState;
124880
- return;
124881
- }
124882
- return this.log(transformed, callback);
124883
- }
124884
- this._writableState.sync = false;
124885
- return callback(null);
124886
- };
124887
- TransportStream.prototype._writev = function _writev(chunks, callback) {
124888
- if (this.logv) {
124889
- var infos = chunks.filter(this._accept, this);
124890
- if (!infos.length) {
124891
- return callback(null);
124892
- }
124893
- return this.logv(infos, callback);
124894
- }
124895
- for (var i8 = 0; i8 < chunks.length; i8++) {
124896
- if (!this._accept(chunks[i8]))
124897
- continue;
124898
- if (chunks[i8].chunk && !this.format) {
124899
- this.log(chunks[i8].chunk, chunks[i8].callback);
124900
- continue;
124901
- }
124902
- var errState = void 0;
124903
- var transformed = void 0;
124904
- try {
124905
- transformed = this.format.transform(Object.assign({}, chunks[i8].chunk), this.format.options);
124906
- } catch (err) {
124907
- errState = err;
124908
- }
124909
- if (errState || !transformed) {
124910
- chunks[i8].callback();
124911
- if (errState) {
124912
- callback(null);
124913
- throw errState;
124914
- }
124915
- } else {
124916
- this.log(transformed, chunks[i8].callback);
124917
- }
124918
- }
124919
- return callback(null);
124920
- };
124921
- TransportStream.prototype._accept = function _accept(write2) {
124922
- var info = write2.chunk;
124923
- if (this.silent) {
124924
- return false;
124925
- }
124926
- var level = this.level || this.parent && this.parent.level;
124927
- if (info.exception === true || !level || this.levels[level] >= this.levels[info[LEVEL]]) {
124928
- if (this.handleExceptions || info.exception !== true) {
124929
- return true;
124930
- }
124931
- }
124932
- return false;
124933
- };
124934
- TransportStream.prototype._nop = function _nop() {
124935
- return void 0;
124936
- };
125134
+ module2.exports = require_modern();
124937
125135
  module2.exports.LegacyTransportStream = require_legacy();
124938
125136
  }
124939
125137
  });
@@ -124945,116 +125143,85 @@ var require_console = __commonJS({
124945
125143
  init_dirname();
124946
125144
  init_buffer2();
124947
125145
  init_process2();
124948
- function _typeof(obj) {
125146
+ function _typeof(o9) {
124949
125147
  "@babel/helpers - typeof";
124950
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
124951
- return typeof obj2;
124952
- } : function(obj2) {
124953
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
124954
- }, _typeof(obj);
125148
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
125149
+ return typeof o10;
125150
+ } : function(o10) {
125151
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
125152
+ }, _typeof(o9);
124955
125153
  }
124956
- function _classCallCheck(instance2, Constructor) {
124957
- if (!(instance2 instanceof Constructor)) {
125154
+ function _classCallCheck(a8, n10) {
125155
+ if (!(a8 instanceof n10))
124958
125156
  throw new TypeError("Cannot call a class as a function");
124959
- }
124960
- }
124961
- function _defineProperties(target, props) {
124962
- for (var i8 = 0; i8 < props.length; i8++) {
124963
- var descriptor = props[i8];
124964
- descriptor.enumerable = descriptor.enumerable || false;
124965
- descriptor.configurable = true;
124966
- if ("value" in descriptor)
124967
- descriptor.writable = true;
124968
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
124969
- }
124970
- }
124971
- function _createClass(Constructor, protoProps, staticProps) {
124972
- if (protoProps)
124973
- _defineProperties(Constructor.prototype, protoProps);
124974
- if (staticProps)
124975
- _defineProperties(Constructor, staticProps);
124976
- Object.defineProperty(Constructor, "prototype", { writable: false });
124977
- return Constructor;
124978
125157
  }
124979
- function _toPropertyKey(arg) {
124980
- var key2 = _toPrimitive(arg, "string");
124981
- return _typeof(key2) === "symbol" ? key2 : String(key2);
124982
- }
124983
- function _toPrimitive(input, hint) {
124984
- if (_typeof(input) !== "object" || input === null)
124985
- return input;
124986
- var prim = input[Symbol.toPrimitive];
124987
- if (prim !== void 0) {
124988
- var res = prim.call(input, hint || "default");
124989
- if (_typeof(res) !== "object")
124990
- return res;
124991
- throw new TypeError("@@toPrimitive must return a primitive value.");
125158
+ function _defineProperties(e12, r10) {
125159
+ for (var t9 = 0; t9 < r10.length; t9++) {
125160
+ var o9 = r10[t9];
125161
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
124992
125162
  }
124993
- return (hint === "string" ? String : Number)(input);
124994
- }
124995
- function _inherits(subClass, superClass) {
124996
- if (typeof superClass !== "function" && superClass !== null) {
124997
- throw new TypeError("Super expression must either be null or a function");
124998
- }
124999
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
125000
- Object.defineProperty(subClass, "prototype", { writable: false });
125001
- if (superClass)
125002
- _setPrototypeOf(subClass, superClass);
125003
125163
  }
125004
- function _setPrototypeOf(o9, p8) {
125005
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
125006
- o10.__proto__ = p9;
125007
- return o10;
125008
- };
125009
- return _setPrototypeOf(o9, p8);
125164
+ function _createClass(e12, r10, t9) {
125165
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
125010
125166
  }
125011
- function _createSuper(Derived) {
125012
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
125013
- return function _createSuperInternal() {
125014
- var Super = _getPrototypeOf(Derived), result;
125015
- if (hasNativeReflectConstruct) {
125016
- var NewTarget = _getPrototypeOf(this).constructor;
125017
- result = Reflect.construct(Super, arguments, NewTarget);
125018
- } else {
125019
- result = Super.apply(this, arguments);
125020
- }
125021
- return _possibleConstructorReturn(this, result);
125022
- };
125167
+ function _callSuper(t9, o9, e12) {
125168
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
125023
125169
  }
125024
- function _possibleConstructorReturn(self2, call) {
125025
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
125026
- return call;
125027
- } else if (call !== void 0) {
125170
+ function _possibleConstructorReturn(t9, e12) {
125171
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
125172
+ return e12;
125173
+ if (void 0 !== e12)
125028
125174
  throw new TypeError("Derived constructors may only return object or undefined");
125029
- }
125030
- return _assertThisInitialized(self2);
125175
+ return _assertThisInitialized(t9);
125031
125176
  }
125032
- function _assertThisInitialized(self2) {
125033
- if (self2 === void 0) {
125177
+ function _assertThisInitialized(e12) {
125178
+ if (void 0 === e12)
125034
125179
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
125035
- }
125036
- return self2;
125180
+ return e12;
125037
125181
  }
125038
125182
  function _isNativeReflectConstruct() {
125039
- if (typeof Reflect === "undefined" || !Reflect.construct)
125040
- return false;
125041
- if (Reflect.construct.sham)
125042
- return false;
125043
- if (typeof Proxy === "function")
125044
- return true;
125045
125183
  try {
125046
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
125184
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
125047
125185
  }));
125048
- return true;
125049
- } catch (e12) {
125050
- return false;
125186
+ } catch (t10) {
125051
125187
  }
125188
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
125189
+ return !!t9;
125190
+ })();
125052
125191
  }
125053
- function _getPrototypeOf(o9) {
125054
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
125055
- return o10.__proto__ || Object.getPrototypeOf(o10);
125056
- };
125057
- return _getPrototypeOf(o9);
125192
+ function _getPrototypeOf(t9) {
125193
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
125194
+ return t10.__proto__ || Object.getPrototypeOf(t10);
125195
+ }, _getPrototypeOf(t9);
125196
+ }
125197
+ function _inherits(t9, e12) {
125198
+ if ("function" != typeof e12 && null !== e12)
125199
+ throw new TypeError("Super expression must either be null or a function");
125200
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
125201
+ }
125202
+ function _setPrototypeOf(t9, e12) {
125203
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
125204
+ return t10.__proto__ = e13, t10;
125205
+ }, _setPrototypeOf(t9, e12);
125206
+ }
125207
+ function _defineProperty2(e12, r10, t9) {
125208
+ return (r10 = _toPropertyKey(r10)) in e12 ? Object.defineProperty(e12, r10, { value: t9, enumerable: true, configurable: true, writable: true }) : e12[r10] = t9, e12;
125209
+ }
125210
+ function _toPropertyKey(t9) {
125211
+ var i8 = _toPrimitive(t9, "string");
125212
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
125213
+ }
125214
+ function _toPrimitive(t9, r10) {
125215
+ if ("object" != _typeof(t9) || !t9)
125216
+ return t9;
125217
+ var e12 = t9[Symbol.toPrimitive];
125218
+ if (void 0 !== e12) {
125219
+ var i8 = e12.call(t9, r10 || "default");
125220
+ if ("object" != _typeof(i8))
125221
+ return i8;
125222
+ throw new TypeError("@@toPrimitive must return a primitive value.");
125223
+ }
125224
+ return ("string" === r10 ? String : Number)(t9);
125058
125225
  }
125059
125226
  var os = (init_os(), __toCommonJS(os_exports));
125060
125227
  var _require = require_triple_beam();
@@ -125062,21 +125229,24 @@ var require_console = __commonJS({
125062
125229
  var MESSAGE = _require.MESSAGE;
125063
125230
  var TransportStream = require_dist();
125064
125231
  module2.exports = /* @__PURE__ */ function(_TransportStream) {
125065
- _inherits(Console, _TransportStream);
125066
- var _super = _createSuper(Console);
125067
125232
  function Console() {
125068
125233
  var _this;
125069
125234
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
125070
125235
  _classCallCheck(this, Console);
125071
- _this = _super.call(this, options);
125236
+ _this = _callSuper(this, Console, [options]);
125237
+ _defineProperty2(_this, "_consoleLog", console.log.bind(console));
125238
+ _defineProperty2(_this, "_consoleWarn", console.warn.bind(console));
125239
+ _defineProperty2(_this, "_consoleError", console.error.bind(console));
125072
125240
  _this.name = options.name || "console";
125073
125241
  _this.stderrLevels = _this._stringArrayToSet(options.stderrLevels);
125074
125242
  _this.consoleWarnLevels = _this._stringArrayToSet(options.consoleWarnLevels);
125075
125243
  _this.eol = typeof options.eol === "string" ? options.eol : os.EOL;
125244
+ _this.forceConsole = options.forceConsole || false;
125076
125245
  _this.setMaxListeners(30);
125077
125246
  return _this;
125078
125247
  }
125079
- _createClass(Console, [{
125248
+ _inherits(Console, _TransportStream);
125249
+ return _createClass(Console, [{
125080
125250
  key: "log",
125081
125251
  value: function log3(info, callback) {
125082
125252
  var _this2 = this;
@@ -125084,30 +125254,30 @@ var require_console = __commonJS({
125084
125254
  return _this2.emit("logged", info);
125085
125255
  });
125086
125256
  if (this.stderrLevels[info[LEVEL]]) {
125087
- if (console._stderr) {
125257
+ if (console._stderr && !this.forceConsole) {
125088
125258
  console._stderr.write("".concat(info[MESSAGE]).concat(this.eol));
125089
125259
  } else {
125090
- console.error(info[MESSAGE]);
125260
+ this._consoleError(info[MESSAGE]);
125091
125261
  }
125092
125262
  if (callback) {
125093
125263
  callback();
125094
125264
  }
125095
125265
  return;
125096
125266
  } else if (this.consoleWarnLevels[info[LEVEL]]) {
125097
- if (console._stderr) {
125267
+ if (console._stderr && !this.forceConsole) {
125098
125268
  console._stderr.write("".concat(info[MESSAGE]).concat(this.eol));
125099
125269
  } else {
125100
- console.warn(info[MESSAGE]);
125270
+ this._consoleWarn(info[MESSAGE]);
125101
125271
  }
125102
125272
  if (callback) {
125103
125273
  callback();
125104
125274
  }
125105
125275
  return;
125106
125276
  }
125107
- if (console._stdout) {
125277
+ if (console._stdout && !this.forceConsole) {
125108
125278
  console._stdout.write("".concat(info[MESSAGE]).concat(this.eol));
125109
125279
  } else {
125110
- console.log(info[MESSAGE]);
125280
+ this._consoleLog(info[MESSAGE]);
125111
125281
  }
125112
125282
  if (callback) {
125113
125283
  callback();
@@ -125139,7 +125309,6 @@ var require_console = __commonJS({
125139
125309
  }, {});
125140
125310
  }
125141
125311
  }]);
125142
- return Console;
125143
125312
  }(TransportStream);
125144
125313
  }
125145
125314
  });
@@ -132698,116 +132867,82 @@ var require_file = __commonJS({
132698
132867
  init_dirname();
132699
132868
  init_buffer2();
132700
132869
  init_process2();
132701
- function _typeof(obj) {
132870
+ function _typeof(o9) {
132702
132871
  "@babel/helpers - typeof";
132703
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
132704
- return typeof obj2;
132705
- } : function(obj2) {
132706
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
132707
- }, _typeof(obj);
132872
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
132873
+ return typeof o10;
132874
+ } : function(o10) {
132875
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
132876
+ }, _typeof(o9);
132708
132877
  }
132709
- function _classCallCheck(instance2, Constructor) {
132710
- if (!(instance2 instanceof Constructor)) {
132878
+ function _classCallCheck(a8, n10) {
132879
+ if (!(a8 instanceof n10))
132711
132880
  throw new TypeError("Cannot call a class as a function");
132712
- }
132713
132881
  }
132714
- function _defineProperties(target, props) {
132715
- for (var i8 = 0; i8 < props.length; i8++) {
132716
- var descriptor = props[i8];
132717
- descriptor.enumerable = descriptor.enumerable || false;
132718
- descriptor.configurable = true;
132719
- if ("value" in descriptor)
132720
- descriptor.writable = true;
132721
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
132882
+ function _defineProperties(e12, r10) {
132883
+ for (var t9 = 0; t9 < r10.length; t9++) {
132884
+ var o9 = r10[t9];
132885
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
132722
132886
  }
132723
132887
  }
132724
- function _createClass(Constructor, protoProps, staticProps) {
132725
- if (protoProps)
132726
- _defineProperties(Constructor.prototype, protoProps);
132727
- if (staticProps)
132728
- _defineProperties(Constructor, staticProps);
132729
- Object.defineProperty(Constructor, "prototype", { writable: false });
132730
- return Constructor;
132888
+ function _createClass(e12, r10, t9) {
132889
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
132731
132890
  }
132732
- function _toPropertyKey(arg) {
132733
- var key2 = _toPrimitive(arg, "string");
132734
- return _typeof(key2) === "symbol" ? key2 : String(key2);
132891
+ function _toPropertyKey(t9) {
132892
+ var i8 = _toPrimitive(t9, "string");
132893
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
132735
132894
  }
132736
- function _toPrimitive(input, hint) {
132737
- if (_typeof(input) !== "object" || input === null)
132738
- return input;
132739
- var prim = input[Symbol.toPrimitive];
132740
- if (prim !== void 0) {
132741
- var res = prim.call(input, hint || "default");
132742
- if (_typeof(res) !== "object")
132743
- return res;
132895
+ function _toPrimitive(t9, r10) {
132896
+ if ("object" != _typeof(t9) || !t9)
132897
+ return t9;
132898
+ var e12 = t9[Symbol.toPrimitive];
132899
+ if (void 0 !== e12) {
132900
+ var i8 = e12.call(t9, r10 || "default");
132901
+ if ("object" != _typeof(i8))
132902
+ return i8;
132744
132903
  throw new TypeError("@@toPrimitive must return a primitive value.");
132745
132904
  }
132746
- return (hint === "string" ? String : Number)(input);
132747
- }
132748
- function _inherits(subClass, superClass) {
132749
- if (typeof superClass !== "function" && superClass !== null) {
132750
- throw new TypeError("Super expression must either be null or a function");
132751
- }
132752
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
132753
- Object.defineProperty(subClass, "prototype", { writable: false });
132754
- if (superClass)
132755
- _setPrototypeOf(subClass, superClass);
132756
- }
132757
- function _setPrototypeOf(o9, p8) {
132758
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
132759
- o10.__proto__ = p9;
132760
- return o10;
132761
- };
132762
- return _setPrototypeOf(o9, p8);
132905
+ return ("string" === r10 ? String : Number)(t9);
132763
132906
  }
132764
- function _createSuper(Derived) {
132765
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
132766
- return function _createSuperInternal() {
132767
- var Super = _getPrototypeOf(Derived), result;
132768
- if (hasNativeReflectConstruct) {
132769
- var NewTarget = _getPrototypeOf(this).constructor;
132770
- result = Reflect.construct(Super, arguments, NewTarget);
132771
- } else {
132772
- result = Super.apply(this, arguments);
132773
- }
132774
- return _possibleConstructorReturn(this, result);
132775
- };
132907
+ function _callSuper(t9, o9, e12) {
132908
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
132776
132909
  }
132777
- function _possibleConstructorReturn(self2, call) {
132778
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
132779
- return call;
132780
- } else if (call !== void 0) {
132910
+ function _possibleConstructorReturn(t9, e12) {
132911
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
132912
+ return e12;
132913
+ if (void 0 !== e12)
132781
132914
  throw new TypeError("Derived constructors may only return object or undefined");
132782
- }
132783
- return _assertThisInitialized(self2);
132915
+ return _assertThisInitialized(t9);
132784
132916
  }
132785
- function _assertThisInitialized(self2) {
132786
- if (self2 === void 0) {
132917
+ function _assertThisInitialized(e12) {
132918
+ if (void 0 === e12)
132787
132919
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
132788
- }
132789
- return self2;
132920
+ return e12;
132790
132921
  }
132791
132922
  function _isNativeReflectConstruct() {
132792
- if (typeof Reflect === "undefined" || !Reflect.construct)
132793
- return false;
132794
- if (Reflect.construct.sham)
132795
- return false;
132796
- if (typeof Proxy === "function")
132797
- return true;
132798
132923
  try {
132799
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
132924
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
132800
132925
  }));
132801
- return true;
132802
- } catch (e12) {
132803
- return false;
132926
+ } catch (t10) {
132804
132927
  }
132928
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
132929
+ return !!t9;
132930
+ })();
132805
132931
  }
132806
- function _getPrototypeOf(o9) {
132807
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
132808
- return o10.__proto__ || Object.getPrototypeOf(o10);
132809
- };
132810
- return _getPrototypeOf(o9);
132932
+ function _getPrototypeOf(t9) {
132933
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
132934
+ return t10.__proto__ || Object.getPrototypeOf(t10);
132935
+ }, _getPrototypeOf(t9);
132936
+ }
132937
+ function _inherits(t9, e12) {
132938
+ if ("function" != typeof e12 && null !== e12)
132939
+ throw new TypeError("Super expression must either be null or a function");
132940
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
132941
+ }
132942
+ function _setPrototypeOf(t9, e12) {
132943
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
132944
+ return t10.__proto__ = e13, t10;
132945
+ }, _setPrototypeOf(t9, e12);
132811
132946
  }
132812
132947
  var fs2 = (init_fs(), __toCommonJS(fs_exports));
132813
132948
  var path2 = (init_path(), __toCommonJS(path_exports));
@@ -132823,13 +132958,11 @@ var require_file = __commonJS({
132823
132958
  var os = (init_os(), __toCommonJS(os_exports));
132824
132959
  var tailFile = require_tail_file();
132825
132960
  module2.exports = /* @__PURE__ */ function(_TransportStream) {
132826
- _inherits(File, _TransportStream);
132827
- var _super = _createSuper(File);
132828
132961
  function File() {
132829
132962
  var _this;
132830
132963
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
132831
132964
  _classCallCheck(this, File);
132832
- _this = _super.call(this, options);
132965
+ _this = _callSuper(this, File, [options]);
132833
132966
  _this.name = options.name || "file";
132834
132967
  function throwIf(target) {
132835
132968
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -132843,7 +132976,7 @@ var require_file = __commonJS({
132843
132976
  }
132844
132977
  _this._stream = new PassThrough2();
132845
132978
  _this._stream.setMaxListeners(30);
132846
- _this._onError = _this._onError.bind(_assertThisInitialized(_this));
132979
+ _this._onError = _this._onError.bind(_this);
132847
132980
  if (options.filename || options.dirname) {
132848
132981
  throwIf("filename or dirname", "stream");
132849
132982
  _this._basename = _this.filename = options.filename ? path2.basename(options.filename) : "winston.log";
@@ -132879,7 +133012,8 @@ var require_file = __commonJS({
132879
133012
  _this.open();
132880
133013
  return _this;
132881
133014
  }
132882
- _createClass(File, [{
133015
+ _inherits(File, _TransportStream);
133016
+ return _createClass(File, [{
132883
133017
  key: "finishIfEnding",
132884
133018
  value: function finishIfEnding() {
132885
133019
  var _this2 = this;
@@ -133170,9 +133304,7 @@ var require_file = __commonJS({
133170
133304
  _this5._dest = _this5._createStream(_this5._stream);
133171
133305
  _this5._opening = false;
133172
133306
  _this5.once("open", function() {
133173
- if (_this5._stream.eventNames().includes("rotate")) {
133174
- _this5._stream.emit("rotate");
133175
- } else {
133307
+ if (!_this5._stream.emit("rotate")) {
133176
133308
  _this5._rotate = false;
133177
133309
  }
133178
133310
  });
@@ -133337,11 +133469,6 @@ var require_file = __commonJS({
133337
133469
  }
133338
133470
  });
133339
133471
  debug("create stream ok", fullpath);
133340
- if (this.zippedArchive) {
133341
- var gzip2 = zlib.createGzip();
133342
- gzip2.pipe(dest);
133343
- return gzip2;
133344
- }
133345
133472
  return dest;
133346
133473
  }
133347
133474
  /**
@@ -133355,12 +133482,22 @@ var require_file = __commonJS({
133355
133482
  debug("_incFile", this.filename);
133356
133483
  var ext = path2.extname(this._basename);
133357
133484
  var basename2 = path2.basename(this._basename, ext);
133358
- if (!this.tailable) {
133359
- this._created += 1;
133360
- this._checkMaxFilesIncrementing(ext, basename2, callback);
133361
- } else {
133362
- this._checkMaxFilesTailable(ext, basename2, callback);
133363
- }
133485
+ var tasks = [];
133486
+ if (this.zippedArchive) {
133487
+ tasks.push(function(cb) {
133488
+ var num = this._created > 0 && !this.tailable ? this._created : "";
133489
+ this._compressFile(path2.join(this.dirname, "".concat(basename2).concat(num).concat(ext)), path2.join(this.dirname, "".concat(basename2).concat(num).concat(ext, ".gz")), cb);
133490
+ }.bind(this));
133491
+ }
133492
+ tasks.push(function(cb) {
133493
+ if (!this.tailable) {
133494
+ this._created += 1;
133495
+ this._checkMaxFilesIncrementing(ext, basename2, cb);
133496
+ } else {
133497
+ this._checkMaxFilesTailable(ext, basename2, cb);
133498
+ }
133499
+ }.bind(this));
133500
+ asyncSeries(tasks, callback);
133364
133501
  }
133365
133502
  /**
133366
133503
  * Gets the next filename to use for this instance in the case that log
@@ -133374,8 +133511,7 @@ var require_file = __commonJS({
133374
133511
  var ext = path2.extname(this._basename);
133375
133512
  var basename2 = path2.basename(this._basename, ext);
133376
133513
  var isRotation = this.rotationFormat ? this.rotationFormat() : this._created;
133377
- var target = !this.tailable && this._created ? "".concat(basename2).concat(isRotation).concat(ext) : "".concat(basename2).concat(ext);
133378
- return this.zippedArchive && !this.tailable ? "".concat(target, ".gz") : target;
133514
+ return !this.tailable && this._created ? "".concat(basename2).concat(isRotation).concat(ext) : "".concat(basename2).concat(ext);
133379
133515
  }
133380
133516
  /**
133381
133517
  * Increment the number of files created or checked by this instance.
@@ -133433,7 +133569,31 @@ var require_file = __commonJS({
133433
133569
  }.bind(this, x5));
133434
133570
  }
133435
133571
  asyncSeries(tasks, function() {
133436
- fs2.rename(path2.join(_this12.dirname, "".concat(basename2).concat(ext)), path2.join(_this12.dirname, "".concat(basename2, "1").concat(ext).concat(isZipped)), callback);
133572
+ fs2.rename(path2.join(_this12.dirname, "".concat(basename2).concat(ext).concat(isZipped)), path2.join(_this12.dirname, "".concat(basename2, "1").concat(ext).concat(isZipped)), callback);
133573
+ });
133574
+ }
133575
+ /**
133576
+ * Compresses src to dest with gzip and unlinks src
133577
+ * @param {string} src - path to source file.
133578
+ * @param {string} dest - path to zipped destination file.
133579
+ * @param {Function} callback - callback called after file has been compressed.
133580
+ * @returns {undefined}
133581
+ * @private
133582
+ */
133583
+ }, {
133584
+ key: "_compressFile",
133585
+ value: function _compressFile(src, dest, callback) {
133586
+ fs2.access(src, fs2.F_OK, function(err) {
133587
+ if (err) {
133588
+ return callback();
133589
+ }
133590
+ var gzip2 = zlib.createGzip();
133591
+ var inp = fs2.createReadStream(src);
133592
+ var out = fs2.createWriteStream(dest);
133593
+ out.on("finish", function() {
133594
+ fs2.unlink(src, callback);
133595
+ });
133596
+ inp.pipe(gzip2).pipe(out);
133437
133597
  });
133438
133598
  }
133439
133599
  }, {
@@ -133446,7 +133606,6 @@ var require_file = __commonJS({
133446
133606
  }
133447
133607
  }
133448
133608
  }]);
133449
- return File;
133450
133609
  }(TransportStream);
133451
133610
  }
133452
133611
  });
@@ -134248,161 +134407,120 @@ var require_http = __commonJS({
134248
134407
  init_dirname();
134249
134408
  init_buffer2();
134250
134409
  init_process2();
134251
- function _typeof(obj) {
134410
+ function _typeof(o9) {
134252
134411
  "@babel/helpers - typeof";
134253
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
134254
- return typeof obj2;
134255
- } : function(obj2) {
134256
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
134257
- }, _typeof(obj);
134412
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
134413
+ return typeof o10;
134414
+ } : function(o10) {
134415
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
134416
+ }, _typeof(o9);
134258
134417
  }
134259
- function ownKeys2(object2, enumerableOnly) {
134260
- var keys = Object.keys(object2);
134418
+ function ownKeys2(e12, r10) {
134419
+ var t9 = Object.keys(e12);
134261
134420
  if (Object.getOwnPropertySymbols) {
134262
- var symbols = Object.getOwnPropertySymbols(object2);
134263
- enumerableOnly && (symbols = symbols.filter(function(sym) {
134264
- return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
134265
- })), keys.push.apply(keys, symbols);
134421
+ var o9 = Object.getOwnPropertySymbols(e12);
134422
+ r10 && (o9 = o9.filter(function(r11) {
134423
+ return Object.getOwnPropertyDescriptor(e12, r11).enumerable;
134424
+ })), t9.push.apply(t9, o9);
134266
134425
  }
134267
- return keys;
134426
+ return t9;
134268
134427
  }
134269
- function _objectSpread2(target) {
134270
- for (var i8 = 1; i8 < arguments.length; i8++) {
134271
- var source = null != arguments[i8] ? arguments[i8] : {};
134272
- i8 % 2 ? ownKeys2(Object(source), true).forEach(function(key2) {
134273
- _defineProperty2(target, key2, source[key2]);
134274
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key2) {
134275
- Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
134428
+ function _objectSpread2(e12) {
134429
+ for (var r10 = 1; r10 < arguments.length; r10++) {
134430
+ var t9 = null != arguments[r10] ? arguments[r10] : {};
134431
+ r10 % 2 ? ownKeys2(Object(t9), true).forEach(function(r11) {
134432
+ _defineProperty2(e12, r11, t9[r11]);
134433
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e12, Object.getOwnPropertyDescriptors(t9)) : ownKeys2(Object(t9)).forEach(function(r11) {
134434
+ Object.defineProperty(e12, r11, Object.getOwnPropertyDescriptor(t9, r11));
134276
134435
  });
134277
134436
  }
134278
- return target;
134437
+ return e12;
134279
134438
  }
134280
- function _defineProperty2(obj, key2, value) {
134281
- key2 = _toPropertyKey(key2);
134282
- if (key2 in obj) {
134283
- Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
134284
- } else {
134285
- obj[key2] = value;
134286
- }
134287
- return obj;
134439
+ function _defineProperty2(e12, r10, t9) {
134440
+ return (r10 = _toPropertyKey(r10)) in e12 ? Object.defineProperty(e12, r10, { value: t9, enumerable: true, configurable: true, writable: true }) : e12[r10] = t9, e12;
134288
134441
  }
134289
- function _classCallCheck(instance2, Constructor) {
134290
- if (!(instance2 instanceof Constructor)) {
134442
+ function _classCallCheck(a8, n10) {
134443
+ if (!(a8 instanceof n10))
134291
134444
  throw new TypeError("Cannot call a class as a function");
134292
- }
134293
134445
  }
134294
- function _defineProperties(target, props) {
134295
- for (var i8 = 0; i8 < props.length; i8++) {
134296
- var descriptor = props[i8];
134297
- descriptor.enumerable = descriptor.enumerable || false;
134298
- descriptor.configurable = true;
134299
- if ("value" in descriptor)
134300
- descriptor.writable = true;
134301
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
134446
+ function _defineProperties(e12, r10) {
134447
+ for (var t9 = 0; t9 < r10.length; t9++) {
134448
+ var o9 = r10[t9];
134449
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
134302
134450
  }
134303
134451
  }
134304
- function _createClass(Constructor, protoProps, staticProps) {
134305
- if (protoProps)
134306
- _defineProperties(Constructor.prototype, protoProps);
134307
- if (staticProps)
134308
- _defineProperties(Constructor, staticProps);
134309
- Object.defineProperty(Constructor, "prototype", { writable: false });
134310
- return Constructor;
134452
+ function _createClass(e12, r10, t9) {
134453
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
134311
134454
  }
134312
- function _toPropertyKey(arg) {
134313
- var key2 = _toPrimitive(arg, "string");
134314
- return _typeof(key2) === "symbol" ? key2 : String(key2);
134455
+ function _toPropertyKey(t9) {
134456
+ var i8 = _toPrimitive(t9, "string");
134457
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
134315
134458
  }
134316
- function _toPrimitive(input, hint) {
134317
- if (_typeof(input) !== "object" || input === null)
134318
- return input;
134319
- var prim = input[Symbol.toPrimitive];
134320
- if (prim !== void 0) {
134321
- var res = prim.call(input, hint || "default");
134322
- if (_typeof(res) !== "object")
134323
- return res;
134459
+ function _toPrimitive(t9, r10) {
134460
+ if ("object" != _typeof(t9) || !t9)
134461
+ return t9;
134462
+ var e12 = t9[Symbol.toPrimitive];
134463
+ if (void 0 !== e12) {
134464
+ var i8 = e12.call(t9, r10 || "default");
134465
+ if ("object" != _typeof(i8))
134466
+ return i8;
134324
134467
  throw new TypeError("@@toPrimitive must return a primitive value.");
134325
134468
  }
134326
- return (hint === "string" ? String : Number)(input);
134327
- }
134328
- function _inherits(subClass, superClass) {
134329
- if (typeof superClass !== "function" && superClass !== null) {
134330
- throw new TypeError("Super expression must either be null or a function");
134331
- }
134332
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
134333
- Object.defineProperty(subClass, "prototype", { writable: false });
134334
- if (superClass)
134335
- _setPrototypeOf(subClass, superClass);
134336
- }
134337
- function _setPrototypeOf(o9, p8) {
134338
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
134339
- o10.__proto__ = p9;
134340
- return o10;
134341
- };
134342
- return _setPrototypeOf(o9, p8);
134469
+ return ("string" === r10 ? String : Number)(t9);
134343
134470
  }
134344
- function _createSuper(Derived) {
134345
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
134346
- return function _createSuperInternal() {
134347
- var Super = _getPrototypeOf(Derived), result;
134348
- if (hasNativeReflectConstruct) {
134349
- var NewTarget = _getPrototypeOf(this).constructor;
134350
- result = Reflect.construct(Super, arguments, NewTarget);
134351
- } else {
134352
- result = Super.apply(this, arguments);
134353
- }
134354
- return _possibleConstructorReturn(this, result);
134355
- };
134471
+ function _callSuper(t9, o9, e12) {
134472
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
134356
134473
  }
134357
- function _possibleConstructorReturn(self2, call) {
134358
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
134359
- return call;
134360
- } else if (call !== void 0) {
134474
+ function _possibleConstructorReturn(t9, e12) {
134475
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
134476
+ return e12;
134477
+ if (void 0 !== e12)
134361
134478
  throw new TypeError("Derived constructors may only return object or undefined");
134362
- }
134363
- return _assertThisInitialized(self2);
134479
+ return _assertThisInitialized(t9);
134364
134480
  }
134365
- function _assertThisInitialized(self2) {
134366
- if (self2 === void 0) {
134481
+ function _assertThisInitialized(e12) {
134482
+ if (void 0 === e12)
134367
134483
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
134368
- }
134369
- return self2;
134484
+ return e12;
134370
134485
  }
134371
134486
  function _isNativeReflectConstruct() {
134372
- if (typeof Reflect === "undefined" || !Reflect.construct)
134373
- return false;
134374
- if (Reflect.construct.sham)
134375
- return false;
134376
- if (typeof Proxy === "function")
134377
- return true;
134378
134487
  try {
134379
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
134488
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
134380
134489
  }));
134381
- return true;
134382
- } catch (e12) {
134383
- return false;
134490
+ } catch (t10) {
134384
134491
  }
134492
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
134493
+ return !!t9;
134494
+ })();
134385
134495
  }
134386
- function _getPrototypeOf(o9) {
134387
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
134388
- return o10.__proto__ || Object.getPrototypeOf(o10);
134389
- };
134390
- return _getPrototypeOf(o9);
134496
+ function _getPrototypeOf(t9) {
134497
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
134498
+ return t10.__proto__ || Object.getPrototypeOf(t10);
134499
+ }, _getPrototypeOf(t9);
134500
+ }
134501
+ function _inherits(t9, e12) {
134502
+ if ("function" != typeof e12 && null !== e12)
134503
+ throw new TypeError("Super expression must either be null or a function");
134504
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
134505
+ }
134506
+ function _setPrototypeOf(t9, e12) {
134507
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
134508
+ return t10.__proto__ = e13, t10;
134509
+ }, _setPrototypeOf(t9, e12);
134391
134510
  }
134392
134511
  var http = (init_http(), __toCommonJS(http_exports));
134393
134512
  var https = (init_https(), __toCommonJS(https_exports));
134394
134513
  var _require = require_readable_browser();
134395
134514
  var Stream2 = _require.Stream;
134396
134515
  var TransportStream = require_dist();
134397
- var jsonStringify = require_safe_stable_stringify();
134516
+ var _require2 = require_safe_stable_stringify();
134517
+ var configure = _require2.configure;
134398
134518
  module2.exports = /* @__PURE__ */ function(_TransportStream) {
134399
- _inherits(Http, _TransportStream);
134400
- var _super = _createSuper(Http);
134401
134519
  function Http() {
134402
134520
  var _this;
134403
134521
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
134404
134522
  _classCallCheck(this, Http);
134405
- _this = _super.call(this, options);
134523
+ _this = _callSuper(this, Http, [options]);
134406
134524
  _this.options = options;
134407
134525
  _this.name = options.name || "http";
134408
134526
  _this.ssl = !!options.ssl;
@@ -134410,6 +134528,7 @@ var require_http = __commonJS({
134410
134528
  _this.port = options.port;
134411
134529
  _this.auth = options.auth;
134412
134530
  _this.path = options.path || "";
134531
+ _this.maximumDepth = options.maximumDepth;
134413
134532
  _this.agent = options.agent;
134414
134533
  _this.headers = options.headers || {};
134415
134534
  _this.headers["content-type"] = "application/json";
@@ -134424,7 +134543,8 @@ var require_http = __commonJS({
134424
134543
  }
134425
134544
  return _this;
134426
134545
  }
134427
- _createClass(Http, [{
134546
+ _inherits(Http, _TransportStream);
134547
+ return _createClass(Http, [{
134428
134548
  key: "log",
134429
134549
  value: function log3(info, callback) {
134430
134550
  var _this2 = this;
@@ -134611,10 +134731,12 @@ var require_http = __commonJS({
134611
134731
  return callback(null, res);
134612
134732
  }).resume();
134613
134733
  });
134734
+ var jsonStringify = configure(_objectSpread2({}, this.maximumDepth && {
134735
+ maximumDepth: this.maximumDepth
134736
+ }));
134614
134737
  req.end(Buffer2.from(jsonStringify(options, this.options.replacer), "utf8"));
134615
134738
  }
134616
134739
  }]);
134617
- return Http;
134618
134740
  }(TransportStream);
134619
134741
  }
134620
134742
  });
@@ -134642,116 +134764,82 @@ var require_stream = __commonJS({
134642
134764
  init_dirname();
134643
134765
  init_buffer2();
134644
134766
  init_process2();
134645
- function _typeof(obj) {
134767
+ function _typeof(o9) {
134646
134768
  "@babel/helpers - typeof";
134647
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
134648
- return typeof obj2;
134649
- } : function(obj2) {
134650
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
134651
- }, _typeof(obj);
134769
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
134770
+ return typeof o10;
134771
+ } : function(o10) {
134772
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
134773
+ }, _typeof(o9);
134652
134774
  }
134653
- function _classCallCheck(instance2, Constructor) {
134654
- if (!(instance2 instanceof Constructor)) {
134775
+ function _classCallCheck(a8, n10) {
134776
+ if (!(a8 instanceof n10))
134655
134777
  throw new TypeError("Cannot call a class as a function");
134656
- }
134657
134778
  }
134658
- function _defineProperties(target, props) {
134659
- for (var i8 = 0; i8 < props.length; i8++) {
134660
- var descriptor = props[i8];
134661
- descriptor.enumerable = descriptor.enumerable || false;
134662
- descriptor.configurable = true;
134663
- if ("value" in descriptor)
134664
- descriptor.writable = true;
134665
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
134779
+ function _defineProperties(e12, r10) {
134780
+ for (var t9 = 0; t9 < r10.length; t9++) {
134781
+ var o9 = r10[t9];
134782
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
134666
134783
  }
134667
134784
  }
134668
- function _createClass(Constructor, protoProps, staticProps) {
134669
- if (protoProps)
134670
- _defineProperties(Constructor.prototype, protoProps);
134671
- if (staticProps)
134672
- _defineProperties(Constructor, staticProps);
134673
- Object.defineProperty(Constructor, "prototype", { writable: false });
134674
- return Constructor;
134785
+ function _createClass(e12, r10, t9) {
134786
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
134675
134787
  }
134676
- function _toPropertyKey(arg) {
134677
- var key2 = _toPrimitive(arg, "string");
134678
- return _typeof(key2) === "symbol" ? key2 : String(key2);
134788
+ function _toPropertyKey(t9) {
134789
+ var i8 = _toPrimitive(t9, "string");
134790
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
134679
134791
  }
134680
- function _toPrimitive(input, hint) {
134681
- if (_typeof(input) !== "object" || input === null)
134682
- return input;
134683
- var prim = input[Symbol.toPrimitive];
134684
- if (prim !== void 0) {
134685
- var res = prim.call(input, hint || "default");
134686
- if (_typeof(res) !== "object")
134687
- return res;
134792
+ function _toPrimitive(t9, r10) {
134793
+ if ("object" != _typeof(t9) || !t9)
134794
+ return t9;
134795
+ var e12 = t9[Symbol.toPrimitive];
134796
+ if (void 0 !== e12) {
134797
+ var i8 = e12.call(t9, r10 || "default");
134798
+ if ("object" != _typeof(i8))
134799
+ return i8;
134688
134800
  throw new TypeError("@@toPrimitive must return a primitive value.");
134689
134801
  }
134690
- return (hint === "string" ? String : Number)(input);
134691
- }
134692
- function _inherits(subClass, superClass) {
134693
- if (typeof superClass !== "function" && superClass !== null) {
134694
- throw new TypeError("Super expression must either be null or a function");
134695
- }
134696
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
134697
- Object.defineProperty(subClass, "prototype", { writable: false });
134698
- if (superClass)
134699
- _setPrototypeOf(subClass, superClass);
134700
- }
134701
- function _setPrototypeOf(o9, p8) {
134702
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
134703
- o10.__proto__ = p9;
134704
- return o10;
134705
- };
134706
- return _setPrototypeOf(o9, p8);
134802
+ return ("string" === r10 ? String : Number)(t9);
134707
134803
  }
134708
- function _createSuper(Derived) {
134709
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
134710
- return function _createSuperInternal() {
134711
- var Super = _getPrototypeOf(Derived), result;
134712
- if (hasNativeReflectConstruct) {
134713
- var NewTarget = _getPrototypeOf(this).constructor;
134714
- result = Reflect.construct(Super, arguments, NewTarget);
134715
- } else {
134716
- result = Super.apply(this, arguments);
134717
- }
134718
- return _possibleConstructorReturn(this, result);
134719
- };
134804
+ function _callSuper(t9, o9, e12) {
134805
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
134720
134806
  }
134721
- function _possibleConstructorReturn(self2, call) {
134722
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
134723
- return call;
134724
- } else if (call !== void 0) {
134807
+ function _possibleConstructorReturn(t9, e12) {
134808
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
134809
+ return e12;
134810
+ if (void 0 !== e12)
134725
134811
  throw new TypeError("Derived constructors may only return object or undefined");
134726
- }
134727
- return _assertThisInitialized(self2);
134812
+ return _assertThisInitialized(t9);
134728
134813
  }
134729
- function _assertThisInitialized(self2) {
134730
- if (self2 === void 0) {
134814
+ function _assertThisInitialized(e12) {
134815
+ if (void 0 === e12)
134731
134816
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
134732
- }
134733
- return self2;
134817
+ return e12;
134734
134818
  }
134735
134819
  function _isNativeReflectConstruct() {
134736
- if (typeof Reflect === "undefined" || !Reflect.construct)
134737
- return false;
134738
- if (Reflect.construct.sham)
134739
- return false;
134740
- if (typeof Proxy === "function")
134741
- return true;
134742
134820
  try {
134743
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
134821
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
134744
134822
  }));
134745
- return true;
134746
- } catch (e12) {
134747
- return false;
134823
+ } catch (t10) {
134748
134824
  }
134825
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
134826
+ return !!t9;
134827
+ })();
134749
134828
  }
134750
- function _getPrototypeOf(o9) {
134751
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
134752
- return o10.__proto__ || Object.getPrototypeOf(o10);
134753
- };
134754
- return _getPrototypeOf(o9);
134829
+ function _getPrototypeOf(t9) {
134830
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
134831
+ return t10.__proto__ || Object.getPrototypeOf(t10);
134832
+ }, _getPrototypeOf(t9);
134833
+ }
134834
+ function _inherits(t9, e12) {
134835
+ if ("function" != typeof e12 && null !== e12)
134836
+ throw new TypeError("Super expression must either be null or a function");
134837
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
134838
+ }
134839
+ function _setPrototypeOf(t9, e12) {
134840
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
134841
+ return t10.__proto__ = e13, t10;
134842
+ }, _setPrototypeOf(t9, e12);
134755
134843
  }
134756
134844
  var isStream3 = require_is_stream();
134757
134845
  var _require = require_triple_beam();
@@ -134759,13 +134847,11 @@ var require_stream = __commonJS({
134759
134847
  var os = (init_os(), __toCommonJS(os_exports));
134760
134848
  var TransportStream = require_dist();
134761
134849
  module2.exports = /* @__PURE__ */ function(_TransportStream) {
134762
- _inherits(Stream2, _TransportStream);
134763
- var _super = _createSuper(Stream2);
134764
134850
  function Stream2() {
134765
134851
  var _this;
134766
134852
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
134767
134853
  _classCallCheck(this, Stream2);
134768
- _this = _super.call(this, options);
134854
+ _this = _callSuper(this, Stream2, [options]);
134769
134855
  if (!options.stream || !isStream3(options.stream)) {
134770
134856
  throw new Error("options.stream is required.");
134771
134857
  }
@@ -134775,7 +134861,8 @@ var require_stream = __commonJS({
134775
134861
  _this.eol = typeof options.eol === "string" ? options.eol : os.EOL;
134776
134862
  return _this;
134777
134863
  }
134778
- _createClass(Stream2, [{
134864
+ _inherits(Stream2, _TransportStream);
134865
+ return _createClass(Stream2, [{
134779
134866
  key: "log",
134780
134867
  value: function log3(info, callback) {
134781
134868
  var _this2 = this;
@@ -134796,7 +134883,6 @@ var require_stream = __commonJS({
134796
134883
  return;
134797
134884
  }
134798
134885
  }]);
134799
- return Stream2;
134800
134886
  }(TransportStream);
134801
134887
  }
134802
134888
  });
@@ -135149,128 +135235,92 @@ var require_exception_stream = __commonJS({
135149
135235
  init_dirname();
135150
135236
  init_buffer2();
135151
135237
  init_process2();
135152
- function _typeof(obj) {
135238
+ function _typeof(o9) {
135153
135239
  "@babel/helpers - typeof";
135154
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
135155
- return typeof obj2;
135156
- } : function(obj2) {
135157
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
135158
- }, _typeof(obj);
135240
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
135241
+ return typeof o10;
135242
+ } : function(o10) {
135243
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
135244
+ }, _typeof(o9);
135159
135245
  }
135160
- function _classCallCheck(instance2, Constructor) {
135161
- if (!(instance2 instanceof Constructor)) {
135246
+ function _classCallCheck(a8, n10) {
135247
+ if (!(a8 instanceof n10))
135162
135248
  throw new TypeError("Cannot call a class as a function");
135163
- }
135164
135249
  }
135165
- function _defineProperties(target, props) {
135166
- for (var i8 = 0; i8 < props.length; i8++) {
135167
- var descriptor = props[i8];
135168
- descriptor.enumerable = descriptor.enumerable || false;
135169
- descriptor.configurable = true;
135170
- if ("value" in descriptor)
135171
- descriptor.writable = true;
135172
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
135250
+ function _defineProperties(e12, r10) {
135251
+ for (var t9 = 0; t9 < r10.length; t9++) {
135252
+ var o9 = r10[t9];
135253
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
135173
135254
  }
135174
135255
  }
135175
- function _createClass(Constructor, protoProps, staticProps) {
135176
- if (protoProps)
135177
- _defineProperties(Constructor.prototype, protoProps);
135178
- if (staticProps)
135179
- _defineProperties(Constructor, staticProps);
135180
- Object.defineProperty(Constructor, "prototype", { writable: false });
135181
- return Constructor;
135256
+ function _createClass(e12, r10, t9) {
135257
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
135182
135258
  }
135183
- function _toPropertyKey(arg) {
135184
- var key2 = _toPrimitive(arg, "string");
135185
- return _typeof(key2) === "symbol" ? key2 : String(key2);
135259
+ function _toPropertyKey(t9) {
135260
+ var i8 = _toPrimitive(t9, "string");
135261
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
135186
135262
  }
135187
- function _toPrimitive(input, hint) {
135188
- if (_typeof(input) !== "object" || input === null)
135189
- return input;
135190
- var prim = input[Symbol.toPrimitive];
135191
- if (prim !== void 0) {
135192
- var res = prim.call(input, hint || "default");
135193
- if (_typeof(res) !== "object")
135194
- return res;
135263
+ function _toPrimitive(t9, r10) {
135264
+ if ("object" != _typeof(t9) || !t9)
135265
+ return t9;
135266
+ var e12 = t9[Symbol.toPrimitive];
135267
+ if (void 0 !== e12) {
135268
+ var i8 = e12.call(t9, r10 || "default");
135269
+ if ("object" != _typeof(i8))
135270
+ return i8;
135195
135271
  throw new TypeError("@@toPrimitive must return a primitive value.");
135196
135272
  }
135197
- return (hint === "string" ? String : Number)(input);
135198
- }
135199
- function _inherits(subClass, superClass) {
135200
- if (typeof superClass !== "function" && superClass !== null) {
135201
- throw new TypeError("Super expression must either be null or a function");
135202
- }
135203
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
135204
- Object.defineProperty(subClass, "prototype", { writable: false });
135205
- if (superClass)
135206
- _setPrototypeOf(subClass, superClass);
135207
- }
135208
- function _setPrototypeOf(o9, p8) {
135209
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
135210
- o10.__proto__ = p9;
135211
- return o10;
135212
- };
135213
- return _setPrototypeOf(o9, p8);
135273
+ return ("string" === r10 ? String : Number)(t9);
135214
135274
  }
135215
- function _createSuper(Derived) {
135216
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
135217
- return function _createSuperInternal() {
135218
- var Super = _getPrototypeOf(Derived), result;
135219
- if (hasNativeReflectConstruct) {
135220
- var NewTarget = _getPrototypeOf(this).constructor;
135221
- result = Reflect.construct(Super, arguments, NewTarget);
135222
- } else {
135223
- result = Super.apply(this, arguments);
135224
- }
135225
- return _possibleConstructorReturn(this, result);
135226
- };
135275
+ function _callSuper(t9, o9, e12) {
135276
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
135227
135277
  }
135228
- function _possibleConstructorReturn(self2, call) {
135229
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
135230
- return call;
135231
- } else if (call !== void 0) {
135278
+ function _possibleConstructorReturn(t9, e12) {
135279
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
135280
+ return e12;
135281
+ if (void 0 !== e12)
135232
135282
  throw new TypeError("Derived constructors may only return object or undefined");
135233
- }
135234
- return _assertThisInitialized(self2);
135283
+ return _assertThisInitialized(t9);
135235
135284
  }
135236
- function _assertThisInitialized(self2) {
135237
- if (self2 === void 0) {
135285
+ function _assertThisInitialized(e12) {
135286
+ if (void 0 === e12)
135238
135287
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
135239
- }
135240
- return self2;
135288
+ return e12;
135241
135289
  }
135242
135290
  function _isNativeReflectConstruct() {
135243
- if (typeof Reflect === "undefined" || !Reflect.construct)
135244
- return false;
135245
- if (Reflect.construct.sham)
135246
- return false;
135247
- if (typeof Proxy === "function")
135248
- return true;
135249
135291
  try {
135250
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
135292
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
135251
135293
  }));
135252
- return true;
135253
- } catch (e12) {
135254
- return false;
135294
+ } catch (t10) {
135255
135295
  }
135296
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
135297
+ return !!t9;
135298
+ })();
135256
135299
  }
135257
- function _getPrototypeOf(o9) {
135258
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
135259
- return o10.__proto__ || Object.getPrototypeOf(o10);
135260
- };
135261
- return _getPrototypeOf(o9);
135300
+ function _getPrototypeOf(t9) {
135301
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
135302
+ return t10.__proto__ || Object.getPrototypeOf(t10);
135303
+ }, _getPrototypeOf(t9);
135304
+ }
135305
+ function _inherits(t9, e12) {
135306
+ if ("function" != typeof e12 && null !== e12)
135307
+ throw new TypeError("Super expression must either be null or a function");
135308
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
135309
+ }
135310
+ function _setPrototypeOf(t9, e12) {
135311
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
135312
+ return t10.__proto__ = e13, t10;
135313
+ }, _setPrototypeOf(t9, e12);
135262
135314
  }
135263
135315
  var _require = require_readable_browser();
135264
135316
  var Writable2 = _require.Writable;
135265
135317
  module2.exports = /* @__PURE__ */ function(_Writable) {
135266
- _inherits(ExceptionStream, _Writable);
135267
- var _super = _createSuper(ExceptionStream);
135268
135318
  function ExceptionStream(transport) {
135269
135319
  var _this;
135270
135320
  _classCallCheck(this, ExceptionStream);
135271
- _this = _super.call(this, {
135321
+ _this = _callSuper(this, ExceptionStream, [{
135272
135322
  objectMode: true
135273
- });
135323
+ }]);
135274
135324
  if (!transport) {
135275
135325
  throw new Error("ExceptionStream requires a TransportStream instance.");
135276
135326
  }
@@ -135278,7 +135328,8 @@ var require_exception_stream = __commonJS({
135278
135328
  _this.transport = transport;
135279
135329
  return _this;
135280
135330
  }
135281
- _createClass(ExceptionStream, [{
135331
+ _inherits(ExceptionStream, _Writable);
135332
+ return _createClass(ExceptionStream, [{
135282
135333
  key: "_write",
135283
135334
  value: function _write(info, enc, callback) {
135284
135335
  if (info.exception) {
@@ -135288,7 +135339,6 @@ var require_exception_stream = __commonJS({
135288
135339
  return true;
135289
135340
  }
135290
135341
  }]);
135291
- return ExceptionStream;
135292
135342
  }(Writable2);
135293
135343
  }
135294
135344
  });
@@ -135300,52 +135350,42 @@ var require_exception_handler = __commonJS({
135300
135350
  init_dirname();
135301
135351
  init_buffer2();
135302
135352
  init_process2();
135303
- function _typeof(obj) {
135353
+ function _typeof(o9) {
135304
135354
  "@babel/helpers - typeof";
135305
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
135306
- return typeof obj2;
135307
- } : function(obj2) {
135308
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
135309
- }, _typeof(obj);
135355
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
135356
+ return typeof o10;
135357
+ } : function(o10) {
135358
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
135359
+ }, _typeof(o9);
135310
135360
  }
135311
- function _classCallCheck(instance2, Constructor) {
135312
- if (!(instance2 instanceof Constructor)) {
135361
+ function _classCallCheck(a8, n10) {
135362
+ if (!(a8 instanceof n10))
135313
135363
  throw new TypeError("Cannot call a class as a function");
135314
- }
135315
135364
  }
135316
- function _defineProperties(target, props) {
135317
- for (var i8 = 0; i8 < props.length; i8++) {
135318
- var descriptor = props[i8];
135319
- descriptor.enumerable = descriptor.enumerable || false;
135320
- descriptor.configurable = true;
135321
- if ("value" in descriptor)
135322
- descriptor.writable = true;
135323
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
135365
+ function _defineProperties(e12, r10) {
135366
+ for (var t9 = 0; t9 < r10.length; t9++) {
135367
+ var o9 = r10[t9];
135368
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
135324
135369
  }
135325
135370
  }
135326
- function _createClass(Constructor, protoProps, staticProps) {
135327
- if (protoProps)
135328
- _defineProperties(Constructor.prototype, protoProps);
135329
- if (staticProps)
135330
- _defineProperties(Constructor, staticProps);
135331
- Object.defineProperty(Constructor, "prototype", { writable: false });
135332
- return Constructor;
135371
+ function _createClass(e12, r10, t9) {
135372
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
135333
135373
  }
135334
- function _toPropertyKey(arg) {
135335
- var key2 = _toPrimitive(arg, "string");
135336
- return _typeof(key2) === "symbol" ? key2 : String(key2);
135374
+ function _toPropertyKey(t9) {
135375
+ var i8 = _toPrimitive(t9, "string");
135376
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
135337
135377
  }
135338
- function _toPrimitive(input, hint) {
135339
- if (_typeof(input) !== "object" || input === null)
135340
- return input;
135341
- var prim = input[Symbol.toPrimitive];
135342
- if (prim !== void 0) {
135343
- var res = prim.call(input, hint || "default");
135344
- if (_typeof(res) !== "object")
135345
- return res;
135378
+ function _toPrimitive(t9, r10) {
135379
+ if ("object" != _typeof(t9) || !t9)
135380
+ return t9;
135381
+ var e12 = t9[Symbol.toPrimitive];
135382
+ if (void 0 !== e12) {
135383
+ var i8 = e12.call(t9, r10 || "default");
135384
+ if ("object" != _typeof(i8))
135385
+ return i8;
135346
135386
  throw new TypeError("@@toPrimitive must return a primitive value.");
135347
135387
  }
135348
- return (hint === "string" ? String : Number)(input);
135388
+ return ("string" === r10 ? String : Number)(t9);
135349
135389
  }
135350
135390
  var os = (init_os(), __toCommonJS(os_exports));
135351
135391
  var asyncForEach = require_forEach();
@@ -135362,7 +135402,7 @@ var require_exception_handler = __commonJS({
135362
135402
  this.logger = logger19;
135363
135403
  this.handlers = /* @__PURE__ */ new Map();
135364
135404
  }
135365
- _createClass(ExceptionHandler, [{
135405
+ return _createClass(ExceptionHandler, [{
135366
135406
  key: "handle",
135367
135407
  value: function handle() {
135368
135408
  var _this = this;
@@ -135556,11 +135596,125 @@ var require_exception_handler = __commonJS({
135556
135596
  });
135557
135597
  }
135558
135598
  }]);
135559
- return ExceptionHandler;
135560
135599
  }();
135561
135600
  }
135562
135601
  });
135563
135602
 
135603
+ // node_modules/winston/dist/winston/rejection-stream.js
135604
+ var require_rejection_stream = __commonJS({
135605
+ "node_modules/winston/dist/winston/rejection-stream.js"(exports14, module2) {
135606
+ "use strict";
135607
+ init_dirname();
135608
+ init_buffer2();
135609
+ init_process2();
135610
+ function _typeof(o9) {
135611
+ "@babel/helpers - typeof";
135612
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
135613
+ return typeof o10;
135614
+ } : function(o10) {
135615
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
135616
+ }, _typeof(o9);
135617
+ }
135618
+ function _classCallCheck(a8, n10) {
135619
+ if (!(a8 instanceof n10))
135620
+ throw new TypeError("Cannot call a class as a function");
135621
+ }
135622
+ function _defineProperties(e12, r10) {
135623
+ for (var t9 = 0; t9 < r10.length; t9++) {
135624
+ var o9 = r10[t9];
135625
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
135626
+ }
135627
+ }
135628
+ function _createClass(e12, r10, t9) {
135629
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
135630
+ }
135631
+ function _toPropertyKey(t9) {
135632
+ var i8 = _toPrimitive(t9, "string");
135633
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
135634
+ }
135635
+ function _toPrimitive(t9, r10) {
135636
+ if ("object" != _typeof(t9) || !t9)
135637
+ return t9;
135638
+ var e12 = t9[Symbol.toPrimitive];
135639
+ if (void 0 !== e12) {
135640
+ var i8 = e12.call(t9, r10 || "default");
135641
+ if ("object" != _typeof(i8))
135642
+ return i8;
135643
+ throw new TypeError("@@toPrimitive must return a primitive value.");
135644
+ }
135645
+ return ("string" === r10 ? String : Number)(t9);
135646
+ }
135647
+ function _callSuper(t9, o9, e12) {
135648
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
135649
+ }
135650
+ function _possibleConstructorReturn(t9, e12) {
135651
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
135652
+ return e12;
135653
+ if (void 0 !== e12)
135654
+ throw new TypeError("Derived constructors may only return object or undefined");
135655
+ return _assertThisInitialized(t9);
135656
+ }
135657
+ function _assertThisInitialized(e12) {
135658
+ if (void 0 === e12)
135659
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
135660
+ return e12;
135661
+ }
135662
+ function _isNativeReflectConstruct() {
135663
+ try {
135664
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
135665
+ }));
135666
+ } catch (t10) {
135667
+ }
135668
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
135669
+ return !!t9;
135670
+ })();
135671
+ }
135672
+ function _getPrototypeOf(t9) {
135673
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
135674
+ return t10.__proto__ || Object.getPrototypeOf(t10);
135675
+ }, _getPrototypeOf(t9);
135676
+ }
135677
+ function _inherits(t9, e12) {
135678
+ if ("function" != typeof e12 && null !== e12)
135679
+ throw new TypeError("Super expression must either be null or a function");
135680
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
135681
+ }
135682
+ function _setPrototypeOf(t9, e12) {
135683
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
135684
+ return t10.__proto__ = e13, t10;
135685
+ }, _setPrototypeOf(t9, e12);
135686
+ }
135687
+ var _require = require_readable_browser();
135688
+ var Writable2 = _require.Writable;
135689
+ module2.exports = /* @__PURE__ */ function(_Writable) {
135690
+ function RejectionStream(transport) {
135691
+ var _this;
135692
+ _classCallCheck(this, RejectionStream);
135693
+ _this = _callSuper(this, RejectionStream, [{
135694
+ objectMode: true
135695
+ }]);
135696
+ if (!transport) {
135697
+ throw new Error("RejectionStream requires a TransportStream instance.");
135698
+ }
135699
+ _this.handleRejections = true;
135700
+ _this.transport = transport;
135701
+ return _this;
135702
+ }
135703
+ _inherits(RejectionStream, _Writable);
135704
+ return _createClass(RejectionStream, [{
135705
+ key: "_write",
135706
+ value: function _write(info, enc, callback) {
135707
+ if (info.rejection) {
135708
+ return this.transport.log(info, callback);
135709
+ }
135710
+ callback();
135711
+ return true;
135712
+ }
135713
+ }]);
135714
+ }(Writable2);
135715
+ }
135716
+ });
135717
+
135564
135718
  // node_modules/winston/dist/winston/rejection-handler.js
135565
135719
  var require_rejection_handler = __commonJS({
135566
135720
  "node_modules/winston/dist/winston/rejection-handler.js"(exports14, module2) {
@@ -135568,59 +135722,49 @@ var require_rejection_handler = __commonJS({
135568
135722
  init_dirname();
135569
135723
  init_buffer2();
135570
135724
  init_process2();
135571
- function _typeof(obj) {
135725
+ function _typeof(o9) {
135572
135726
  "@babel/helpers - typeof";
135573
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
135574
- return typeof obj2;
135575
- } : function(obj2) {
135576
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
135577
- }, _typeof(obj);
135727
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
135728
+ return typeof o10;
135729
+ } : function(o10) {
135730
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
135731
+ }, _typeof(o9);
135578
135732
  }
135579
- function _classCallCheck(instance2, Constructor) {
135580
- if (!(instance2 instanceof Constructor)) {
135733
+ function _classCallCheck(a8, n10) {
135734
+ if (!(a8 instanceof n10))
135581
135735
  throw new TypeError("Cannot call a class as a function");
135582
- }
135583
135736
  }
135584
- function _defineProperties(target, props) {
135585
- for (var i8 = 0; i8 < props.length; i8++) {
135586
- var descriptor = props[i8];
135587
- descriptor.enumerable = descriptor.enumerable || false;
135588
- descriptor.configurable = true;
135589
- if ("value" in descriptor)
135590
- descriptor.writable = true;
135591
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
135737
+ function _defineProperties(e12, r10) {
135738
+ for (var t9 = 0; t9 < r10.length; t9++) {
135739
+ var o9 = r10[t9];
135740
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
135592
135741
  }
135593
135742
  }
135594
- function _createClass(Constructor, protoProps, staticProps) {
135595
- if (protoProps)
135596
- _defineProperties(Constructor.prototype, protoProps);
135597
- if (staticProps)
135598
- _defineProperties(Constructor, staticProps);
135599
- Object.defineProperty(Constructor, "prototype", { writable: false });
135600
- return Constructor;
135743
+ function _createClass(e12, r10, t9) {
135744
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
135601
135745
  }
135602
- function _toPropertyKey(arg) {
135603
- var key2 = _toPrimitive(arg, "string");
135604
- return _typeof(key2) === "symbol" ? key2 : String(key2);
135746
+ function _toPropertyKey(t9) {
135747
+ var i8 = _toPrimitive(t9, "string");
135748
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
135605
135749
  }
135606
- function _toPrimitive(input, hint) {
135607
- if (_typeof(input) !== "object" || input === null)
135608
- return input;
135609
- var prim = input[Symbol.toPrimitive];
135610
- if (prim !== void 0) {
135611
- var res = prim.call(input, hint || "default");
135612
- if (_typeof(res) !== "object")
135613
- return res;
135750
+ function _toPrimitive(t9, r10) {
135751
+ if ("object" != _typeof(t9) || !t9)
135752
+ return t9;
135753
+ var e12 = t9[Symbol.toPrimitive];
135754
+ if (void 0 !== e12) {
135755
+ var i8 = e12.call(t9, r10 || "default");
135756
+ if ("object" != _typeof(i8))
135757
+ return i8;
135614
135758
  throw new TypeError("@@toPrimitive must return a primitive value.");
135615
135759
  }
135616
- return (hint === "string" ? String : Number)(input);
135760
+ return ("string" === r10 ? String : Number)(t9);
135617
135761
  }
135618
135762
  var os = (init_os(), __toCommonJS(os_exports));
135619
135763
  var asyncForEach = require_forEach();
135620
135764
  var debug = require_browser3()("winston:rejection");
135621
135765
  var once3 = require_one_time();
135622
135766
  var stackTrace = require_stack_trace();
135623
- var ExceptionStream = require_exception_stream();
135767
+ var RejectionStream = require_rejection_stream();
135624
135768
  module2.exports = /* @__PURE__ */ function() {
135625
135769
  function RejectionHandler(logger19) {
135626
135770
  _classCallCheck(this, RejectionHandler);
@@ -135630,7 +135774,7 @@ var require_rejection_handler = __commonJS({
135630
135774
  this.logger = logger19;
135631
135775
  this.handlers = /* @__PURE__ */ new Map();
135632
135776
  }
135633
- _createClass(RejectionHandler, [{
135777
+ return _createClass(RejectionHandler, [{
135634
135778
  key: "handle",
135635
135779
  value: function handle() {
135636
135780
  var _this = this;
@@ -135685,7 +135829,7 @@ var require_rejection_handler = __commonJS({
135685
135829
  level: "error",
135686
135830
  message: ["unhandledRejection: ".concat(message || "(no error message)"), err && err.stack || " No stack trace"].join("\n"),
135687
135831
  stack: err && err.stack,
135688
- exception: true,
135832
+ rejection: true,
135689
135833
  date: (/* @__PURE__ */ new Date()).toString(),
135690
135834
  process: this.getProcessInfo(),
135691
135835
  os: this.getOsInfo(),
@@ -135752,7 +135896,7 @@ var require_rejection_handler = __commonJS({
135752
135896
  value: function _addHandler(handler) {
135753
135897
  if (!this.handlers.has(handler)) {
135754
135898
  handler.handleRejections = true;
135755
- var wrapper = new ExceptionStream(handler);
135899
+ var wrapper = new RejectionStream(handler);
135756
135900
  this.handlers.set(handler, wrapper);
135757
135901
  this.logger.pipe(wrapper);
135758
135902
  }
@@ -135824,11 +135968,130 @@ var require_rejection_handler = __commonJS({
135824
135968
  });
135825
135969
  }
135826
135970
  }]);
135827
- return RejectionHandler;
135828
135971
  }();
135829
135972
  }
135830
135973
  });
135831
135974
 
135975
+ // node_modules/winston-transport/modern.js
135976
+ var require_modern2 = __commonJS({
135977
+ "node_modules/winston-transport/modern.js"(exports14, module2) {
135978
+ "use strict";
135979
+ init_dirname();
135980
+ init_buffer2();
135981
+ init_process2();
135982
+ var util = (init_util(), __toCommonJS(util_exports));
135983
+ var Writable2 = require_stream_writable();
135984
+ var { LEVEL } = require_triple_beam();
135985
+ var TransportStream = module2.exports = function TransportStream2(options = {}) {
135986
+ Writable2.call(this, { objectMode: true, highWaterMark: options.highWaterMark });
135987
+ this.format = options.format;
135988
+ this.level = options.level;
135989
+ this.handleExceptions = options.handleExceptions;
135990
+ this.handleRejections = options.handleRejections;
135991
+ this.silent = options.silent;
135992
+ if (options.log)
135993
+ this.log = options.log;
135994
+ if (options.logv)
135995
+ this.logv = options.logv;
135996
+ if (options.close)
135997
+ this.close = options.close;
135998
+ this.once("pipe", (logger19) => {
135999
+ this.levels = logger19.levels;
136000
+ this.parent = logger19;
136001
+ });
136002
+ this.once("unpipe", (src) => {
136003
+ if (src === this.parent) {
136004
+ this.parent = null;
136005
+ if (this.close) {
136006
+ this.close();
136007
+ }
136008
+ }
136009
+ });
136010
+ };
136011
+ util.inherits(TransportStream, Writable2);
136012
+ TransportStream.prototype._write = function _write(info, enc, callback) {
136013
+ if (this.silent || info.exception === true && !this.handleExceptions) {
136014
+ return callback(null);
136015
+ }
136016
+ const level = this.level || this.parent && this.parent.level;
136017
+ if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {
136018
+ if (info && !this.format) {
136019
+ return this.log(info, callback);
136020
+ }
136021
+ let errState;
136022
+ let transformed;
136023
+ try {
136024
+ transformed = this.format.transform(Object.assign({}, info), this.format.options);
136025
+ } catch (err) {
136026
+ errState = err;
136027
+ }
136028
+ if (errState || !transformed) {
136029
+ callback();
136030
+ if (errState)
136031
+ throw errState;
136032
+ return;
136033
+ }
136034
+ return this.log(transformed, callback);
136035
+ }
136036
+ this._writableState.sync = false;
136037
+ return callback(null);
136038
+ };
136039
+ TransportStream.prototype._writev = function _writev(chunks, callback) {
136040
+ if (this.logv) {
136041
+ const infos = chunks.filter(this._accept, this);
136042
+ if (!infos.length) {
136043
+ return callback(null);
136044
+ }
136045
+ return this.logv(infos, callback);
136046
+ }
136047
+ for (let i8 = 0; i8 < chunks.length; i8++) {
136048
+ if (!this._accept(chunks[i8]))
136049
+ continue;
136050
+ if (chunks[i8].chunk && !this.format) {
136051
+ this.log(chunks[i8].chunk, chunks[i8].callback);
136052
+ continue;
136053
+ }
136054
+ let errState;
136055
+ let transformed;
136056
+ try {
136057
+ transformed = this.format.transform(
136058
+ Object.assign({}, chunks[i8].chunk),
136059
+ this.format.options
136060
+ );
136061
+ } catch (err) {
136062
+ errState = err;
136063
+ }
136064
+ if (errState || !transformed) {
136065
+ chunks[i8].callback();
136066
+ if (errState) {
136067
+ callback(null);
136068
+ throw errState;
136069
+ }
136070
+ } else {
136071
+ this.log(transformed, chunks[i8].callback);
136072
+ }
136073
+ }
136074
+ return callback(null);
136075
+ };
136076
+ TransportStream.prototype._accept = function _accept(write2) {
136077
+ const info = write2.chunk;
136078
+ if (this.silent) {
136079
+ return false;
136080
+ }
136081
+ const level = this.level || this.parent && this.parent.level;
136082
+ if (info.exception === true || !level || this.levels[level] >= this.levels[info[LEVEL]]) {
136083
+ if (this.handleExceptions || info.exception !== true) {
136084
+ return true;
136085
+ }
136086
+ }
136087
+ return false;
136088
+ };
136089
+ TransportStream.prototype._nop = function _nop() {
136090
+ return void 0;
136091
+ };
136092
+ }
136093
+ });
136094
+
135832
136095
  // node_modules/winston-transport/legacy.js
135833
136096
  var require_legacy2 = __commonJS({
135834
136097
  "node_modules/winston-transport/legacy.js"(exports14, module2) {
@@ -135838,7 +136101,7 @@ var require_legacy2 = __commonJS({
135838
136101
  init_process2();
135839
136102
  var util = (init_util(), __toCommonJS(util_exports));
135840
136103
  var { LEVEL } = require_triple_beam();
135841
- var TransportStream = require_dist();
136104
+ var TransportStream = require_modern2();
135842
136105
  var LegacyTransportStream = module2.exports = function LegacyTransportStream2(options = {}) {
135843
136106
  TransportStream.call(this, options);
135844
136107
  if (!options.transport || typeof options.transport.log !== "function") {
@@ -135905,63 +136168,55 @@ var require_profiler = __commonJS({
135905
136168
  init_dirname();
135906
136169
  init_buffer2();
135907
136170
  init_process2();
135908
- function _typeof(obj) {
136171
+ function _typeof(o9) {
135909
136172
  "@babel/helpers - typeof";
135910
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
135911
- return typeof obj2;
135912
- } : function(obj2) {
135913
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
135914
- }, _typeof(obj);
136173
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
136174
+ return typeof o10;
136175
+ } : function(o10) {
136176
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
136177
+ }, _typeof(o9);
135915
136178
  }
135916
- function _classCallCheck(instance2, Constructor) {
135917
- if (!(instance2 instanceof Constructor)) {
136179
+ function _classCallCheck(a8, n10) {
136180
+ if (!(a8 instanceof n10))
135918
136181
  throw new TypeError("Cannot call a class as a function");
135919
- }
135920
136182
  }
135921
- function _defineProperties(target, props) {
135922
- for (var i8 = 0; i8 < props.length; i8++) {
135923
- var descriptor = props[i8];
135924
- descriptor.enumerable = descriptor.enumerable || false;
135925
- descriptor.configurable = true;
135926
- if ("value" in descriptor)
135927
- descriptor.writable = true;
135928
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
136183
+ function _defineProperties(e12, r10) {
136184
+ for (var t9 = 0; t9 < r10.length; t9++) {
136185
+ var o9 = r10[t9];
136186
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
135929
136187
  }
135930
136188
  }
135931
- function _createClass(Constructor, protoProps, staticProps) {
135932
- if (protoProps)
135933
- _defineProperties(Constructor.prototype, protoProps);
135934
- if (staticProps)
135935
- _defineProperties(Constructor, staticProps);
135936
- Object.defineProperty(Constructor, "prototype", { writable: false });
135937
- return Constructor;
136189
+ function _createClass(e12, r10, t9) {
136190
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
135938
136191
  }
135939
- function _toPropertyKey(arg) {
135940
- var key2 = _toPrimitive(arg, "string");
135941
- return _typeof(key2) === "symbol" ? key2 : String(key2);
136192
+ function _toPropertyKey(t9) {
136193
+ var i8 = _toPrimitive(t9, "string");
136194
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
135942
136195
  }
135943
- function _toPrimitive(input, hint) {
135944
- if (_typeof(input) !== "object" || input === null)
135945
- return input;
135946
- var prim = input[Symbol.toPrimitive];
135947
- if (prim !== void 0) {
135948
- var res = prim.call(input, hint || "default");
135949
- if (_typeof(res) !== "object")
135950
- return res;
136196
+ function _toPrimitive(t9, r10) {
136197
+ if ("object" != _typeof(t9) || !t9)
136198
+ return t9;
136199
+ var e12 = t9[Symbol.toPrimitive];
136200
+ if (void 0 !== e12) {
136201
+ var i8 = e12.call(t9, r10 || "default");
136202
+ if ("object" != _typeof(i8))
136203
+ return i8;
135951
136204
  throw new TypeError("@@toPrimitive must return a primitive value.");
135952
136205
  }
135953
- return (hint === "string" ? String : Number)(input);
136206
+ return ("string" === r10 ? String : Number)(t9);
135954
136207
  }
135955
- module2.exports = /* @__PURE__ */ function() {
135956
- function Profiler(logger19) {
135957
- _classCallCheck(this, Profiler);
135958
- if (!logger19) {
135959
- throw new Error("Logger is required for profiling.");
136208
+ var Profiler = /* @__PURE__ */ function() {
136209
+ function Profiler2(logger19) {
136210
+ _classCallCheck(this, Profiler2);
136211
+ var Logger2 = require_logger();
136212
+ if (_typeof(logger19) !== "object" || Array.isArray(logger19) || !(logger19 instanceof Logger2)) {
136213
+ throw new Error("Logger is required for profiling");
136214
+ } else {
136215
+ this.logger = logger19;
136216
+ this.start = Date.now();
135960
136217
  }
135961
- this.logger = logger19;
135962
- this.start = Date.now();
135963
136218
  }
135964
- _createClass(Profiler, [{
136219
+ return _createClass(Profiler2, [{
135965
136220
  key: "done",
135966
136221
  value: function done() {
135967
136222
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -135977,8 +136232,8 @@ var require_profiler = __commonJS({
135977
136232
  return this.logger.write(info);
135978
136233
  }
135979
136234
  }]);
135980
- return Profiler;
135981
136235
  }();
136236
+ module2.exports = Profiler;
135982
136237
  }
135983
136238
  });
135984
136239
 
@@ -136044,125 +136299,85 @@ var require_logger = __commonJS({
136044
136299
  init_dirname();
136045
136300
  init_buffer2();
136046
136301
  init_process2();
136047
- function _defineProperty2(obj, key2, value) {
136048
- key2 = _toPropertyKey(key2);
136049
- if (key2 in obj) {
136050
- Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
136051
- } else {
136052
- obj[key2] = value;
136053
- }
136054
- return obj;
136302
+ function _defineProperty2(e12, r10, t9) {
136303
+ return (r10 = _toPropertyKey(r10)) in e12 ? Object.defineProperty(e12, r10, { value: t9, enumerable: true, configurable: true, writable: true }) : e12[r10] = t9, e12;
136055
136304
  }
136056
- function _typeof(obj) {
136305
+ function _typeof(o9) {
136057
136306
  "@babel/helpers - typeof";
136058
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
136059
- return typeof obj2;
136060
- } : function(obj2) {
136061
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
136062
- }, _typeof(obj);
136307
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
136308
+ return typeof o10;
136309
+ } : function(o10) {
136310
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
136311
+ }, _typeof(o9);
136063
136312
  }
136064
- function _classCallCheck(instance2, Constructor) {
136065
- if (!(instance2 instanceof Constructor)) {
136313
+ function _classCallCheck(a8, n10) {
136314
+ if (!(a8 instanceof n10))
136066
136315
  throw new TypeError("Cannot call a class as a function");
136067
- }
136068
136316
  }
136069
- function _defineProperties(target, props) {
136070
- for (var i8 = 0; i8 < props.length; i8++) {
136071
- var descriptor = props[i8];
136072
- descriptor.enumerable = descriptor.enumerable || false;
136073
- descriptor.configurable = true;
136074
- if ("value" in descriptor)
136075
- descriptor.writable = true;
136076
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
136317
+ function _defineProperties(e12, r10) {
136318
+ for (var t9 = 0; t9 < r10.length; t9++) {
136319
+ var o9 = r10[t9];
136320
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
136077
136321
  }
136078
136322
  }
136079
- function _createClass(Constructor, protoProps, staticProps) {
136080
- if (protoProps)
136081
- _defineProperties(Constructor.prototype, protoProps);
136082
- if (staticProps)
136083
- _defineProperties(Constructor, staticProps);
136084
- Object.defineProperty(Constructor, "prototype", { writable: false });
136085
- return Constructor;
136323
+ function _createClass(e12, r10, t9) {
136324
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
136086
136325
  }
136087
- function _toPropertyKey(arg) {
136088
- var key2 = _toPrimitive(arg, "string");
136089
- return _typeof(key2) === "symbol" ? key2 : String(key2);
136326
+ function _toPropertyKey(t9) {
136327
+ var i8 = _toPrimitive(t9, "string");
136328
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
136090
136329
  }
136091
- function _toPrimitive(input, hint) {
136092
- if (_typeof(input) !== "object" || input === null)
136093
- return input;
136094
- var prim = input[Symbol.toPrimitive];
136095
- if (prim !== void 0) {
136096
- var res = prim.call(input, hint || "default");
136097
- if (_typeof(res) !== "object")
136098
- return res;
136330
+ function _toPrimitive(t9, r10) {
136331
+ if ("object" != _typeof(t9) || !t9)
136332
+ return t9;
136333
+ var e12 = t9[Symbol.toPrimitive];
136334
+ if (void 0 !== e12) {
136335
+ var i8 = e12.call(t9, r10 || "default");
136336
+ if ("object" != _typeof(i8))
136337
+ return i8;
136099
136338
  throw new TypeError("@@toPrimitive must return a primitive value.");
136100
136339
  }
136101
- return (hint === "string" ? String : Number)(input);
136102
- }
136103
- function _inherits(subClass, superClass) {
136104
- if (typeof superClass !== "function" && superClass !== null) {
136105
- throw new TypeError("Super expression must either be null or a function");
136106
- }
136107
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
136108
- Object.defineProperty(subClass, "prototype", { writable: false });
136109
- if (superClass)
136110
- _setPrototypeOf(subClass, superClass);
136111
- }
136112
- function _setPrototypeOf(o9, p8) {
136113
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
136114
- o10.__proto__ = p9;
136115
- return o10;
136116
- };
136117
- return _setPrototypeOf(o9, p8);
136340
+ return ("string" === r10 ? String : Number)(t9);
136118
136341
  }
136119
- function _createSuper(Derived) {
136120
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
136121
- return function _createSuperInternal() {
136122
- var Super = _getPrototypeOf(Derived), result;
136123
- if (hasNativeReflectConstruct) {
136124
- var NewTarget = _getPrototypeOf(this).constructor;
136125
- result = Reflect.construct(Super, arguments, NewTarget);
136126
- } else {
136127
- result = Super.apply(this, arguments);
136128
- }
136129
- return _possibleConstructorReturn(this, result);
136130
- };
136342
+ function _callSuper(t9, o9, e12) {
136343
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
136131
136344
  }
136132
- function _possibleConstructorReturn(self2, call) {
136133
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
136134
- return call;
136135
- } else if (call !== void 0) {
136345
+ function _possibleConstructorReturn(t9, e12) {
136346
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
136347
+ return e12;
136348
+ if (void 0 !== e12)
136136
136349
  throw new TypeError("Derived constructors may only return object or undefined");
136137
- }
136138
- return _assertThisInitialized(self2);
136350
+ return _assertThisInitialized(t9);
136139
136351
  }
136140
- function _assertThisInitialized(self2) {
136141
- if (self2 === void 0) {
136352
+ function _assertThisInitialized(e12) {
136353
+ if (void 0 === e12)
136142
136354
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
136143
- }
136144
- return self2;
136355
+ return e12;
136145
136356
  }
136146
136357
  function _isNativeReflectConstruct() {
136147
- if (typeof Reflect === "undefined" || !Reflect.construct)
136148
- return false;
136149
- if (Reflect.construct.sham)
136150
- return false;
136151
- if (typeof Proxy === "function")
136152
- return true;
136153
136358
  try {
136154
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
136359
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
136155
136360
  }));
136156
- return true;
136157
- } catch (e12) {
136158
- return false;
136361
+ } catch (t10) {
136159
136362
  }
136363
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
136364
+ return !!t9;
136365
+ })();
136160
136366
  }
136161
- function _getPrototypeOf(o9) {
136162
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
136163
- return o10.__proto__ || Object.getPrototypeOf(o10);
136164
- };
136165
- return _getPrototypeOf(o9);
136367
+ function _getPrototypeOf(t9) {
136368
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
136369
+ return t10.__proto__ || Object.getPrototypeOf(t10);
136370
+ }, _getPrototypeOf(t9);
136371
+ }
136372
+ function _inherits(t9, e12) {
136373
+ if ("function" != typeof e12 && null !== e12)
136374
+ throw new TypeError("Super expression must either be null or a function");
136375
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
136376
+ }
136377
+ function _setPrototypeOf(t9, e12) {
136378
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
136379
+ return t10.__proto__ = e13, t10;
136380
+ }, _setPrototypeOf(t9, e12);
136166
136381
  }
136167
136382
  var _require = require_readable_browser();
136168
136383
  var Stream2 = _require.Stream;
@@ -136181,18 +136396,17 @@ var require_logger = __commonJS({
136181
136396
  var config2 = require_config2();
136182
136397
  var formatRegExp = /%[scdjifoO%]/g;
136183
136398
  var Logger2 = /* @__PURE__ */ function(_Transform) {
136184
- _inherits(Logger3, _Transform);
136185
- var _super = _createSuper(Logger3);
136186
136399
  function Logger3(options) {
136187
136400
  var _this;
136188
136401
  _classCallCheck(this, Logger3);
136189
- _this = _super.call(this, {
136402
+ _this = _callSuper(this, Logger3, [{
136190
136403
  objectMode: true
136191
- });
136404
+ }]);
136192
136405
  _this.configure(options);
136193
136406
  return _this;
136194
136407
  }
136195
- _createClass(Logger3, [{
136408
+ _inherits(Logger3, _Transform);
136409
+ return _createClass(Logger3, [{
136196
136410
  key: "child",
136197
136411
  value: function child(defaultRequestMetadata) {
136198
136412
  var logger19 = this;
@@ -136313,7 +136527,6 @@ var require_logger = __commonJS({
136313
136527
  }, {
136314
136528
  key: "log",
136315
136529
  value: function log3(level, msg) {
136316
- var _Object$assign2;
136317
136530
  for (var _len = arguments.length, splat = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
136318
136531
  splat[_key - 2] = arguments[_key];
136319
136532
  }
@@ -136324,14 +136537,13 @@ var require_logger = __commonJS({
136324
136537
  return this;
136325
136538
  }
136326
136539
  if (arguments.length === 2) {
136327
- var _msg;
136328
136540
  if (msg && _typeof(msg) === "object") {
136329
136541
  msg[LEVEL] = msg.level = level;
136330
136542
  this._addDefaultMeta(msg);
136331
136543
  this.write(msg);
136332
136544
  return this;
136333
136545
  }
136334
- msg = (_msg = {}, _defineProperty2(_msg, LEVEL, level), _defineProperty2(_msg, "level", level), _defineProperty2(_msg, "message", msg), _msg);
136546
+ msg = _defineProperty2(_defineProperty2(_defineProperty2({}, LEVEL, level), "level", level), "message", msg);
136335
136547
  this._addDefaultMeta(msg);
136336
136548
  this.write(msg);
136337
136549
  return this;
@@ -136340,8 +136552,7 @@ var require_logger = __commonJS({
136340
136552
  if (_typeof(meta) === "object" && meta !== null) {
136341
136553
  var tokens = msg && msg.match && msg.match(formatRegExp);
136342
136554
  if (!tokens) {
136343
- var _Object$assign;
136344
- var info = Object.assign({}, this.defaultMeta, meta, (_Object$assign = {}, _defineProperty2(_Object$assign, LEVEL, level), _defineProperty2(_Object$assign, SPLAT, splat), _defineProperty2(_Object$assign, "level", level), _defineProperty2(_Object$assign, "message", msg), _Object$assign));
136555
+ var info = Object.assign({}, this.defaultMeta, meta, _defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2({}, LEVEL, level), SPLAT, splat), "level", level), "message", msg));
136345
136556
  if (meta.message)
136346
136557
  info.message = "".concat(info.message, " ").concat(meta.message);
136347
136558
  if (meta.stack)
@@ -136350,7 +136561,7 @@ var require_logger = __commonJS({
136350
136561
  return this;
136351
136562
  }
136352
136563
  }
136353
- this.write(Object.assign({}, this.defaultMeta, (_Object$assign2 = {}, _defineProperty2(_Object$assign2, LEVEL, level), _defineProperty2(_Object$assign2, SPLAT, splat), _defineProperty2(_Object$assign2, "level", level), _defineProperty2(_Object$assign2, "message", msg), _Object$assign2)));
136564
+ this.write(Object.assign({}, this.defaultMeta, _defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2({}, LEVEL, level), SPLAT, splat), "level", level), "message", msg)));
136354
136565
  return this;
136355
136566
  }
136356
136567
  /**
@@ -136675,7 +136886,6 @@ var require_logger = __commonJS({
136675
136886
  }
136676
136887
  }
136677
136888
  }]);
136678
- return Logger3;
136679
136889
  }(Transform2);
136680
136890
  function getLevelValue(levels, level) {
136681
136891
  var value = levels[level];
@@ -136703,116 +136913,82 @@ var require_create_logger = __commonJS({
136703
136913
  init_dirname();
136704
136914
  init_buffer2();
136705
136915
  init_process2();
136706
- function _typeof(obj) {
136916
+ function _typeof(o9) {
136707
136917
  "@babel/helpers - typeof";
136708
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
136709
- return typeof obj2;
136710
- } : function(obj2) {
136711
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
136712
- }, _typeof(obj);
136918
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
136919
+ return typeof o10;
136920
+ } : function(o10) {
136921
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
136922
+ }, _typeof(o9);
136713
136923
  }
136714
- function _defineProperties(target, props) {
136715
- for (var i8 = 0; i8 < props.length; i8++) {
136716
- var descriptor = props[i8];
136717
- descriptor.enumerable = descriptor.enumerable || false;
136718
- descriptor.configurable = true;
136719
- if ("value" in descriptor)
136720
- descriptor.writable = true;
136721
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
136924
+ function _defineProperties(e12, r10) {
136925
+ for (var t9 = 0; t9 < r10.length; t9++) {
136926
+ var o9 = r10[t9];
136927
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
136722
136928
  }
136723
136929
  }
136724
- function _createClass(Constructor, protoProps, staticProps) {
136725
- if (protoProps)
136726
- _defineProperties(Constructor.prototype, protoProps);
136727
- if (staticProps)
136728
- _defineProperties(Constructor, staticProps);
136729
- Object.defineProperty(Constructor, "prototype", { writable: false });
136730
- return Constructor;
136930
+ function _createClass(e12, r10, t9) {
136931
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
136731
136932
  }
136732
- function _toPropertyKey(arg) {
136733
- var key2 = _toPrimitive(arg, "string");
136734
- return _typeof(key2) === "symbol" ? key2 : String(key2);
136933
+ function _toPropertyKey(t9) {
136934
+ var i8 = _toPrimitive(t9, "string");
136935
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
136735
136936
  }
136736
- function _toPrimitive(input, hint) {
136737
- if (_typeof(input) !== "object" || input === null)
136738
- return input;
136739
- var prim = input[Symbol.toPrimitive];
136740
- if (prim !== void 0) {
136741
- var res = prim.call(input, hint || "default");
136742
- if (_typeof(res) !== "object")
136743
- return res;
136937
+ function _toPrimitive(t9, r10) {
136938
+ if ("object" != _typeof(t9) || !t9)
136939
+ return t9;
136940
+ var e12 = t9[Symbol.toPrimitive];
136941
+ if (void 0 !== e12) {
136942
+ var i8 = e12.call(t9, r10 || "default");
136943
+ if ("object" != _typeof(i8))
136944
+ return i8;
136744
136945
  throw new TypeError("@@toPrimitive must return a primitive value.");
136745
136946
  }
136746
- return (hint === "string" ? String : Number)(input);
136947
+ return ("string" === r10 ? String : Number)(t9);
136747
136948
  }
136748
- function _classCallCheck(instance2, Constructor) {
136749
- if (!(instance2 instanceof Constructor)) {
136949
+ function _classCallCheck(a8, n10) {
136950
+ if (!(a8 instanceof n10))
136750
136951
  throw new TypeError("Cannot call a class as a function");
136751
- }
136752
- }
136753
- function _inherits(subClass, superClass) {
136754
- if (typeof superClass !== "function" && superClass !== null) {
136755
- throw new TypeError("Super expression must either be null or a function");
136756
- }
136757
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
136758
- Object.defineProperty(subClass, "prototype", { writable: false });
136759
- if (superClass)
136760
- _setPrototypeOf(subClass, superClass);
136761
- }
136762
- function _setPrototypeOf(o9, p8) {
136763
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p9) {
136764
- o10.__proto__ = p9;
136765
- return o10;
136766
- };
136767
- return _setPrototypeOf(o9, p8);
136768
136952
  }
136769
- function _createSuper(Derived) {
136770
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
136771
- return function _createSuperInternal() {
136772
- var Super = _getPrototypeOf(Derived), result;
136773
- if (hasNativeReflectConstruct) {
136774
- var NewTarget = _getPrototypeOf(this).constructor;
136775
- result = Reflect.construct(Super, arguments, NewTarget);
136776
- } else {
136777
- result = Super.apply(this, arguments);
136778
- }
136779
- return _possibleConstructorReturn(this, result);
136780
- };
136953
+ function _callSuper(t9, o9, e12) {
136954
+ return o9 = _getPrototypeOf(o9), _possibleConstructorReturn(t9, _isNativeReflectConstruct() ? Reflect.construct(o9, e12 || [], _getPrototypeOf(t9).constructor) : o9.apply(t9, e12));
136781
136955
  }
136782
- function _possibleConstructorReturn(self2, call) {
136783
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
136784
- return call;
136785
- } else if (call !== void 0) {
136956
+ function _possibleConstructorReturn(t9, e12) {
136957
+ if (e12 && ("object" == _typeof(e12) || "function" == typeof e12))
136958
+ return e12;
136959
+ if (void 0 !== e12)
136786
136960
  throw new TypeError("Derived constructors may only return object or undefined");
136787
- }
136788
- return _assertThisInitialized(self2);
136961
+ return _assertThisInitialized(t9);
136789
136962
  }
136790
- function _assertThisInitialized(self2) {
136791
- if (self2 === void 0) {
136963
+ function _assertThisInitialized(e12) {
136964
+ if (void 0 === e12)
136792
136965
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
136793
- }
136794
- return self2;
136966
+ return e12;
136795
136967
  }
136796
136968
  function _isNativeReflectConstruct() {
136797
- if (typeof Reflect === "undefined" || !Reflect.construct)
136798
- return false;
136799
- if (Reflect.construct.sham)
136800
- return false;
136801
- if (typeof Proxy === "function")
136802
- return true;
136803
136969
  try {
136804
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
136970
+ var t9 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
136805
136971
  }));
136806
- return true;
136807
- } catch (e12) {
136808
- return false;
136972
+ } catch (t10) {
136809
136973
  }
136974
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
136975
+ return !!t9;
136976
+ })();
136810
136977
  }
136811
- function _getPrototypeOf(o9) {
136812
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
136813
- return o10.__proto__ || Object.getPrototypeOf(o10);
136814
- };
136815
- return _getPrototypeOf(o9);
136978
+ function _getPrototypeOf(t9) {
136979
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t10) {
136980
+ return t10.__proto__ || Object.getPrototypeOf(t10);
136981
+ }, _getPrototypeOf(t9);
136982
+ }
136983
+ function _inherits(t9, e12) {
136984
+ if ("function" != typeof e12 && null !== e12)
136985
+ throw new TypeError("Super expression must either be null or a function");
136986
+ t9.prototype = Object.create(e12 && e12.prototype, { constructor: { value: t9, writable: true, configurable: true } }), Object.defineProperty(t9, "prototype", { writable: false }), e12 && _setPrototypeOf(t9, e12);
136987
+ }
136988
+ function _setPrototypeOf(t9, e12) {
136989
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t10, e13) {
136990
+ return t10.__proto__ = e13, t10;
136991
+ }, _setPrototypeOf(t9, e12);
136816
136992
  }
136817
136993
  var _require = require_triple_beam();
136818
136994
  var LEVEL = _require.LEVEL;
@@ -136826,12 +137002,11 @@ var require_create_logger = __commonJS({
136826
137002
  var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
136827
137003
  opts.levels = opts.levels || config2.npm.levels;
136828
137004
  var DerivedLogger = /* @__PURE__ */ function(_Logger) {
136829
- _inherits(DerivedLogger2, _Logger);
136830
- var _super = _createSuper(DerivedLogger2);
136831
137005
  function DerivedLogger2(options) {
136832
137006
  _classCallCheck(this, DerivedLogger2);
136833
- return _super.call(this, options);
137007
+ return _callSuper(this, DerivedLogger2, [options]);
136834
137008
  }
137009
+ _inherits(DerivedLogger2, _Logger);
136835
137010
  return _createClass(DerivedLogger2);
136836
137011
  }(Logger2);
136837
137012
  var logger19 = new DerivedLogger(opts);
@@ -136878,52 +137053,42 @@ var require_container = __commonJS({
136878
137053
  init_dirname();
136879
137054
  init_buffer2();
136880
137055
  init_process2();
136881
- function _typeof(obj) {
137056
+ function _typeof(o9) {
136882
137057
  "@babel/helpers - typeof";
136883
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
136884
- return typeof obj2;
136885
- } : function(obj2) {
136886
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
136887
- }, _typeof(obj);
137058
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) {
137059
+ return typeof o10;
137060
+ } : function(o10) {
137061
+ return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10;
137062
+ }, _typeof(o9);
136888
137063
  }
136889
- function _classCallCheck(instance2, Constructor) {
136890
- if (!(instance2 instanceof Constructor)) {
137064
+ function _classCallCheck(a8, n10) {
137065
+ if (!(a8 instanceof n10))
136891
137066
  throw new TypeError("Cannot call a class as a function");
136892
- }
136893
137067
  }
136894
- function _defineProperties(target, props) {
136895
- for (var i8 = 0; i8 < props.length; i8++) {
136896
- var descriptor = props[i8];
136897
- descriptor.enumerable = descriptor.enumerable || false;
136898
- descriptor.configurable = true;
136899
- if ("value" in descriptor)
136900
- descriptor.writable = true;
136901
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
137068
+ function _defineProperties(e12, r10) {
137069
+ for (var t9 = 0; t9 < r10.length; t9++) {
137070
+ var o9 = r10[t9];
137071
+ o9.enumerable = o9.enumerable || false, o9.configurable = true, "value" in o9 && (o9.writable = true), Object.defineProperty(e12, _toPropertyKey(o9.key), o9);
136902
137072
  }
136903
137073
  }
136904
- function _createClass(Constructor, protoProps, staticProps) {
136905
- if (protoProps)
136906
- _defineProperties(Constructor.prototype, protoProps);
136907
- if (staticProps)
136908
- _defineProperties(Constructor, staticProps);
136909
- Object.defineProperty(Constructor, "prototype", { writable: false });
136910
- return Constructor;
137074
+ function _createClass(e12, r10, t9) {
137075
+ return r10 && _defineProperties(e12.prototype, r10), t9 && _defineProperties(e12, t9), Object.defineProperty(e12, "prototype", { writable: false }), e12;
136911
137076
  }
136912
- function _toPropertyKey(arg) {
136913
- var key2 = _toPrimitive(arg, "string");
136914
- return _typeof(key2) === "symbol" ? key2 : String(key2);
137077
+ function _toPropertyKey(t9) {
137078
+ var i8 = _toPrimitive(t9, "string");
137079
+ return "symbol" == _typeof(i8) ? i8 : i8 + "";
136915
137080
  }
136916
- function _toPrimitive(input, hint) {
136917
- if (_typeof(input) !== "object" || input === null)
136918
- return input;
136919
- var prim = input[Symbol.toPrimitive];
136920
- if (prim !== void 0) {
136921
- var res = prim.call(input, hint || "default");
136922
- if (_typeof(res) !== "object")
136923
- return res;
137081
+ function _toPrimitive(t9, r10) {
137082
+ if ("object" != _typeof(t9) || !t9)
137083
+ return t9;
137084
+ var e12 = t9[Symbol.toPrimitive];
137085
+ if (void 0 !== e12) {
137086
+ var i8 = e12.call(t9, r10 || "default");
137087
+ if ("object" != _typeof(i8))
137088
+ return i8;
136924
137089
  throw new TypeError("@@toPrimitive must return a primitive value.");
136925
137090
  }
136926
- return (hint === "string" ? String : Number)(input);
137091
+ return ("string" === r10 ? String : Number)(t9);
136927
137092
  }
136928
137093
  var createLogger2 = require_create_logger();
136929
137094
  module2.exports = /* @__PURE__ */ function() {
@@ -136933,7 +137098,7 @@ var require_container = __commonJS({
136933
137098
  this.loggers = /* @__PURE__ */ new Map();
136934
137099
  this.options = options;
136935
137100
  }
136936
- _createClass(Container, [{
137101
+ return _createClass(Container, [{
136937
137102
  key: "add",
136938
137103
  value: function add5(id3, options) {
136939
137104
  var _this = this;
@@ -137022,7 +137187,6 @@ var require_container = __commonJS({
137022
137187
  this.loggers["delete"](id3);
137023
137188
  }
137024
137189
  }]);
137025
- return Container;
137026
137190
  }();
137027
137191
  }
137028
137192
  });
@@ -137068,6 +137232,11 @@ var require_winston = __commonJS({
137068
137232
  return defaultLogger.exceptions;
137069
137233
  }
137070
137234
  });
137235
+ Object.defineProperty(exports14, "rejections", {
137236
+ get: function get3() {
137237
+ return defaultLogger.rejections;
137238
+ }
137239
+ });
137071
137240
  ["exitOnError"].forEach(function(prop) {
137072
137241
  Object.defineProperty(exports14, prop, {
137073
137242
  get: function get3() {
@@ -176208,39 +176377,73 @@ var import_winston = __toESM(require_winston(), 1);
176208
176377
  init_dirname();
176209
176378
  init_buffer2();
176210
176379
  init_process2();
176211
- var version22 = "1.9.1-alpha.1";
176380
+ var version22 = "1.10.0-alpha.1";
176212
176381
 
176213
176382
  // src/common/logger.ts
176214
- var TurboWinstonLogger = class {
176383
+ var TurboWinstonLogger = class _TurboWinstonLogger {
176215
176384
  constructor({
176216
176385
  level = "info",
176217
176386
  logFormat = "simple"
176218
176387
  } = {}) {
176219
- this.logger = (0, import_winston.createLogger)({
176220
- level,
176221
- defaultMeta: { client: "turbo-sdk", version: version22 },
176222
- silent: level === "none",
176223
- format: getLogFormat(logFormat),
176224
- transports: [new import_winston.transports.Console()]
176225
- });
176388
+ this.silent = false;
176389
+ if (level === "none") {
176390
+ this.silent = true;
176391
+ }
176392
+ if (typeof window !== "undefined") {
176393
+ this.logger = console;
176394
+ } else {
176395
+ this.logger = (0, import_winston.createLogger)({
176396
+ level,
176397
+ silent: this.silent,
176398
+ defaultMeta: {
176399
+ name: "turbo-sdk",
176400
+ version: version22
176401
+ },
176402
+ format: import_winston.format.combine(import_winston.format.timestamp(), import_winston.format.json()),
176403
+ transports: [
176404
+ new import_winston.transports.Console({
176405
+ format: getLogFormat(logFormat)
176406
+ })
176407
+ ]
176408
+ });
176409
+ }
176410
+ }
176411
+ static {
176412
+ this.default = new _TurboWinstonLogger();
176226
176413
  }
176227
176414
  info(message, ...args) {
176415
+ if (this.silent)
176416
+ return;
176228
176417
  this.logger.info(message, ...args);
176229
176418
  }
176230
176419
  warn(message, ...args) {
176420
+ if (this.silent)
176421
+ return;
176231
176422
  this.logger.warn(message, ...args);
176232
176423
  }
176233
176424
  error(message, ...args) {
176425
+ if (this.silent)
176426
+ return;
176234
176427
  this.logger.error(message, ...args);
176235
176428
  }
176236
176429
  debug(message, ...args) {
176430
+ if (this.silent)
176431
+ return;
176237
176432
  this.logger.debug(message, ...args);
176238
176433
  }
176239
176434
  setLogLevel(level) {
176240
- this.logger.level = level;
176435
+ this.silent = level === "none";
176436
+ if ("silent" in this.logger) {
176437
+ this.logger.silent = level === "none";
176438
+ }
176439
+ if ("level" in this.logger) {
176440
+ this.logger.level = level;
176441
+ }
176241
176442
  }
176242
176443
  setLogFormat(logFormat) {
176243
- this.logger.format = getLogFormat(logFormat);
176444
+ if ("format" in this.logger) {
176445
+ this.logger.format = getLogFormat(logFormat);
176446
+ }
176244
176447
  }
176245
176448
  };
176246
176449
  function getLogFormat(logFormat) {
@@ -176264,7 +176467,7 @@ var defaultRequestHeaders = {
176264
176467
  "x-turbo-source-identifier": "turbo-sdk"
176265
176468
  };
176266
176469
  var createAxiosInstance = ({
176267
- logger: logger19 = new TurboWinstonLogger(),
176470
+ logger: logger19 = TurboWinstonLogger.default,
176268
176471
  axiosConfig = {},
176269
176472
  retryConfig = {
176270
176473
  retryDelay: axiosRetry.exponentialDelay,
@@ -176383,7 +176586,7 @@ var TurboUnauthenticatedUploadService = class {
176383
176586
  constructor({
176384
176587
  url = defaultUploadServiceURL,
176385
176588
  retryConfig,
176386
- logger: logger19 = new TurboWinstonLogger(),
176589
+ logger: logger19 = TurboWinstonLogger.default,
176387
176590
  token = "arweave"
176388
176591
  }) {
176389
176592
  this.token = token;
@@ -178254,7 +178457,7 @@ var TurboUnauthenticatedPaymentService = class {
178254
178457
  constructor({
178255
178458
  url = defaultPaymentServiceURL,
178256
178459
  retryConfig,
178257
- logger: logger19 = new TurboWinstonLogger(),
178460
+ logger: logger19 = TurboWinstonLogger.default,
178258
178461
  token = "arweave"
178259
178462
  }) {
178260
178463
  this.logger = logger19;
@@ -178379,7 +178582,7 @@ var TurboAuthenticatedPaymentService = class extends TurboUnauthenticatedPayment
178379
178582
  url = defaultPaymentServiceURL,
178380
178583
  retryConfig,
178381
178584
  signer,
178382
- logger: logger19 = new TurboWinstonLogger(),
178585
+ logger: logger19 = TurboWinstonLogger.default,
178383
178586
  token = "arweave",
178384
178587
  tokenTools
178385
178588
  }) {
@@ -182530,7 +182733,7 @@ var ArweaveToken = class {
182530
182733
  arweave = arweave_default2.init({
182531
182734
  url: gatewayUrl
182532
182735
  }),
182533
- logger: logger19 = new TurboWinstonLogger(),
182736
+ logger: logger19 = TurboWinstonLogger.default,
182534
182737
  mintU = true,
182535
182738
  pollingOptions = {
182536
182739
  maxAttempts: 10,
@@ -182652,7 +182855,7 @@ var weiToTokenAmount = (wei) => wei;
182652
182855
  var ETHToTokenAmount = (eth) => new BigNumber2(eth).times(1e18).valueOf();
182653
182856
  var EthereumToken = class {
182654
182857
  constructor({
182655
- logger: logger19 = new TurboWinstonLogger(),
182858
+ logger: logger19 = TurboWinstonLogger.default,
182656
182859
  gatewayUrl = "https://cloudflare-eth.com/",
182657
182860
  pollingOptions = {
182658
182861
  maxAttempts: 10,
@@ -193274,7 +193477,7 @@ var lamportToTokenAmount = (winston2) => winston2;
193274
193477
  var SOLToTokenAmount = (sol) => new BigNumber2(sol).times(1e9).valueOf();
193275
193478
  var SolanaToken = class {
193276
193479
  constructor({
193277
- logger: logger19 = new TurboWinstonLogger(),
193480
+ logger: logger19 = TurboWinstonLogger.default,
193278
193481
  gatewayUrl = "https://api.mainnet-beta.solana.com",
193279
193482
  pollingOptions = {
193280
193483
  maxAttempts: 10,
@@ -193517,11 +193720,13 @@ var TurboAuthenticatedClient = class extends TurboUnauthenticatedClient {
193517
193720
  // src/common/factory.ts
193518
193721
  var TurboBaseFactory = class {
193519
193722
  static {
193520
- this.logger = new TurboWinstonLogger();
193723
+ this.logger = TurboWinstonLogger.default;
193521
193724
  }
193725
+ /* @deprecated - use TurboWinstonLogger directly */
193522
193726
  static setLogLevel(level) {
193523
193727
  this.logger.setLogLevel(level);
193524
193728
  }
193729
+ /* @deprecated - use TurboWinstonLogger directly */
193525
193730
  static setLogFormat(format6) {
193526
193731
  this.logger.setLogFormat(format6);
193527
193732
  }