@honeybadger-io/js 4.0.0-beta.2 → 4.0.0-beta.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.
@@ -589,7 +589,7 @@
589
589
  var notifier = {
590
590
  name: 'honeybadger-js',
591
591
  url: 'https://github.com/honeybadger-io/honeybadger-js',
592
- version: '4.0.0-beta.2'
592
+ version: '4.0.0-beta.3'
593
593
  };
594
594
  // Split at commas and spaces
595
595
  var TAG_SEPARATOR = /,|\s+/;
@@ -701,7 +701,7 @@
701
701
  stack: notice.stack
702
702
  }
703
703
  });
704
- var breadcrumbs = this.__getStoreOrDefaultObject().breadcrumbs;
704
+ var breadcrumbs = this.__getStoreContentsOrDefault().breadcrumbs;
705
705
  notice.__breadcrumbs = this.config.breadcrumbsEnabled ? breadcrumbs.slice() : [];
706
706
  // we need to have the source file data before the beforeNotifyHandlers,
707
707
  // in case they modify them
@@ -776,7 +776,7 @@
776
776
  if (objectIsEmpty(notice)) {
777
777
  return null;
778
778
  }
779
- var context = this.__getStoreOrDefaultObject().context;
779
+ var context = this.__getStoreContentsOrDefault().context;
780
780
  var noticeTags = this.__constructTags(notice.tags);
781
781
  var contextTags = this.__constructTags(context["tags"]);
782
782
  var configTags = this.__constructTags(this.config.tags);
@@ -877,13 +877,13 @@
877
877
  /**
878
878
  * For ALS, the store may be uninitialized (if .run()` has not been called).
879
879
  * This provides an easy way to read the existing store object or fall back to a default.
880
- * Returns *a copy* of the store.
880
+ * Returns *a copy* of the store contents.
881
881
  * @internal
882
882
  */
883
- Client.prototype.__getStoreOrDefaultObject = function () {
884
- var existingStore = this.__store.getStore();
885
- var store = existingStore || {};
886
- return __assign({ context: {}, breadcrumbs: [] }, store);
883
+ Client.prototype.__getStoreContentsOrDefault = function () {
884
+ var existingStoreContents = this.__store.getStore();
885
+ var storeContents = existingStoreContents || {};
886
+ return __assign({ context: {}, breadcrumbs: [] }, storeContents);
887
887
  };
888
888
  return Client;
889
889
  }());