@honeybadger-io/js 6.4.3 → 6.5.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.
- package/README.md +24 -2
- package/dist/browser/honeybadger.d.ts +1 -0
- package/dist/browser/honeybadger.js +14 -10
- 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 +6 -17
- package/dist/server/honeybadger.js.map +1 -1
- package/package.json +5 -5
|
@@ -871,7 +871,7 @@ var Client = /** @class */ (function () {
|
|
|
871
871
|
this.__notifier = {
|
|
872
872
|
name: '@honeybadger-io/core',
|
|
873
873
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core',
|
|
874
|
-
version: '6.
|
|
874
|
+
version: '6.5.1'
|
|
875
875
|
};
|
|
876
876
|
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);
|
|
877
877
|
this.__initStore();
|
|
@@ -1524,13 +1524,6 @@ var UncaughtExceptionMonitor = /** @class */ (function () {
|
|
|
1524
1524
|
if (_this.__isReporting || !_this.__client) {
|
|
1525
1525
|
return;
|
|
1526
1526
|
}
|
|
1527
|
-
if (!_this.__client.config.enableUncaught) {
|
|
1528
|
-
_this.__client.config.afterUncaught(uncaughtError);
|
|
1529
|
-
if (!_this.hasOtherUncaughtExceptionListeners()) {
|
|
1530
|
-
(0, util_1$2.fatallyLogAndExit)(uncaughtError);
|
|
1531
|
-
}
|
|
1532
|
-
return;
|
|
1533
|
-
}
|
|
1534
1527
|
// report only the first error - prevent reporting recursive errors
|
|
1535
1528
|
if (_this.__handlerAlreadyCalled) {
|
|
1536
1529
|
if (!_this.hasOtherUncaughtExceptionListeners()) {
|
|
@@ -1607,7 +1600,8 @@ function default_1$1() {
|
|
|
1607
1600
|
else {
|
|
1608
1601
|
uncaughtExceptionMonitor.maybeRemoveListener();
|
|
1609
1602
|
}
|
|
1610
|
-
}
|
|
1603
|
+
},
|
|
1604
|
+
shouldReloadOnConfigure: true,
|
|
1611
1605
|
};
|
|
1612
1606
|
}
|
|
1613
1607
|
uncaught_exception_plugin.default = default_1$1;
|
|
@@ -1629,12 +1623,6 @@ var UnhandledRejectionMonitor = /** @class */ (function () {
|
|
|
1629
1623
|
UnhandledRejectionMonitor.prototype.makeListener = function () {
|
|
1630
1624
|
var _this = this;
|
|
1631
1625
|
var honeybadgerUnhandledRejectionListener = function (reason, _promise) {
|
|
1632
|
-
if (!_this.__client || !_this.__client.config.enableUnhandledRejection) {
|
|
1633
|
-
if (!_this.hasOtherUnhandledRejectionListeners() && !_this.__isReporting) {
|
|
1634
|
-
(0, util_1$1.fatallyLogAndExit)(reason);
|
|
1635
|
-
}
|
|
1636
|
-
return;
|
|
1637
|
-
}
|
|
1638
1626
|
_this.__isReporting = true;
|
|
1639
1627
|
_this.__client.notify(reason, { component: 'unhandledRejection' }, {
|
|
1640
1628
|
afterNotify: function () {
|
|
@@ -1691,7 +1679,8 @@ function default_1() {
|
|
|
1691
1679
|
else {
|
|
1692
1680
|
unhandledRejectionMonitor.maybeRemoveListener();
|
|
1693
1681
|
}
|
|
1694
|
-
}
|
|
1682
|
+
},
|
|
1683
|
+
shouldReloadOnConfigure: true,
|
|
1695
1684
|
};
|
|
1696
1685
|
}
|
|
1697
1686
|
unhandled_rejection_plugin.default = default_1;
|
|
@@ -2080,7 +2069,7 @@ stacked_store.StackedStore = StackedStore;
|
|
|
2080
2069
|
var NOTIFIER = {
|
|
2081
2070
|
name: '@honeybadger-io/js',
|
|
2082
2071
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js',
|
|
2083
|
-
version: '6.
|
|
2072
|
+
version: '6.5.1'
|
|
2084
2073
|
};
|
|
2085
2074
|
singleton.setNotifier(NOTIFIER);
|
|
2086
2075
|
var core_2 = src;
|