@honeybadger-io/js 4.7.4 → 4.8.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.
@@ -1,3 +1,3 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
- export default function (_window?: Window & typeof globalThis): Types.Plugin;
2
+ export default function (_window?: typeof globalThis): Types.Plugin;
3
3
  //# sourceMappingURL=breadcrumbs.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
- export default function (_window?: Window & typeof globalThis): Types.Plugin;
2
+ export default function (_window?: typeof globalThis): Types.Plugin;
3
3
  //# sourceMappingURL=event_listeners.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
- export default function (_window?: Window & typeof globalThis): Types.Plugin;
2
+ export default function (_window?: typeof globalThis): Types.Plugin;
3
3
  //# sourceMappingURL=timers.d.ts.map
@@ -16,4 +16,8 @@ export declare function localURLPathname(url: any): any;
16
16
  export declare function decodeCookie(string: string): Record<string, unknown>;
17
17
  export declare function encodeCookie(object: any): string;
18
18
  export declare const preferCatch: boolean;
19
+ /** globalThis has fairly good support. But just in case, lets check its defined.
20
+ * @see {https://caniuse.com/?search=globalThis}
21
+ */
22
+ export declare function globalThisOrWindow(): typeof globalThis;
19
23
  //# sourceMappingURL=util.d.ts.map