@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.
- package/dist/browser/honeybadger.js +8 -8
- package/dist/browser/honeybadger.js.map +1 -1
- package/dist/browser/honeybadger.min.js +1 -1
- package/dist/browser/honeybadger.min.js.map +1 -1
- package/dist/browser/types/core/types.d.ts +4 -0
- package/dist/browser/types/server.d.ts +1 -1
- package/dist/server/honeybadger.d.ts +1 -1
- package/dist/server/honeybadger.js +24 -12
- package/dist/server/types/core/types.d.ts +4 -0
- package/dist/server/types/server.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
884
|
-
var
|
|
885
|
-
var
|
|
886
|
-
return __assign({ context: {}, breadcrumbs: [] },
|
|
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
|
}());
|