@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.
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
var notifier = {
|
|
801
801
|
name: 'honeybadger-js',
|
|
802
802
|
url: 'https://github.com/honeybadger-io/honeybadger-js',
|
|
803
|
-
version: '5.
|
|
803
|
+
version: '5.2.0'
|
|
804
804
|
};
|
|
805
805
|
// Split at commas and spaces
|
|
806
806
|
var TAG_SEPARATOR = /,|\s+/;
|
|
@@ -1022,12 +1022,16 @@
|
|
|
1022
1022
|
revision: notice.revision || this.config.revision,
|
|
1023
1023
|
tags: uniqueTags,
|
|
1024
1024
|
});
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1025
|
+
// If we're passed a custom backtrace array, use it
|
|
1026
|
+
// Otherwise we make one.
|
|
1027
|
+
if (!Array.isArray(notice.backtrace) || !notice.backtrace.length) {
|
|
1028
|
+
if (typeof notice.stack !== 'string' || !notice.stack.trim()) {
|
|
1029
|
+
notice.stack = (0, util_1$6.generateStackTrace)();
|
|
1030
|
+
notice.backtrace = (0, util_1$6.makeBacktrace)(notice.stack, true, this.logger);
|
|
1031
|
+
}
|
|
1032
|
+
else {
|
|
1033
|
+
notice.backtrace = (0, util_1$6.makeBacktrace)(notice.stack, false, this.logger);
|
|
1034
|
+
}
|
|
1031
1035
|
}
|
|
1032
1036
|
return notice;
|
|
1033
1037
|
};
|