@honeybadger-io/js 5.1.7 → 5.2.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.
|
@@ -814,7 +814,7 @@ var store_1 = store;
|
|
|
814
814
|
var notifier = {
|
|
815
815
|
name: 'honeybadger-js',
|
|
816
816
|
url: 'https://github.com/honeybadger-io/honeybadger-js',
|
|
817
|
-
version: '5.
|
|
817
|
+
version: '5.2.0'
|
|
818
818
|
};
|
|
819
819
|
// Split at commas and spaces
|
|
820
820
|
var TAG_SEPARATOR = /,|\s+/;
|
|
@@ -1036,12 +1036,16 @@ var Client = /** @class */ (function () {
|
|
|
1036
1036
|
revision: notice.revision || this.config.revision,
|
|
1037
1037
|
tags: uniqueTags,
|
|
1038
1038
|
});
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1039
|
+
// If we're passed a custom backtrace array, use it
|
|
1040
|
+
// Otherwise we make one.
|
|
1041
|
+
if (!Array.isArray(notice.backtrace) || !notice.backtrace.length) {
|
|
1042
|
+
if (typeof notice.stack !== 'string' || !notice.stack.trim()) {
|
|
1043
|
+
notice.stack = (0, util_1$4.generateStackTrace)();
|
|
1044
|
+
notice.backtrace = (0, util_1$4.makeBacktrace)(notice.stack, true, this.logger);
|
|
1045
|
+
}
|
|
1046
|
+
else {
|
|
1047
|
+
notice.backtrace = (0, util_1$4.makeBacktrace)(notice.stack, false, this.logger);
|
|
1048
|
+
}
|
|
1045
1049
|
}
|
|
1046
1050
|
return notice;
|
|
1047
1051
|
};
|