Skip to content

Commit f4cbd01

Browse files
authored
Release 2.26.3 (#1130)
1 parent a983381 commit f4cbd01

23 files changed

+63
-38
lines changed

dist/rollbar.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -4688,7 +4688,7 @@ module.exports = {
46884688

46894689

46904690
module.exports = {
4691-
version: '2.26.2',
4691+
version: '2.26.3',
46924692
endpoint: 'api.rollbar.com/api/1/item/',
46934693
logLevel: 'debug',
46944694
reportLevel: 'debug',
@@ -5140,7 +5140,9 @@ Instrumenter.prototype.instrumentNetwork = function() {
51405140
var xhrp = this._window.XMLHttpRequest.prototype;
51415141
replace(xhrp, 'open', function(orig) {
51425142
return function(method, url) {
5143-
if (_.isType(url, 'string')) {
5143+
var isUrlObject = _isUrlObject(url)
5144+
if (_.isType(url, 'string') || isUrlObject) {
5145+
url = isUrlObject ? url.toString() : url;
51445146
if (this.__rollbar_xhr) {
51455147
this.__rollbar_xhr.method = method;
51465148
this.__rollbar_xhr.url = url;
@@ -5303,8 +5305,9 @@ Instrumenter.prototype.instrumentNetwork = function() {
53035305
var input = args[0];
53045306
var method = 'GET';
53055307
var url;
5306-
if (_.isType(input, 'string')) {
5307-
url = input;
5308+
var isUrlObject = _isUrlObject(input)
5309+
if (_.isType(input, 'string') || isUrlObject) {
5310+
url = isUrlObject ? input.toString() : input;
53085311
} else if (input) {
53095312
url = input.url;
53105313
if (input.method) {
@@ -5731,6 +5734,10 @@ Instrumenter.prototype.removeListeners = function(section) {
57315734
}
57325735
};
57335736

5737+
function _isUrlObject(input) {
5738+
return typeof URL !== 'undefined' && input instanceof URL
5739+
}
5740+
57345741
module.exports = Instrumenter;
57355742

57365743

dist/rollbar.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.js

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.min.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.js

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.min.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.snippet.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)