@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.
@@ -2,7 +2,12 @@ import Client from '../../server';
2
2
  export default class UnhandledRejectionMonitor {
3
3
  protected __isReporting: boolean;
4
4
  protected __client: typeof Client;
5
- constructor(client: typeof Client);
5
+ protected __listener: (reason: unknown, _promise: Promise<unknown>) => void;
6
+ constructor();
7
+ setClient(client: typeof Client): void;
8
+ makeListener(): (reason: unknown, _promise: Promise<unknown>) => void;
9
+ maybeAddListener(): void;
10
+ maybeRemoveListener(): void;
6
11
  /**
7
12
  * If there are no other unhandledRejection listeners,
8
13
  * we want to report the exception to Honeybadger and
@@ -10,6 +15,5 @@ export default class UnhandledRejectionMonitor {
10
15
  * which is to exit the process with code 1
11
16
  */
12
17
  hasOtherUnhandledRejectionListeners(): boolean;
13
- handleUnhandledRejection(reason: unknown, _promise: Promise<unknown>): void;
14
18
  }
15
19
  //# 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.2",
3
+ "version": "6.4.3",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",
6
6
  "author": {
@@ -50,7 +50,7 @@
50
50
  "postpublish": "./scripts/release-cdn.sh"
51
51
  },
52
52
  "dependencies": {
53
- "@honeybadger-io/core": "^6.2.0",
53
+ "@honeybadger-io/core": "^6.3.0",
54
54
  "@types/aws-lambda": "^8.10.89",
55
55
  "@types/express": "^4.17.13"
56
56
  },
@@ -78,5 +78,5 @@
78
78
  "engines": {
79
79
  "node": ">=14"
80
80
  },
81
- "gitHead": "829ecf85cd7ce44a762200f8bc149afed55bbd16"
81
+ "gitHead": "94e663836936974474628967f5c440ffa668bc9b"
82
82
  }