@honeybadger-io/js 6.0.0 → 6.1.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: '6.
|
|
803
|
+
version: '6.1.0'
|
|
804
804
|
};
|
|
805
805
|
// Split at commas and spaces
|
|
806
806
|
var TAG_SEPARATOR = /,|\s+/;
|
|
@@ -1590,7 +1590,9 @@
|
|
|
1590
1590
|
return function () {
|
|
1591
1591
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
1592
1592
|
var xhr = this;
|
|
1593
|
-
var
|
|
1593
|
+
var rawUrl = arguments[1];
|
|
1594
|
+
// in case of url being URL object (which is valid input) we need to stringify it
|
|
1595
|
+
var url = typeof rawUrl === 'string' ? rawUrl : String(rawUrl);
|
|
1594
1596
|
var method = typeof arguments[0] === 'string' ? arguments[0].toUpperCase() : arguments[0];
|
|
1595
1597
|
var message = "".concat(method, " ").concat((0, util_1$3.localURLPathname)(url));
|
|
1596
1598
|
this.__hb_xhr = {
|