@honeybadger-io/js 6.4.2 → 6.4.3
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/browser/honeybadger.js +12 -8
- package/dist/browser/honeybadger.js.map +1 -1
- package/dist/browser/honeybadger.min.js +1 -1
- package/dist/browser/honeybadger.min.js.map +1 -1
- package/dist/server/honeybadger.js +60 -34
- package/dist/server/honeybadger.js.map +1 -1
- package/dist/server/integrations/unhandled_rejection_monitor.d.ts +6 -2
- package/package.json +3 -3
|
@@ -850,14 +850,14 @@
|
|
|
850
850
|
var Client = /** @class */ (function () {
|
|
851
851
|
function Client(opts, transport) {
|
|
852
852
|
if (opts === void 0) { opts = {}; }
|
|
853
|
-
this.
|
|
853
|
+
this.__pluginsLoaded = false;
|
|
854
854
|
this.__store = null;
|
|
855
855
|
this.__beforeNotifyHandlers = [];
|
|
856
856
|
this.__afterNotifyHandlers = [];
|
|
857
857
|
this.__notifier = {
|
|
858
858
|
name: '@honeybadger-io/core',
|
|
859
859
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core',
|
|
860
|
-
version: '6.4.
|
|
860
|
+
version: '6.4.3'
|
|
861
861
|
};
|
|
862
862
|
this.config = __assign({ apiKey: null, endpoint: 'https://api.honeybadger.io', environment: null, hostname: null, projectRoot: null, component: null, action: null, revision: null, reportData: null, breadcrumbsEnabled: true, maxBreadcrumbs: 40, maxObjectDepth: 8, logger: console, developmentEnvironments: ['dev', 'development', 'test'], debug: false, tags: null, enableUncaught: true, enableUnhandledRejection: true, afterUncaught: function () { return true; }, filters: ['creditcard', 'password'], __plugins: [] }, opts);
|
|
863
863
|
this.__initStore();
|
|
@@ -881,17 +881,21 @@
|
|
|
881
881
|
this.__notifier = notifier;
|
|
882
882
|
};
|
|
883
883
|
Client.prototype.configure = function (opts) {
|
|
884
|
-
var _this = this;
|
|
885
884
|
if (opts === void 0) { opts = {}; }
|
|
886
885
|
for (var k in opts) {
|
|
887
886
|
this.config[k] = opts[k];
|
|
888
887
|
}
|
|
889
|
-
|
|
890
|
-
this.__pluginsExecuted = true;
|
|
891
|
-
this.config.__plugins.forEach(function (plugin) { return plugin.load(_this); });
|
|
892
|
-
}
|
|
888
|
+
this.loadPlugins();
|
|
893
889
|
return this;
|
|
894
890
|
};
|
|
891
|
+
Client.prototype.loadPlugins = function () {
|
|
892
|
+
var _this = this;
|
|
893
|
+
var pluginsToLoad = this.__pluginsLoaded
|
|
894
|
+
? this.config.__plugins.filter(function (plugin) { return plugin.shouldReloadOnConfigure; })
|
|
895
|
+
: this.config.__plugins;
|
|
896
|
+
pluginsToLoad.forEach(function (plugin) { return plugin.load(_this); });
|
|
897
|
+
this.__pluginsLoaded = true;
|
|
898
|
+
};
|
|
895
899
|
Client.prototype.__initStore = function () {
|
|
896
900
|
this.__store = new store_1.GlobalStore({ context: {}, breadcrumbs: [] }, this.config.maxBreadcrumbs);
|
|
897
901
|
};
|
|
@@ -2325,7 +2329,7 @@
|
|
|
2325
2329
|
var NOTIFIER = {
|
|
2326
2330
|
name: '@honeybadger-io/js',
|
|
2327
2331
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js',
|
|
2328
|
-
version: '6.4.
|
|
2332
|
+
version: '6.4.3'
|
|
2329
2333
|
};
|
|
2330
2334
|
singleton.setNotifier(NOTIFIER);
|
|
2331
2335
|
var core_2 = src;
|