@honeybadger-io/js 4.7.4 → 4.8.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.
@@ -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
@@ -757,7 +757,7 @@ var store_1 = store;
757
757
  var notifier = {
758
758
  name: 'honeybadger-js',
759
759
  url: 'https://github.com/honeybadger-io/honeybadger-js',
760
- version: '4.7.4'
760
+ version: '4.8.0'
761
761
  };
762
762
  // Split at commas and spaces
763
763
  var TAG_SEPARATOR = /,|\s+/;
@@ -880,7 +880,6 @@ var Client = /** @class */ (function () {
880
880
  endpoint: (0, util_1$4.endpoint)(_this.config.endpoint, '/v1/notices/js'),
881
881
  maxObjectDepth: _this.config.maxObjectDepth,
882
882
  logger: _this.logger,
883
- async: (0, util_1$4.isBrowserConfig)(_this.config) ? _this.config.async : undefined,
884
883
  }, payload)
885
884
  .then(function (res) {
886
885
  if (res.statusCode !== 201) {