Skip to content

Commit 562fb28

Browse files
committed
3.22.0
1 parent 50583ff commit 562fb28

22 files changed

+811
-755
lines changed

CHANGELOG.md

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

3+
## 3.22.0
4+
5+
* NEW: Add `fetchParameters` to configure `fetch` (#1177)
6+
* NEW: Delete empty properties before sending event to the server (#1179)
7+
* CHANGE: Improve support for Windows 10 webview URLs in the stack trace (#1137)
8+
* CHANGE: Various Typescript typings update (#1134 #1183 #1187)
9+
* BUGFIX: Access `window.location` first before trying `document.location` (#1180)
10+
* BUGFIX: Check `parseUrl` for correct input type (#1190)
11+
312
## 3.21.0
413

514
* NEW: Use Fetch instead of XHR when available https://github.com/getsentry/raven-js/pull/1157

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.21.0",
3+
"version": "3.22.0",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

dist/plugins/angular.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*! Raven.js 3.21.0 (fbfea0f) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.22.0 (50583ff) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
55
* https://github.com/getsentry/TraceKit
66
*
7-
* Copyright 2017 Matt Robenolt and other contributors
7+
* Copyright 2018 Matt Robenolt and other contributors
88
* Released under the BSD license
99
* https://github.com/getsentry/raven-js/blob/master/LICENSE
1010
*
@@ -124,6 +124,10 @@ function isFunction(what) {
124124
return typeof what === 'function';
125125
}
126126

127+
function isPlainObject(what) {
128+
return Object.prototype.toString.call(what) === '[object Object]';
129+
}
130+
127131
function isString(what) {
128132
return Object.prototype.toString.call(what) === '[object String]';
129133
}
@@ -133,6 +137,8 @@ function isArray(what) {
133137
}
134138

135139
function isEmptyObject(what) {
140+
if (!isPlainObject(what)) return false;
141+
136142
for (var _ in what) {
137143
if (what.hasOwnProperty(_)) {
138144
return false;
@@ -269,8 +275,8 @@ function urlencode(o) {
269275
// intentionally using regex and not <a/> href parsing trick because React Native and other
270276
// environments where DOM might not be available
271277
function parseUrl(url) {
278+
if (typeof url !== 'string') return {};
272279
var match = url.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
273-
if (!match) return {};
274280

275281
// coerce to undefined values to empty string so we don't get 'undefined'
276282
var query = match[6] || '';
@@ -487,6 +493,7 @@ module.exports = {
487493
isErrorEvent: isErrorEvent,
488494
isUndefined: isUndefined,
489495
isFunction: isFunction,
496+
isPlainObject: isPlainObject,
490497
isString: isString,
491498
isArray: isArray,
492499
isEmptyObject: isEmptyObject,

dist/plugins/angular.min.js

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

0 commit comments

Comments
 (0)