@honeybadger-io/js 6.4.0 → 6.4.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.
- package/dist/browser/honeybadger.js +2 -2
- package/dist/browser/honeybadger.min.js +1 -1
- package/dist/server/honeybadger.js +155 -89
- package/dist/server/honeybadger.js.map +1 -1
- package/dist/server/integrations/uncaught_exception_monitor.d.ts +24 -0
- package/dist/server/integrations/{uncaught_exception.d.ts → uncaught_exception_plugin.d.ts} +1 -1
- package/dist/server/integrations/unhandled_rejection_monitor.d.ts +15 -0
- package/dist/server/integrations/{unhandled_rejection.d.ts → unhandled_rejection_plugin.d.ts} +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Client from '../../server';
|
|
2
|
+
export default class UncaughtExceptionMonitor {
|
|
3
|
+
protected __isReporting: boolean;
|
|
4
|
+
protected __handlerAlreadyCalled: boolean;
|
|
5
|
+
protected __client: typeof Client;
|
|
6
|
+
protected __listener: (error: Error) => void;
|
|
7
|
+
constructor();
|
|
8
|
+
setClient(client: typeof Client): void;
|
|
9
|
+
makeListener(): (uncaughtError: Error) => void;
|
|
10
|
+
maybeAddListener(): void;
|
|
11
|
+
maybeRemoveListener(): void;
|
|
12
|
+
removeAwsLambdaListener(): void;
|
|
13
|
+
/**
|
|
14
|
+
* If there are no other uncaughtException listeners,
|
|
15
|
+
* we want to report the exception to Honeybadger and
|
|
16
|
+
* mimic the default behavior of NodeJs,
|
|
17
|
+
* which is to exit the process with code 1
|
|
18
|
+
*
|
|
19
|
+
* Node sets up domainUncaughtExceptionClear when we use domains.
|
|
20
|
+
* Since they're not set up by a user, they shouldn't affect whether we exit or not
|
|
21
|
+
*/
|
|
22
|
+
hasOtherUncaughtExceptionListeners(): boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=uncaught_exception_monitor.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Client from '../../server';
|
|
2
|
+
export default class UnhandledRejectionMonitor {
|
|
3
|
+
protected __isReporting: boolean;
|
|
4
|
+
protected __client: typeof Client;
|
|
5
|
+
constructor(client: typeof Client);
|
|
6
|
+
/**
|
|
7
|
+
* If there are no other unhandledRejection listeners,
|
|
8
|
+
* we want to report the exception to Honeybadger and
|
|
9
|
+
* mimic the default behavior of NodeJs,
|
|
10
|
+
* which is to exit the process with code 1
|
|
11
|
+
*/
|
|
12
|
+
hasOtherUnhandledRejectionListeners(): boolean;
|
|
13
|
+
handleUnhandledRejection(reason: unknown, _promise: Promise<unknown>): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=unhandled_rejection_monitor.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@honeybadger-io/js",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",
|
|
6
6
|
"author": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=14"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "829ecf85cd7ce44a762200f8bc149afed55bbd16"
|
|
82
82
|
}
|