Skip to content

Commit

Permalink
3.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jan 12, 2018
1 parent 50583ff commit 562fb28
Show file tree
Hide file tree
Showing 22 changed files with 811 additions and 755 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.22.0

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

## 3.21.0

* NEW: Use Fetch instead of XHR when available https://github.com/getsentry/raven-js/pull/1157
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raven-js",
"version": "3.21.0",
"version": "3.22.0",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
13 changes: 10 additions & 3 deletions dist/plugins/angular.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*! Raven.js 3.21.0 (fbfea0f) | github.com/getsentry/raven-js */
/*! Raven.js 3.22.0 (50583ff) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2017 Matt Robenolt and other contributors
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
Expand Down Expand Up @@ -124,6 +124,10 @@ function isFunction(what) {
return typeof what === 'function';
}

function isPlainObject(what) {
return Object.prototype.toString.call(what) === '[object Object]';
}

function isString(what) {
return Object.prototype.toString.call(what) === '[object String]';
}
Expand All @@ -133,6 +137,8 @@ function isArray(what) {
}

function isEmptyObject(what) {
if (!isPlainObject(what)) return false;

for (var _ in what) {
if (what.hasOwnProperty(_)) {
return false;
Expand Down Expand Up @@ -269,8 +275,8 @@ function urlencode(o) {
// intentionally using regex and not <a/> href parsing trick because React Native and other
// environments where DOM might not be available
function parseUrl(url) {
if (typeof url !== 'string') return {};
var match = url.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!match) return {};

// coerce to undefined values to empty string so we don't get 'undefined'
var query = match[6] || '';
Expand Down Expand Up @@ -487,6 +493,7 @@ module.exports = {
isErrorEvent: isErrorEvent,
isUndefined: isUndefined,
isFunction: isFunction,
isPlainObject: isPlainObject,
isString: isString,
isArray: isArray,
isEmptyObject: isEmptyObject,
Expand Down
4 changes: 2 additions & 2 deletions dist/plugins/angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 562fb28

Please sign in to comment.