@honeybadger-io/js 4.9.0 → 4.9.2
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.
|
@@ -576,16 +576,18 @@
|
|
|
576
576
|
if (!object || !name || !replacement || !(name in object)) {
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
|
-
var original = object[name];
|
|
580
|
-
while (original && original.__hb_original) {
|
|
581
|
-
original = original.__hb_original;
|
|
582
|
-
}
|
|
583
579
|
try {
|
|
580
|
+
var original = object[name];
|
|
581
|
+
while (original && original.__hb_original) {
|
|
582
|
+
original = original.__hb_original;
|
|
583
|
+
}
|
|
584
584
|
object[name] = replacement(original);
|
|
585
585
|
object[name].__hb_original = original;
|
|
586
586
|
}
|
|
587
587
|
catch (_e) {
|
|
588
|
-
// Ignores errors
|
|
588
|
+
// Ignores errors where "original" is a restricted object (see #1001)
|
|
589
|
+
// Uncaught Error: Permission denied to access property "__hb_original"
|
|
590
|
+
// Also ignores:
|
|
589
591
|
// Error: TypeError: Cannot set property onunhandledrejection of [object Object] which has only a getter
|
|
590
592
|
// User-Agent: Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G960F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
|
|
591
593
|
}
|
|
@@ -798,7 +800,7 @@
|
|
|
798
800
|
var notifier = {
|
|
799
801
|
name: 'honeybadger-js',
|
|
800
802
|
url: 'https://github.com/honeybadger-io/honeybadger-js',
|
|
801
|
-
version: '4.9.
|
|
803
|
+
version: '4.9.2'
|
|
802
804
|
};
|
|
803
805
|
// Split at commas and spaces
|
|
804
806
|
var TAG_SEPARATOR = /,|\s+/;
|
|
@@ -1712,15 +1714,11 @@
|
|
|
1712
1714
|
}
|
|
1713
1715
|
});
|
|
1714
1716
|
}
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
return function () {
|
|
1717
|
+
if (typeof addEventListener === 'function') {
|
|
1718
|
+
addEventListener('popstate', function (_event) {
|
|
1718
1719
|
recordUrlChange(lastHref, _window.location.href);
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
});
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1724
1722
|
// https://developer.mozilla.org/en-US/docs/Web/API/History/pushState
|
|
1725
1723
|
// https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
|
|
1726
1724
|
function historyWrapper(original) {
|