Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jul 20, 2018
1 parent 7d7202b commit 409f3b4
Show file tree
Hide file tree
Showing 114 changed files with 937 additions and 735 deletions.
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.26.3",
"version": "3.26.4",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
42 changes: 24 additions & 18 deletions dist/angular,console,ember,require,vue/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -419,7 +419,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.26.3',
VERSION: '3.26.4',

debug: false,

Expand Down Expand Up @@ -1157,34 +1157,40 @@ Raven.prototype = {
)
return;

options = options || {};
options = Object.assign(
{
eventId: this.lastEventId(),
dsn: this._dsn,
user: this._globalContext.user || {}
},
options
);

var lastEventId = options.eventId || this.lastEventId();
if (!lastEventId) {
if (!options.eventId) {
throw new RavenConfigError('Missing eventId');
}

var dsn = options.dsn || this._dsn;
if (!dsn) {
if (!options.dsn) {
throw new RavenConfigError('Missing DSN');
}

var encode = encodeURIComponent;
var qs = '';
qs += '?eventId=' + encode(lastEventId);
qs += '&dsn=' + encode(dsn);

var user = options.user || this._globalContext.user;
if (user) {
if (user.name) qs += '&name=' + encode(user.name);
if (user.email) qs += '&email=' + encode(user.email);
}
var encodedOptions = [];

var globalServer = this._getGlobalServer(this._parseDSN(dsn));
for (var key in options) {
if (key === 'user') {
var user = options.user;
if (user.name) encodedOptions.push('name=' + encode(user.name));
if (user.email) encodedOptions.push('email=' + encode(user.email));
} else {
encodedOptions.push(encode(key) + '=' + encode(options[key]));
}
}
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));

var script = _document.createElement('script');
script.async = true;
script.src = globalServer + '/api/embed/error-page/' + qs;
script.src = globalServer + '/api/embed/error-page/?' + encodedOptions.join('&');
(_document.head || _document.body).appendChild(script);
},

Expand Down
6 changes: 3 additions & 3 deletions dist/angular,console,ember,require,vue/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,require,vue/raven.min.js.map

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions dist/angular,console,ember,require/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -369,7 +369,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.26.3',
VERSION: '3.26.4',

debug: false,

Expand Down Expand Up @@ -1107,34 +1107,40 @@ Raven.prototype = {
)
return;

options = options || {};
options = Object.assign(
{
eventId: this.lastEventId(),
dsn: this._dsn,
user: this._globalContext.user || {}
},
options
);

var lastEventId = options.eventId || this.lastEventId();
if (!lastEventId) {
if (!options.eventId) {
throw new RavenConfigError('Missing eventId');
}

var dsn = options.dsn || this._dsn;
if (!dsn) {
if (!options.dsn) {
throw new RavenConfigError('Missing DSN');
}

var encode = encodeURIComponent;
var qs = '';
qs += '?eventId=' + encode(lastEventId);
qs += '&dsn=' + encode(dsn);

var user = options.user || this._globalContext.user;
if (user) {
if (user.name) qs += '&name=' + encode(user.name);
if (user.email) qs += '&email=' + encode(user.email);
}
var encodedOptions = [];

var globalServer = this._getGlobalServer(this._parseDSN(dsn));
for (var key in options) {
if (key === 'user') {
var user = options.user;
if (user.name) encodedOptions.push('name=' + encode(user.name));
if (user.email) encodedOptions.push('email=' + encode(user.email));
} else {
encodedOptions.push(encode(key) + '=' + encode(options[key]));
}
}
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));

var script = _document.createElement('script');
script.async = true;
script.src = globalServer + '/api/embed/error-page/' + qs;
script.src = globalServer + '/api/embed/error-page/?' + encodedOptions.join('&');
(_document.head || _document.body).appendChild(script);
},

Expand Down
4 changes: 2 additions & 2 deletions dist/angular,console,ember,require/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,require/raven.min.js.map

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions dist/angular,console,ember,vue/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -402,7 +402,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.26.3',
VERSION: '3.26.4',

debug: false,

Expand Down Expand Up @@ -1140,34 +1140,40 @@ Raven.prototype = {
)
return;

options = options || {};
options = Object.assign(
{
eventId: this.lastEventId(),
dsn: this._dsn,
user: this._globalContext.user || {}
},
options
);

var lastEventId = options.eventId || this.lastEventId();
if (!lastEventId) {
if (!options.eventId) {
throw new RavenConfigError('Missing eventId');
}

var dsn = options.dsn || this._dsn;
if (!dsn) {
if (!options.dsn) {
throw new RavenConfigError('Missing DSN');
}

var encode = encodeURIComponent;
var qs = '';
qs += '?eventId=' + encode(lastEventId);
qs += '&dsn=' + encode(dsn);

var user = options.user || this._globalContext.user;
if (user) {
if (user.name) qs += '&name=' + encode(user.name);
if (user.email) qs += '&email=' + encode(user.email);
}
var encodedOptions = [];

var globalServer = this._getGlobalServer(this._parseDSN(dsn));
for (var key in options) {
if (key === 'user') {
var user = options.user;
if (user.name) encodedOptions.push('name=' + encode(user.name));
if (user.email) encodedOptions.push('email=' + encode(user.email));
} else {
encodedOptions.push(encode(key) + '=' + encode(options[key]));
}
}
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));

var script = _document.createElement('script');
script.async = true;
script.src = globalServer + '/api/embed/error-page/' + qs;
script.src = globalServer + '/api/embed/error-page/?' + encodedOptions.join('&');
(_document.head || _document.body).appendChild(script);
},

Expand Down
6 changes: 3 additions & 3 deletions dist/angular,console,ember,vue/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,vue/raven.min.js.map

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions dist/angular,console,ember/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -352,7 +352,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.26.3',
VERSION: '3.26.4',

debug: false,

Expand Down Expand Up @@ -1090,34 +1090,40 @@ Raven.prototype = {
)
return;

options = options || {};
options = Object.assign(
{
eventId: this.lastEventId(),
dsn: this._dsn,
user: this._globalContext.user || {}
},
options
);

var lastEventId = options.eventId || this.lastEventId();
if (!lastEventId) {
if (!options.eventId) {
throw new RavenConfigError('Missing eventId');
}

var dsn = options.dsn || this._dsn;
if (!dsn) {
if (!options.dsn) {
throw new RavenConfigError('Missing DSN');
}

var encode = encodeURIComponent;
var qs = '';
qs += '?eventId=' + encode(lastEventId);
qs += '&dsn=' + encode(dsn);

var user = options.user || this._globalContext.user;
if (user) {
if (user.name) qs += '&name=' + encode(user.name);
if (user.email) qs += '&email=' + encode(user.email);
}
var encodedOptions = [];

var globalServer = this._getGlobalServer(this._parseDSN(dsn));
for (var key in options) {
if (key === 'user') {
var user = options.user;
if (user.name) encodedOptions.push('name=' + encode(user.name));
if (user.email) encodedOptions.push('email=' + encode(user.email));
} else {
encodedOptions.push(encode(key) + '=' + encode(options[key]));
}
}
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));

var script = _document.createElement('script');
script.async = true;
script.src = globalServer + '/api/embed/error-page/' + qs;
script.src = globalServer + '/api/embed/error-page/?' + encodedOptions.join('&');
(_document.head || _document.body).appendChild(script);
},

Expand Down
4 changes: 2 additions & 2 deletions dist/angular,console,ember/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember/raven.min.js.map

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions dist/angular,console,require,vue/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -386,7 +386,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.26.3',
VERSION: '3.26.4',

debug: false,

Expand Down Expand Up @@ -1124,34 +1124,40 @@ Raven.prototype = {
)
return;

options = options || {};
options = Object.assign(
{
eventId: this.lastEventId(),
dsn: this._dsn,
user: this._globalContext.user || {}
},
options
);

var lastEventId = options.eventId || this.lastEventId();
if (!lastEventId) {
if (!options.eventId) {
throw new RavenConfigError('Missing eventId');
}

var dsn = options.dsn || this._dsn;
if (!dsn) {
if (!options.dsn) {
throw new RavenConfigError('Missing DSN');
}

var encode = encodeURIComponent;
var qs = '';
qs += '?eventId=' + encode(lastEventId);
qs += '&dsn=' + encode(dsn);

var user = options.user || this._globalContext.user;
if (user) {
if (user.name) qs += '&name=' + encode(user.name);
if (user.email) qs += '&email=' + encode(user.email);
}
var encodedOptions = [];

var globalServer = this._getGlobalServer(this._parseDSN(dsn));
for (var key in options) {
if (key === 'user') {
var user = options.user;
if (user.name) encodedOptions.push('name=' + encode(user.name));
if (user.email) encodedOptions.push('email=' + encode(user.email));
} else {
encodedOptions.push(encode(key) + '=' + encode(options[key]));
}
}
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));

var script = _document.createElement('script');
script.async = true;
script.src = globalServer + '/api/embed/error-page/' + qs;
script.src = globalServer + '/api/embed/error-page/?' + encodedOptions.join('&');
(_document.head || _document.body).appendChild(script);
},

Expand Down
6 changes: 3 additions & 3 deletions dist/angular,console,require,vue/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,require,vue/raven.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 409f3b4

Please sign in to comment.