8000 3.25.1 · sshyran/sentry-javascript@66b3148 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66b3148

Browse files
committed
3.25.1
1 parent b6f3c7a commit 66b3148

File tree

118 files changed

+2485
-926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2485
-926
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.25.1
4+
5+
* BUILD: fix missing plugins in dist directory and simplify grunt build (#1327)
6+
* BUGFIX: Polyfill location.origin for IE10 (#1325)
7+
* BUGFIX: use safe _window and _navigator references (#1324)
8+
39
## 3.25.0
410

511
* FEAT: Handle JavaScript loaded in the browser inside a blob (#1322)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.25.0",
3+
"version": "3.25.1",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

dist/angular,console,ember,require,vue/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -419,7 +419,7 @@ Raven.prototype = {
419419
// webpack (using a build step causes webpack #1617). Grunt verifies that
420420
// this value matches package.json during build.
421421
// See: https://github.com/getsentry/raven-js/issues/465
422-
VERSION: '3.25.0',
422+
VERSION: '3.25.1',
423423

424424
debug: false,
425425

@@ -1728,8 +1728,8 @@ Raven.prototype = {
17281728
var hasPushAndReplaceState =
17291729
!isChromePackagedApp &&
17301730
_window.history &&
1731-
history.pushState &&
1732-
history.replaceState;
1731+
_window.history.pushState &&
1732+
_window.history.replaceState;
17331733
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
17341734
// TODO: remove onpopstate handler on uninstall()
17351735
var oldOnPopState = _window.onpopstate;
@@ -1758,8 +1758,8 @@ Raven.prototype = {
17581758
};
17591759
};
17601760

1761-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1762-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1761+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1762+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
17631763
}
17641764

17651765
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -2049,7 +2049,7 @@ Raven.prototype = {
20492049

20502050
if (this._hasNavigator && _navigator.userAgent) {
20512051
httpData.headers = {
2052-
'User-Agent': navigator.userAgent
2052+
'User-Agent': _navigator.userAgent
20532053
};
20542054
}
20552055

@@ -3224,6 +3224,16 @@ function getLocationHref() {
32243224

32253225
function getLocationOrigin() {
32263226
if (typeof document === 'undefined' || document.location == null) return '';
3227+
3228+
// Oh dear IE10...
3229+
if (!document.location.origin) {
3230+
document.location.origin =
3231+
document.location.protocol +
3232+
'//' +
3233+
document.location.hostname +
3234+
(document.location.port ? ':' + document.location.port : '');
3235+
}
3236+
32273237
return document.location.origin;
32283238
}
32293239

dist/angular,console,ember,require,vue/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require,vue/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -369,7 +369,7 @@ Raven.prototype = {
369369
// webpack (using a build step causes webpack #1617). Grunt verifies that
370370
// this value matches package.json during build.
371371
// See: https://github.com/getsentry/raven-js/issues/465
372-
VERSION: '3.25.0',
372+
VERSION: '3.25.1',
373373

374374
debug: false,
375375

@@ -1678,8 +1678,8 @@ Raven.prototype = {
16781678
var hasPushAndReplaceState =
16791679
!isChromePackagedApp &&
16801680
_window.history &&
1681-
history.pushState &&
1682-
history.replaceState;
1681+
_window.history.pushState &&
1682+
_window.history.replaceState;
16831683
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
16841684
// TODO: remove onpopstate handler on uninstall()
16851685
var oldOnPopState = _window.onpopstate;
@@ -1708,8 +1708,8 @@ Raven.prototype = {
17081708
};
17091709
};
17101710

1711-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1712-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1711+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1712+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
17131713
}
17141714

17151715
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -1999,7 +1999,7 @@ Raven.prototype = {
19991999

20002000
if (this._hasNavigator && _navigator.userAgent) {
20012001
httpData.headers = {
2002-
'User-Agent': navigator.userAgent
2002+
'User-Agent': _navigator.userAgent
20032003
};
20042004
}
20052005

@@ -3174,6 +3174,16 @@ function getLocationHref() {
31743174

31753175
function getLocationOrigin() {
31763176
if (typeof document === 'undefined' || document.location == null) return '';
3177+
3178+
// Oh dear IE10...
3179+
if (!document.location.origin) {
3180+
document.location.origin =
3181+
document.location.protocol +
3182+
'//' +
3183+
document.location.hostname +
3184+
(document.location.port ? ':' + document.location.port : '');
3185+
}
3186+
31773187
return document.location.origin;
31783188
}
31793189

dist/angular,console,ember,require/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,vue/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -402,7 +402,7 @@ Raven.prototype = {
402402
// webpack (using a build step causes webpack #1617). Grunt verifies that
403403
// this value matches package.json during build.
404404
// See: https://github.com/getsentry/raven-js/issues/465
405-
VERSION: '3.25.0',
405+
VERSION: '3.25.1',
406406

407407
debug: false,
408408

@@ -1711,8 +1711,8 @@ Raven.prototype = {
17111711
var hasPushAndReplaceState =
17121712
!isChromePackagedApp &&
17131713
_window.history &&
1714-
history.pushState &&
1715-
history.replaceState;
1714+
_window.history.pushState &&
1715+
_window.history.replaceState;
17161716
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
17171717
// TODO: remove onpopstate handler on uninstall()
17181718
var oldOnPopState = _window.onpopstate;
@@ -1741,8 +1741,8 @@ Raven.prototype = {
17411741
};
17421742
};
17431743

1744-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1745-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1744+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1745+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
17461746
}
17471747

17481748
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -2032,7 +2032,7 @@ Raven.prototype = {
20322032

20332033
if (this._hasNavigator && _navigator.userAgent) {
20342034
httpData.headers = {
2035-
'User-Agent': navigator.userAgent
2035+
'User-Agent': _navigator.userAgent
20362036
};
20372037
}
20382038

@@ -3207,6 +3207,16 @@ function getLocationHref() {
32073207

32083208
function getLocationOrigin() {
32093209
if (typeof document === 'undefined' || document.location == null) return '';
3210+
3211+
// Oh dear IE10...
3212+
if (!document.location.origin) {
3213+
document.location.origin =
3214+
document.location.protocol +
3215+
'//' +
3216+
document.location.hostname +
3217+
(document.location.port ? ':' + document.location.port : '');
3218+
}
3219+
32103220
return document.location.origin;
32113221
}
32123222

dist/angular,console,ember,vue/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,vue/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -352,7 +352,7 @@ Raven.prototype = {
352352
// webpack (using a build step causes webpack #1617). Grunt verifies that
353353
// this value matches package.json during build.
354354
// See: https://github.com/getsentry/raven-js/issues/465
355-
VERSION: '3.25.0',
355+
VERSION: '3.25.1',
356356

357357
debug: false,
358358

@@ -1661,8 +1661,8 @@ Raven.prototype = {
16611661
var hasPushAndReplaceState =
16621662
!isChromePackagedApp &&
16631663
_window.history &&
1664-
history.pushState &&
1665-
history.replaceState;
1664+
_window.history.pushState &&
1665+
_window.history.replaceState;
16661666
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
16671667
// TODO: remove onpopstate handler on uninstall()
16681668
var oldOnPopState = _window.onpopstate;
@@ -1691,8 +1691,8 @@ Raven.prototype = {
16911691
};
16921692
};
16931693

1694-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1695-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1694+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1695+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
16961696
}
16971697

16981698
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -1982,7 +1982,7 @@ Raven.prototype = {
19821982

19831983
if (this._hasNavigator && _navigator.userAgent) {
19841984
httpData.headers = {
1985-
'User-Agent': navigator.userAgent
1985+
'User-Agent': _navigator.userAgent
19861986
};
19871987
}
19881988

@@ -3157,6 +3157,16 @@ function getLocationHref() {
31573157

31583158
function getLocationOrigin() {
31593159
if (typeof document === 'undefined' || document.location == null) return '';
3160+
3161+
// Oh dear IE10...
3162+
if (!document.location.origin) {
3163+
document.location.origin =
3164+
document.location.protocol +
3165+
'//' +
3166+
document.location.hostname +
3167+
(document.location.port ? ':' + document.location.port : '');
3168+
}
3169+
31603170
return document.location.origin;
31613171
}
31623172

dist/angular,console,ember/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,require,vue/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -386,7 +386,7 @@ Raven.prototype = {
386386
// webpack (using a build step causes webpack #1617). Grunt verifies that
387387
// this value matches package.json during build.
388388
// See: https://github.com/getsentry/raven-js/issues/465
389-
VERSION: '3.25.0',
389+
VERSION: '3.25.1',
390390

391391
debug: false,
392392

@@ -1695,8 +1695,8 @@ Raven.prototype = {
16951695
var hasPushAndReplaceState =
16961696
!isChromePackagedApp &&
16971697
_window.history &&
1698-
history.pushState &&
1699-
history.replaceState;
1698+
_window.history.pushState &&
1699+
_window.history.replaceState;
17001700
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
17011701
// TODO: remove onpopstate handler on uninstall()
17021702
var oldOnPopState = _window.onpopstate;
@@ -1725,8 +1725,8 @@ Raven.prototype = {
17251725
};
17261726
};
17271727

1728-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1729-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1728+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1729+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
17301730
}
17311731

17321732
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -2016,7 +2016,7 @@ Raven.prototype = {
20162016

20172017
if (this._hasNavigator && _navigator.userAgent) {
20182018
httpData.headers = {
2019-
'User-Agent': navigator.userAgent
2019+
'User-Agent': _navigator.userAgent
20202020
};
20212021
}
20222022

@@ -3191,6 +3191,16 @@ function getLocationHref() {
31913191

31923192
function getLocationOrigin() {
31933193
if (typeof document === 'undefined' || document.location == null) return '';
3194+
3195+
// Oh dear IE10...
3196+
if (!document.location.origin) {
3197+
document.location.origin =
3198+
document.location.protocol +
3199+
'//' +
3200+
document.location.hostname +
3201+
(document.location.port ? ':' + document.location.port : '');
3202+
}
3203+
31943204
return document.location.origin;
31953205
}
31963206

dist/angular,console,require,vue/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,require,vue/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,require/raven.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.25.1 (b6f3c7a) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -336,7 +336,7 @@ Raven.prototype = {
336336
// webpack (using a build step causes webpack #1617). Grunt verifies that
337337
// this value matches package.json during build.
338338
// See: https://github.com/getsentry/raven-js/issues/465
339-
VERSION: '3.25.0',
339+
VERSION: '3.25.1',
340340

341341
debug: false,
342342

@@ -1645,8 +1645,8 @@ Raven.prototype = {
16451645
var hasPushAndReplaceState =
16461646
!isChromePackagedApp &&
16471647
_window.history &&
1648-
history.pushState &&
1649-
history.replaceState;
1648+
_window.history.pushState &&
1649+
_window.history.replaceState;
16501650
if (autoBreadcrumbs.location && hasPushAndReplaceState) {
16511651
// TODO: remove onpopstate handler on uninstall()
16521652
var oldOnPopState = _window.onpopstate;
@@ -1675,8 +1675,8 @@ Raven.prototype = {
16751675
};
16761676
};
16771677

1678-
fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1679-
fill(history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
1678+
fill(_window.history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
1679+
fill(_window.history, 'replaceState', historyReplacementFunction, wrappedBuiltIns);
16801680
}
16811681

16821682
if (autoBreadcrumbs.console && 'console' in _window && console.log) {
@@ -1966,7 +1966,7 @@ Raven.prototype = {
19661966

19671967
if (this._hasNavigator && _navigator.userAgent) {
19681968
httpData.headers = {
1969-
'User-Agent': navigator.userAgent
1969+
'User-Agent': _navigator.userAgent
19701970
};
19711971
}
19721972

@@ -3141,6 +3141,16 @@ function getLocationHref() {
31413141

31423142
function getLocationOrigin() {
31433143
if (typeof document === 'undefined' || document.location == null) return '';
3144+
3145+
// Oh dear IE10...
3146+
if (!document.location.origin) {
3147+
document.location.origin =
3148+
document.location.protocol +
3149+
'//' +
3150+
document.location.hostname +
3151+
(document.location.port ? ':' + document.location.port : '');
3152+
}
3153+
31443154
return document.location.origin;
31453155
}
31463156

dist/angular,console,require/raven.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,require/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0