@honeybadger-io/js 6.10.1 → 6.11.0

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.
@@ -0,0 +1,15 @@
1
+ /// <reference types="node" />
2
+ import Client from '../../server';
3
+ export default class ShutdownMonitor {
4
+ private static KILL_SIGNALS;
5
+ protected __isReporting: boolean;
6
+ protected __client: typeof Client;
7
+ protected __listener: (signal: string) => void;
8
+ constructor();
9
+ setClient(client: typeof Client): void;
10
+ makeListener(): (signal: NodeJS.Signals) => Promise<void>;
11
+ maybeAddListener(): void;
12
+ maybeRemoveListener(): void;
13
+ hasOtherShutdownListeners(signal: NodeJS.Signals): boolean;
14
+ }
15
+ //# sourceMappingURL=shutdown_monitor.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Types } from '@honeybadger-io/core';
2
+ export default function (): Types.Plugin;
3
+ //# sourceMappingURL=shutdown_plugin.d.ts.map
@@ -1,5 +1,7 @@
1
+ /// <reference types="node" />
1
2
  import { Types } from '@honeybadger-io/core';
2
- export declare function fatallyLogAndExit(err: Error): never;
3
+ export declare function fatallyLogAndExitGracefully(signal: NodeJS.Signals): never;
4
+ export declare function fatallyLogAndExit(err: Error, source: string): never;
3
5
  export declare function getStats(): Promise<Types.ProcessStats>;
4
6
  /**
5
7
  * Get source file if possible, used to build `notice.backtrace.source`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honeybadger-io/js",
3
- "version": "6.10.1",
3
+ "version": "6.11.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",
6
6
  "author": {
@@ -52,12 +52,12 @@
52
52
  "postpublish": "./scripts/release-cdn.sh"
53
53
  },
54
54
  "dependencies": {
55
- "@honeybadger-io/core": "^6.6.0",
55
+ "@honeybadger-io/core": "^6.7.0",
56
56
  "@types/aws-lambda": "^8.10.89",
57
57
  "@types/express": "^4.17.13"
58
58
  },
59
59
  "devDependencies": {
60
- "@playwright/test": "1.48.0",
60
+ "@playwright/test": "1.51.0",
61
61
  "@rollup/plugin-commonjs": "^22.0.1",
62
62
  "@rollup/plugin-node-resolve": "^13.3.0",
63
63
  "@rollup/plugin-replace": "^5.0.2",
@@ -83,5 +83,5 @@
83
83
  "engines": {
84
84
  "node": ">=14"
85
85
  },
86
- "gitHead": "fb25688d92af4bc404adc525180de42a9adfc4bb"
86
+ "gitHead": "e0e043baf0f660ad2d34ec3b4e66541abad3a6ac"
87
87
  }