@honeybadger-io/js 6.7.0 → 6.7.1
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.
|
@@ -951,6 +951,11 @@ var ThrottledEventsLogger = /** @class */ (function () {
|
|
|
951
951
|
this.config = __assign$2(__assign$2({}, defaults_1$1.CONFIG), config);
|
|
952
952
|
this.logger = this.originalLogger();
|
|
953
953
|
}
|
|
954
|
+
ThrottledEventsLogger.prototype.configure = function (opts) {
|
|
955
|
+
for (var k in opts) {
|
|
956
|
+
this.config[k] = opts[k];
|
|
957
|
+
}
|
|
958
|
+
};
|
|
954
959
|
ThrottledEventsLogger.prototype.logEvent = function (data) {
|
|
955
960
|
this.queue.push(data);
|
|
956
961
|
if (!this.isProcessing) {
|
|
@@ -1009,6 +1014,8 @@ var ThrottledEventsLogger = /** @class */ (function () {
|
|
|
1009
1014
|
});
|
|
1010
1015
|
};
|
|
1011
1016
|
/**
|
|
1017
|
+
* todo: improve this
|
|
1018
|
+
*
|
|
1012
1019
|
* The EventsLogger overrides the console methods
|
|
1013
1020
|
* so if we want to log something we need to use the original methods
|
|
1014
1021
|
*/
|
|
@@ -1098,7 +1105,7 @@ var Client = /** @class */ (function () {
|
|
|
1098
1105
|
this.__notifier = {
|
|
1099
1106
|
name: '@honeybadger-io/core',
|
|
1100
1107
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core',
|
|
1101
|
-
version: '6.7.
|
|
1108
|
+
version: '6.7.1'
|
|
1102
1109
|
};
|
|
1103
1110
|
this.config = __assign$1(__assign$1({}, defaults_1.CONFIG), opts);
|
|
1104
1111
|
this.__initStore();
|
|
@@ -1127,6 +1134,7 @@ var Client = /** @class */ (function () {
|
|
|
1127
1134
|
for (var k in opts) {
|
|
1128
1135
|
this.config[k] = opts[k];
|
|
1129
1136
|
}
|
|
1137
|
+
this.__eventsLogger.configure(this.config);
|
|
1130
1138
|
this.loadPlugins();
|
|
1131
1139
|
return this;
|
|
1132
1140
|
};
|
|
@@ -2741,7 +2749,7 @@ client.CheckInsClient = CheckInsClient;
|
|
|
2741
2749
|
var NOTIFIER = {
|
|
2742
2750
|
name: '@honeybadger-io/js',
|
|
2743
2751
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js',
|
|
2744
|
-
version: '6.7.
|
|
2752
|
+
version: '6.7.1'
|
|
2745
2753
|
};
|
|
2746
2754
|
var userAgent = function () {
|
|
2747
2755
|
return "Honeybadger JS Server Client ".concat(NOTIFIER.version, ", ").concat(os_1.default.version(), "; ").concat(os_1.default.platform());
|