8000 3.25.1 · phthhieu/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.

0 commit comments

Comments
 (0)
0