@putkoff/abstract-logger 0.0.59 → 0.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1595,11 +1595,11 @@ function requireAlign () {
1595
1595
  /* eslint no-undefined: 0 */
1596
1596
 
1597
1597
  var errors$1;
1598
- var hasRequiredErrors;
1598
+ var hasRequiredErrors$1;
1599
1599
 
1600
- function requireErrors () {
1601
- if (hasRequiredErrors) return errors$1;
1602
- hasRequiredErrors = 1;
1600
+ function requireErrors$1 () {
1601
+ if (hasRequiredErrors$1) return errors$1;
1602
+ hasRequiredErrors$1 = 1;
1603
1603
 
1604
1604
  const format = format$2;
1605
1605
  const { LEVEL, MESSAGE } = tripleBeam;
@@ -3649,7 +3649,7 @@ function exposeFormat(name, requireFormat) {
3649
3649
  // Setup all transports as lazy-loaded getters.
3650
3650
  //
3651
3651
  exposeFormat('align', function () { return requireAlign(); });
3652
- exposeFormat('errors', function () { return requireErrors(); });
3652
+ exposeFormat('errors', function () { return requireErrors$1(); });
3653
3653
  exposeFormat('cli', function () { return requireCli(); });
3654
3654
  exposeFormat('combine', function () { return requireCombine(); });
3655
3655
  exposeFormat('colorize', function () { return requireColorize(); });
@@ -3726,246 +3726,288 @@ var winstonTransport = {exports: {}};
3726
3726
 
3727
3727
  var modern = {exports: {}};
3728
3728
 
3729
- /**
3730
- * For Node.js, simply re-export the core `util.deprecate` function.
3731
- */
3729
+ var node$1;
3730
+ var hasRequiredNode;
3732
3731
 
3733
- var node$1 = require$$0$2.deprecate;
3734
-
3735
- var stream$1 = require$$0$3;
3736
-
3737
- // undocumented cb() API, needed for core, not for public API
3738
- function destroy(err, cb) {
3739
- var _this = this;
3740
- var readableDestroyed = this._readableState && this._readableState.destroyed;
3741
- var writableDestroyed = this._writableState && this._writableState.destroyed;
3742
- if (readableDestroyed || writableDestroyed) {
3743
- if (cb) {
3744
- cb(err);
3745
- } else if (err) {
3746
- if (!this._writableState) {
3747
- process.nextTick(emitErrorNT, this, err);
3748
- } else if (!this._writableState.errorEmitted) {
3749
- this._writableState.errorEmitted = true;
3750
- process.nextTick(emitErrorNT, this, err);
3751
- }
3752
- }
3753
- return this;
3754
- }
3732
+ function requireNode () {
3733
+ if (hasRequiredNode) return node$1;
3734
+ hasRequiredNode = 1;
3735
+ /**
3736
+ * For Node.js, simply re-export the core `util.deprecate` function.
3737
+ */
3755
3738
 
3756
- // we set destroyed to true before firing error callbacks in order
3757
- // to make it re-entrance safe in case destroy() is called within callbacks
3739
+ node$1 = require$$0$2.deprecate;
3740
+ return node$1;
3741
+ }
3758
3742
 
3759
- if (this._readableState) {
3760
- this._readableState.destroyed = true;
3761
- }
3743
+ var stream$1;
3744
+ var hasRequiredStream$1;
3762
3745
 
3763
- // if this is a duplex stream mark the writable part as destroyed as well
3764
- if (this._writableState) {
3765
- this._writableState.destroyed = true;
3766
- }
3767
- this._destroy(err || null, function (err) {
3768
- if (!cb && err) {
3769
- if (!_this._writableState) {
3770
- process.nextTick(emitErrorAndCloseNT, _this, err);
3771
- } else if (!_this._writableState.errorEmitted) {
3772
- _this._writableState.errorEmitted = true;
3773
- process.nextTick(emitErrorAndCloseNT, _this, err);
3774
- } else {
3775
- process.nextTick(emitCloseNT, _this);
3776
- }
3777
- } else if (cb) {
3778
- process.nextTick(emitCloseNT, _this);
3779
- cb(err);
3780
- } else {
3781
- process.nextTick(emitCloseNT, _this);
3782
- }
3783
- });
3784
- return this;
3785
- }
3786
- function emitErrorAndCloseNT(self, err) {
3787
- emitErrorNT(self, err);
3788
- emitCloseNT(self);
3789
- }
3790
- function emitCloseNT(self) {
3791
- if (self._writableState && !self._writableState.emitClose) return;
3792
- if (self._readableState && !self._readableState.emitClose) return;
3793
- self.emit('close');
3794
- }
3795
- function undestroy() {
3796
- if (this._readableState) {
3797
- this._readableState.destroyed = false;
3798
- this._readableState.reading = false;
3799
- this._readableState.ended = false;
3800
- this._readableState.endEmitted = false;
3801
- }
3802
- if (this._writableState) {
3803
- this._writableState.destroyed = false;
3804
- this._writableState.ended = false;
3805
- this._writableState.ending = false;
3806
- this._writableState.finalCalled = false;
3807
- this._writableState.prefinished = false;
3808
- this._writableState.finished = false;
3809
- this._writableState.errorEmitted = false;
3810
- }
3811
- }
3812
- function emitErrorNT(self, err) {
3813
- self.emit('error', err);
3746
+ function requireStream$1 () {
3747
+ if (hasRequiredStream$1) return stream$1;
3748
+ hasRequiredStream$1 = 1;
3749
+ stream$1 = require$$0$3;
3750
+ return stream$1;
3814
3751
  }
3815
- function errorOrDestroy(stream, err) {
3816
- // We have tests that rely on errors being emitted
3817
- // in the same tick, so changing this is semver major.
3818
- // For now when you opt-in to autoDestroy we allow
3819
- // the error to be emitted nextTick. In a future
3820
- // semver major update we should change the default to this.
3821
-
3822
- var rState = stream._readableState;
3823
- var wState = stream._writableState;
3824
- if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
3752
+
3753
+ var destroy_1;
3754
+ var hasRequiredDestroy;
3755
+
3756
+ function requireDestroy () {
3757
+ if (hasRequiredDestroy) return destroy_1;
3758
+ hasRequiredDestroy = 1;
3759
+
3760
+ // undocumented cb() API, needed for core, not for public API
3761
+ function destroy(err, cb) {
3762
+ var _this = this;
3763
+ var readableDestroyed = this._readableState && this._readableState.destroyed;
3764
+ var writableDestroyed = this._writableState && this._writableState.destroyed;
3765
+ if (readableDestroyed || writableDestroyed) {
3766
+ if (cb) {
3767
+ cb(err);
3768
+ } else if (err) {
3769
+ if (!this._writableState) {
3770
+ process.nextTick(emitErrorNT, this, err);
3771
+ } else if (!this._writableState.errorEmitted) {
3772
+ this._writableState.errorEmitted = true;
3773
+ process.nextTick(emitErrorNT, this, err);
3774
+ }
3775
+ }
3776
+ return this;
3777
+ }
3778
+
3779
+ // we set destroyed to true before firing error callbacks in order
3780
+ // to make it re-entrance safe in case destroy() is called within callbacks
3781
+
3782
+ if (this._readableState) {
3783
+ this._readableState.destroyed = true;
3784
+ }
3785
+
3786
+ // if this is a duplex stream mark the writable part as destroyed as well
3787
+ if (this._writableState) {
3788
+ this._writableState.destroyed = true;
3789
+ }
3790
+ this._destroy(err || null, function (err) {
3791
+ if (!cb && err) {
3792
+ if (!_this._writableState) {
3793
+ process.nextTick(emitErrorAndCloseNT, _this, err);
3794
+ } else if (!_this._writableState.errorEmitted) {
3795
+ _this._writableState.errorEmitted = true;
3796
+ process.nextTick(emitErrorAndCloseNT, _this, err);
3797
+ } else {
3798
+ process.nextTick(emitCloseNT, _this);
3799
+ }
3800
+ } else if (cb) {
3801
+ process.nextTick(emitCloseNT, _this);
3802
+ cb(err);
3803
+ } else {
3804
+ process.nextTick(emitCloseNT, _this);
3805
+ }
3806
+ });
3807
+ return this;
3808
+ }
3809
+ function emitErrorAndCloseNT(self, err) {
3810
+ emitErrorNT(self, err);
3811
+ emitCloseNT(self);
3812
+ }
3813
+ function emitCloseNT(self) {
3814
+ if (self._writableState && !self._writableState.emitClose) return;
3815
+ if (self._readableState && !self._readableState.emitClose) return;
3816
+ self.emit('close');
3817
+ }
3818
+ function undestroy() {
3819
+ if (this._readableState) {
3820
+ this._readableState.destroyed = false;
3821
+ this._readableState.reading = false;
3822
+ this._readableState.ended = false;
3823
+ this._readableState.endEmitted = false;
3824
+ }
3825
+ if (this._writableState) {
3826
+ this._writableState.destroyed = false;
3827
+ this._writableState.ended = false;
3828
+ this._writableState.ending = false;
3829
+ this._writableState.finalCalled = false;
3830
+ this._writableState.prefinished = false;
3831
+ this._writableState.finished = false;
3832
+ this._writableState.errorEmitted = false;
3833
+ }
3834
+ }
3835
+ function emitErrorNT(self, err) {
3836
+ self.emit('error', err);
3837
+ }
3838
+ function errorOrDestroy(stream, err) {
3839
+ // We have tests that rely on errors being emitted
3840
+ // in the same tick, so changing this is semver major.
3841
+ // For now when you opt-in to autoDestroy we allow
3842
+ // the error to be emitted nextTick. In a future
3843
+ // semver major update we should change the default to this.
3844
+
3845
+ var rState = stream._readableState;
3846
+ var wState = stream._writableState;
3847
+ if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
3848
+ }
3849
+ destroy_1 = {
3850
+ destroy: destroy,
3851
+ undestroy: undestroy,
3852
+ errorOrDestroy: errorOrDestroy
3853
+ };
3854
+ return destroy_1;
3825
3855
  }
3826
- var destroy_1 = {
3827
- destroy: destroy,
3828
- undestroy: undestroy,
3829
- errorOrDestroy: errorOrDestroy
3830
- };
3831
3856
 
3832
3857
  var errors = {};
3833
3858
 
3834
- const codes = {};
3859
+ var hasRequiredErrors;
3835
3860
 
3836
- function createErrorType(code, message, Base) {
3837
- if (!Base) {
3838
- Base = Error;
3839
- }
3861
+ function requireErrors () {
3862
+ if (hasRequiredErrors) return errors;
3863
+ hasRequiredErrors = 1;
3840
3864
 
3841
- function getMessage (arg1, arg2, arg3) {
3842
- if (typeof message === 'string') {
3843
- return message
3844
- } else {
3845
- return message(arg1, arg2, arg3)
3846
- }
3847
- }
3865
+ const codes = {};
3848
3866
 
3849
- class NodeError extends Base {
3850
- constructor (arg1, arg2, arg3) {
3851
- super(getMessage(arg1, arg2, arg3));
3852
- }
3853
- }
3867
+ function createErrorType(code, message, Base) {
3868
+ if (!Base) {
3869
+ Base = Error;
3870
+ }
3854
3871
 
3855
- NodeError.prototype.name = Base.name;
3856
- NodeError.prototype.code = code;
3872
+ function getMessage (arg1, arg2, arg3) {
3873
+ if (typeof message === 'string') {
3874
+ return message
3875
+ } else {
3876
+ return message(arg1, arg2, arg3)
3877
+ }
3878
+ }
3857
3879
 
3858
- codes[code] = NodeError;
3859
- }
3880
+ class NodeError extends Base {
3881
+ constructor (arg1, arg2, arg3) {
3882
+ super(getMessage(arg1, arg2, arg3));
3883
+ }
3884
+ }
3860
3885
 
3861
- // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js
3862
- function oneOf(expected, thing) {
3863
- if (Array.isArray(expected)) {
3864
- const len = expected.length;
3865
- expected = expected.map((i) => String(i));
3866
- if (len > 2) {
3867
- return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +
3868
- expected[len - 1];
3869
- } else if (len === 2) {
3870
- return `one of ${thing} ${expected[0]} or ${expected[1]}`;
3871
- } else {
3872
- return `of ${thing} ${expected[0]}`;
3873
- }
3874
- } else {
3875
- return `of ${thing} ${String(expected)}`;
3876
- }
3877
- }
3886
+ NodeError.prototype.name = Base.name;
3887
+ NodeError.prototype.code = code;
3878
3888
 
3879
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
3880
- function startsWith(str, search, pos) {
3881
- return str.substr(0 , search.length) === search;
3882
- }
3889
+ codes[code] = NodeError;
3890
+ }
3883
3891
 
3884
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
3885
- function endsWith(str, search, this_len) {
3886
- if (this_len === undefined || this_len > str.length) {
3887
- this_len = str.length;
3892
+ // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js
3893
+ function oneOf(expected, thing) {
3894
+ if (Array.isArray(expected)) {
3895
+ const len = expected.length;
3896
+ expected = expected.map((i) => String(i));
3897
+ if (len > 2) {
3898
+ return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +
3899
+ expected[len - 1];
3900
+ } else if (len === 2) {
3901
+ return `one of ${thing} ${expected[0]} or ${expected[1]}`;
3902
+ } else {
3903
+ return `of ${thing} ${expected[0]}`;
3904
+ }
3905
+ } else {
3906
+ return `of ${thing} ${String(expected)}`;
3907
+ }
3888
3908
  }
3889
- return str.substring(this_len - search.length, this_len) === search;
3890
- }
3891
3909
 
3892
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
3893
- function includes(str, search, start) {
3894
- if (typeof start !== 'number') {
3895
- start = 0;
3896
- }
3910
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
3911
+ function startsWith(str, search, pos) {
3912
+ return str.substr(0 , search.length) === search;
3913
+ }
3897
3914
 
3898
- if (start + search.length > str.length) {
3899
- return false;
3900
- } else {
3901
- return str.indexOf(search, start) !== -1;
3902
- }
3903
- }
3915
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
3916
+ function endsWith(str, search, this_len) {
3917
+ if (this_len === undefined || this_len > str.length) {
3918
+ this_len = str.length;
3919
+ }
3920
+ return str.substring(this_len - search.length, this_len) === search;
3921
+ }
3904
3922
 
3905
- createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {
3906
- return 'The value "' + value + '" is invalid for option "' + name + '"'
3907
- }, TypeError);
3908
- createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
3909
- // determiner: 'must be' or 'must not be'
3910
- let determiner;
3911
- if (typeof expected === 'string' && startsWith(expected, 'not ')) {
3912
- determiner = 'must not be';
3913
- expected = expected.replace(/^not /, '');
3914
- } else {
3915
- determiner = 'must be';
3916
- }
3923
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
3924
+ function includes(str, search, start) {
3925
+ if (typeof start !== 'number') {
3926
+ start = 0;
3927
+ }
3917
3928
 
3918
- let msg;
3919
- if (endsWith(name, ' argument')) {
3920
- // For cases like 'first argument'
3921
- msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;
3922
- } else {
3923
- const type = includes(name, '.') ? 'property' : 'argument';
3924
- msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`;
3925
- }
3929
+ if (start + search.length > str.length) {
3930
+ return false;
3931
+ } else {
3932
+ return str.indexOf(search, start) !== -1;
3933
+ }
3934
+ }
3926
3935
 
3927
- msg += `. Received type ${typeof actual}`;
3928
- return msg;
3929
- }, TypeError);
3930
- createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');
3931
- createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {
3932
- return 'The ' + name + ' method is not implemented'
3933
- });
3934
- createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');
3935
- createErrorType('ERR_STREAM_DESTROYED', function (name) {
3936
- return 'Cannot call ' + name + ' after a stream was destroyed';
3937
- });
3938
- createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
3939
- createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');
3940
- createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');
3941
- createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
3942
- createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
3943
- return 'Unknown encoding: ' + arg
3944
- }, TypeError);
3945
- createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
3946
-
3947
- errors.codes = codes;
3948
-
3949
- var ERR_INVALID_OPT_VALUE = errors.codes.ERR_INVALID_OPT_VALUE;
3950
- function highWaterMarkFrom(options, isDuplex, duplexKey) {
3951
- return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
3936
+ createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {
3937
+ return 'The value "' + value + '" is invalid for option "' + name + '"'
3938
+ }, TypeError);
3939
+ createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
3940
+ // determiner: 'must be' or 'must not be'
3941
+ let determiner;
3942
+ if (typeof expected === 'string' && startsWith(expected, 'not ')) {
3943
+ determiner = 'must not be';
3944
+ expected = expected.replace(/^not /, '');
3945
+ } else {
3946
+ determiner = 'must be';
3947
+ }
3948
+
3949
+ let msg;
3950
+ if (endsWith(name, ' argument')) {
3951
+ // For cases like 'first argument'
3952
+ msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;
3953
+ } else {
3954
+ const type = includes(name, '.') ? 'property' : 'argument';
3955
+ msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`;
3956
+ }
3957
+
3958
+ msg += `. Received type ${typeof actual}`;
3959
+ return msg;
3960
+ }, TypeError);
3961
+ createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');
3962
+ createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {
3963
+ return 'The ' + name + ' method is not implemented'
3964
+ });
3965
+ createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');
3966
+ createErrorType('ERR_STREAM_DESTROYED', function (name) {
3967
+ return 'Cannot call ' + name + ' after a stream was destroyed';
3968
+ });
3969
+ createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
3970
+ createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');
3971
+ createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');
3972
+ createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
3973
+ createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
3974
+ return 'Unknown encoding: ' + arg
3975
+ }, TypeError);
3976
+ createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
3977
+
3978
+ errors.codes = codes;
3979
+ return errors;
3952
3980
  }
3953
- function getHighWaterMark(state, options, duplexKey, isDuplex) {
3954
- var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
3955
- if (hwm != null) {
3956
- if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
3957
- var name = isDuplex ? duplexKey : 'highWaterMark';
3958
- throw new ERR_INVALID_OPT_VALUE(name, hwm);
3959
- }
3960
- return Math.floor(hwm);
3961
- }
3962
3981
 
3963
- // Default value
3964
- return state.objectMode ? 16 : 16 * 1024;
3982
+ var state;
3983
+ var hasRequiredState;
3984
+
3985
+ function requireState () {
3986
+ if (hasRequiredState) return state;
3987
+ hasRequiredState = 1;
3988
+
3989
+ var ERR_INVALID_OPT_VALUE = requireErrors().codes.ERR_INVALID_OPT_VALUE;
3990
+ function highWaterMarkFrom(options, isDuplex, duplexKey) {
3991
+ return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
3992
+ }
3993
+ function getHighWaterMark(state, options, duplexKey, isDuplex) {
3994
+ var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
3995
+ if (hwm != null) {
3996
+ if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
3997
+ var name = isDuplex ? duplexKey : 'highWaterMark';
3998
+ throw new ERR_INVALID_OPT_VALUE(name, hwm);
3999
+ }
4000
+ return Math.floor(hwm);
4001
+ }
4002
+
4003
+ // Default value
4004
+ return state.objectMode ? 16 : 16 * 1024;
4005
+ }
4006
+ state = {
4007
+ getHighWaterMark: getHighWaterMark
4008
+ };
4009
+ return state;
3965
4010
  }
3966
- var state = {
3967
- getHighWaterMark: getHighWaterMark
3968
- };
3969
4011
 
3970
4012
  var inherits = {exports: {}};
3971
4013
 
@@ -4006,18 +4048,23 @@ function requireInherits_browser () {
4006
4048
  return inherits_browser.exports;
4007
4049
  }
4008
4050
 
4009
- try {
4010
- var util$2 = require('util');
4011
- /* istanbul ignore next */
4012
- if (typeof util$2.inherits !== 'function') throw '';
4013
- inherits.exports = util$2.inherits;
4014
- } catch (e) {
4015
- /* istanbul ignore next */
4016
- inherits.exports = requireInherits_browser();
4051
+ var hasRequiredInherits;
4052
+
4053
+ function requireInherits () {
4054
+ if (hasRequiredInherits) return inherits.exports;
4055
+ hasRequiredInherits = 1;
4056
+ try {
4057
+ var util = require('util');
4058
+ /* istanbul ignore next */
4059
+ if (typeof util.inherits !== 'function') throw '';
4060
+ inherits.exports = util.inherits;
4061
+ } catch (e) {
4062
+ /* istanbul ignore next */
4063
+ inherits.exports = requireInherits_browser();
4064
+ }
4065
+ return inherits.exports;
4017
4066
  }
4018
4067
 
4019
- var inheritsExports = inherits.exports;
4020
-
4021
4068
  var buffer_list;
4022
4069
  var hasRequiredBuffer_list;
4023
4070
 
@@ -4577,7 +4624,7 @@ function requireEndOfStream () {
4577
4624
  if (hasRequiredEndOfStream) return endOfStream;
4578
4625
  hasRequiredEndOfStream = 1;
4579
4626
 
4580
- var ERR_STREAM_PREMATURE_CLOSE = errors.codes.ERR_STREAM_PREMATURE_CLOSE;
4627
+ var ERR_STREAM_PREMATURE_CLOSE = requireErrors().codes.ERR_STREAM_PREMATURE_CLOSE;
4581
4628
  function once(callback) {
4582
4629
  var called = false;
4583
4630
  return function () {
@@ -4863,7 +4910,7 @@ function requireFrom () {
4863
4910
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4864
4911
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4865
4912
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4866
- var ERR_INVALID_ARG_TYPE = errors.codes.ERR_INVALID_ARG_TYPE;
4913
+ var ERR_INVALID_ARG_TYPE = requireErrors().codes.ERR_INVALID_ARG_TYPE;
4867
4914
  function from(Readable, iterable, opts) {
4868
4915
  var iterator;
4869
4916
  if (iterable && typeof iterable.next === 'function') {
@@ -4932,7 +4979,7 @@ function require_stream_readable () {
4932
4979
  /*</replacement>*/
4933
4980
 
4934
4981
  /*<replacement>*/
4935
- var Stream = stream$1;
4982
+ var Stream = requireStream$1();
4936
4983
  /*</replacement>*/
4937
4984
 
4938
4985
  var Buffer = require$$0$4.Buffer;
@@ -4955,10 +5002,10 @@ function require_stream_readable () {
4955
5002
  /*</replacement>*/
4956
5003
 
4957
5004
  var BufferList = requireBuffer_list();
4958
- var destroyImpl = destroy_1;
4959
- var _require = state,
5005
+ var destroyImpl = requireDestroy();
5006
+ var _require = requireState(),
4960
5007
  getHighWaterMark = _require.getHighWaterMark;
4961
- var _require$codes = errors.codes,
5008
+ var _require$codes = requireErrors().codes,
4962
5009
  ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
4963
5010
  ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
4964
5011
  ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
@@ -4968,7 +5015,7 @@ function require_stream_readable () {
4968
5015
  var StringDecoder;
4969
5016
  var createReadableStreamAsyncIterator;
4970
5017
  var from;
4971
- inheritsExports(Readable, Stream);
5018
+ requireInherits()(Readable, Stream);
4972
5019
  var errorOrDestroy = destroyImpl.errorOrDestroy;
4973
5020
  var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
4974
5021
  function prependListener(emitter, event, fn) {
@@ -5941,7 +5988,7 @@ function require_stream_duplex () {
5941
5988
  _stream_duplex = Duplex;
5942
5989
  var Readable = require_stream_readable();
5943
5990
  var Writable = require_stream_writable();
5944
- inheritsExports(Duplex, Readable);
5991
+ requireInherits()(Duplex, Readable);
5945
5992
  {
5946
5993
  // Allow the keys array to be GC'ed.
5947
5994
  var keys = objectKeys(Writable.prototype);
@@ -6060,12 +6107,12 @@ function require_stream_writable () {
6060
6107
 
6061
6108
  /*<replacement>*/
6062
6109
  var internalUtil = {
6063
- deprecate: node$1
6110
+ deprecate: requireNode()
6064
6111
  };
6065
6112
  /*</replacement>*/
6066
6113
 
6067
6114
  /*<replacement>*/
6068
- var Stream = stream$1;
6115
+ var Stream = requireStream$1();
6069
6116
  /*</replacement>*/
6070
6117
 
6071
6118
  var Buffer = require$$0$4.Buffer;
@@ -6076,10 +6123,10 @@ function require_stream_writable () {
6076
6123
  function _isUint8Array(obj) {
6077
6124
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
6078
6125
  }
6079
- var destroyImpl = destroy_1;
6080
- var _require = state,
6126
+ var destroyImpl = requireDestroy();
6127
+ var _require = requireState(),
6081
6128
  getHighWaterMark = _require.getHighWaterMark;
6082
- var _require$codes = errors.codes,
6129
+ var _require$codes = requireErrors().codes,
6083
6130
  ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
6084
6131
  ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
6085
6132
  ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
@@ -6089,7 +6136,7 @@ function require_stream_writable () {
6089
6136
  ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,
6090
6137
  ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
6091
6138
  var errorOrDestroy = destroyImpl.errorOrDestroy;
6092
- inheritsExports(Writable, Stream);
6139
+ requireInherits()(Writable, Stream);
6093
6140
  function nop() {}
6094
6141
  function WritableState(options, stream, isDuplex) {
6095
6142
  Duplex = Duplex || require_stream_duplex();
@@ -8065,13 +8112,13 @@ function require_stream_transform () {
8065
8112
  hasRequired_stream_transform = 1;
8066
8113
 
8067
8114
  _stream_transform = Transform;
8068
- var _require$codes = errors.codes,
8115
+ var _require$codes = requireErrors().codes,
8069
8116
  ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
8070
8117
  ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
8071
8118
  ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
8072
8119
  ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
8073
8120
  var Duplex = require_stream_duplex();
8074
- inheritsExports(Transform, Duplex);
8121
+ requireInherits()(Transform, Duplex);
8075
8122
  function afterTransform(er, data) {
8076
8123
  var ts = this._transformState;
8077
8124
  ts.transforming = false;
@@ -8201,7 +8248,7 @@ function require_stream_passthrough () {
8201
8248
 
8202
8249
  _stream_passthrough = PassThrough;
8203
8250
  var Transform = require_stream_transform();
8204
- inheritsExports(PassThrough, Transform);
8251
+ requireInherits()(PassThrough, Transform);
8205
8252
  function PassThrough(options) {
8206
8253
  if (!(this instanceof PassThrough)) return new PassThrough(options);
8207
8254
  Transform.call(this, options);
@@ -8228,7 +8275,7 @@ function requirePipeline () {
8228
8275
  callback.apply(void 0, arguments);
8229
8276
  };
8230
8277
  }
8231
- var _require$codes = errors.codes,
8278
+ var _require$codes = requireErrors().codes,
8232
8279
  ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
8233
8280
  ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
8234
8281
  function noop(err) {
@@ -15003,8 +15050,10 @@ exports.COLS = COLS;
15003
15050
  exports.IS_BROWSER = IS_BROWSER;
15004
15051
  exports.IS_NODE = IS_NODE;
15005
15052
  exports.activityEmojiMap = activityEmojiMap;
15053
+ exports.createLogger = winston.createLogger;
15006
15054
  exports.debugLogConfig = debugLogConfig;
15007
15055
  exports.extractFile = extractFile;
15056
+ exports.format = winston.format;
15008
15057
  exports.formatLogLine = formatLogLine;
15009
15058
  exports.getCallerInfo = getCallerInfo;
15010
15059
  exports.getFinalLine = getFinalLine;
@@ -15020,4 +15069,5 @@ exports.resolveValue = resolveValue;
15020
15069
  exports.serializeDetails = serializeDetails;
15021
15070
  exports.shouldCondense = shouldCondense;
15022
15071
  exports.shouldShowDetails = shouldShowDetails;
15072
+ exports.transports = winston.transports;
15023
15073
  //# sourceMappingURL=index.js.map