@honeybadger-io/js 4.8.2 → 4.9.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.
@@ -10,6 +10,7 @@ declare class Honeybadger extends Client {
10
10
  factory(opts?: Partial<Types.Config | Types.ServerlessConfig>): this;
11
11
  configure(opts?: Partial<Types.Config | Types.ServerlessConfig>): this;
12
12
  protected __initStore(): void;
13
+ showUserFeedbackForm(): Promise<void>;
13
14
  checkIn(id: string): Promise<void>;
14
15
  withRequest<R>(request: Record<symbol, unknown>, handler: (...args: never[]) => R, onError?: (...args: unknown[]) => unknown): R | void;
15
16
  run<R>(callback: (...args: never[]) => R): R;
@@ -590,16 +590,18 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(stackTraceParser_esm);
590
590
  if (!object || !name || !replacement || !(name in object)) {
591
591
  return;
592
592
  }
593
- var original = object[name];
594
- while (original && original.__hb_original) {
595
- original = original.__hb_original;
596
- }
597
593
  try {
594
+ var original = object[name];
595
+ while (original && original.__hb_original) {
596
+ original = original.__hb_original;
597
+ }
598
598
  object[name] = replacement(original);
599
599
  object[name].__hb_original = original;
600
600
  }
601
601
  catch (_e) {
602
- // Ignores errors like this one:
602
+ // Ignores errors where "original" is a restricted object (see #1001)
603
+ // Uncaught Error: Permission denied to access property "__hb_original"
604
+ // Also ignores:
603
605
  // Error: TypeError: Cannot set property onunhandledrejection of [object Object] which has only a getter
604
606
  // User-Agent: Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G960F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
605
607
  }
@@ -812,7 +814,7 @@ var store_1 = store;
812
814
  var notifier = {
813
815
  name: 'honeybadger-js',
814
816
  url: 'https://github.com/honeybadger-io/honeybadger-js',
815
- version: '4.8.2'
817
+ version: '4.9.2'
816
818
  };
817
819
  // Split at commas and spaces
818
820
  var TAG_SEPARATOR = /,|\s+/;
@@ -1824,6 +1826,9 @@ stacked_store.StackedStore = StackedStore;
1824
1826
  // @ts-ignore
1825
1827
  this.__store = new stacked_store_1.StackedStore(this.config.maxBreadcrumbs);
1826
1828
  };
1829
+ Honeybadger.prototype.showUserFeedbackForm = function () {
1830
+ throw new Error('Honeybadger.showUserFeedbackForm() is not supported on the server-side');
1831
+ };
1827
1832
  Honeybadger.prototype.checkIn = function (id) {
1828
1833
  var _this = this;
1829
1834
  return this.__transport