Skip to content

Commit 409f3b4

Browse files
committed
1 parent 7d7202b commit 409f3b4

File tree

114 files changed

+937
-735
lines changed

Some content is hidden

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

114 files changed

+937
-735
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.26.3",
3+
"version": "3.26.4",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

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

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.4 (7d7202b) | 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.26.3',
422+
VERSION: '3.26.4',
423423

424424
debug: false,
425425

@@ -1157,34 +1157,40 @@ Raven.prototype = {
11571157
)
11581158
return;
11591159

1160-
options = options || {};
1160+
options = Object.assign(
1161+
{
1162+
eventId: this.lastEventId(),
1163+
dsn: this._dsn,
1164+
user: this._globalContext.user || {}
1165+
},
1166+
options
1167+
);
11611168

1162-
var lastEventId = options.eventId || this.lastEventId();
1163-
if (!lastEventId) {
1169+
if (!options.eventId) {
11641170
throw new RavenConfigError('Missing eventId');
11651171
}
11661172

1167-
var dsn = options.dsn || this._dsn;
1168-
if (!dsn) {
1173+
if (!options.dsn) {
11691174
throw new RavenConfigError('Missing DSN');
11701175
}
11711176

11721177
var encode = encodeURIComponent;
1173-
var qs = '';
1174-
qs += '?eventId=' + encode(lastEventId);
1175-
qs += '&dsn=' + encode(dsn);
1176-
1177-
var user = options.user || this._globalContext.user;
1178-
if (user) {
1179-
if (user.name) qs += '&name=' + encode(user.name);
1180-
if (user.email) qs += '&email=' + encode(user.email);
1181-
}
1178+
var encodedOptions = [];
11821179

1183-
var globalServer = this._getGlobalServer(this._parseDSN(dsn));
1180+
for (var key in options) {
1181+
if (key === 'user') {
1182+
var user = options.user;
1183+
if (user.name) encodedOptions.push('name=' + encode(user.name));
1184+
if (user.email) encodedOptions.push('email=' + encode(user.email));
1185+
} else {
1186+
encodedOptions.push(encode(key) + '=' + encode(options[key]));
1187+
}
1188+
}
1189+
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));
11841190

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

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

+3-3
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

+1-1
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

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.4 (7d7202b) | 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.26.3',
372+
VERSION: '3.26.4',
373373

374374
debug: false,
375375

@@ -1107,34 +1107,40 @@ Raven.prototype = {
11071107
)
11081108
return;
11091109

1110-
options = options || {};
1110+
options = Object.assign(
1111+
{
1112+
eventId: this.lastEventId(),
1113+
dsn: this._dsn,
1114+
user: this._globalContext.user || {}
1115+
},
1116+
options
1117+
);
11111118

1112-
var lastEventId = options.eventId || this.lastEventId();
1113-
if (!lastEventId) {
1119+
if (!options.eventId) {
11141120
throw new RavenConfigError('Missing eventId');
11151121
}
11161122

1117-
var dsn = options.dsn || this._dsn;
1118-
if (!dsn) {
1123+
if (!options.dsn) {
11191124
throw new RavenConfigError('Missing DSN');
11201125
}
11211126

11221127
var encode = encodeURIComponent;
1123-
var qs = '';
1124-
qs += '?eventId=' + encode(lastEventId);
1125-
qs += '&dsn=' + encode(dsn);
1126-
1127-
var user = options.user || this._globalContext.user;
1128-
if (user) {
1129-
if (user.name) qs += '&name=' + encode(user.name);
1130-
if (user.email) qs += '&email=' + encode(user.email);
1131-
}
1128+
var encodedOptions = [];
11321129

1133-
var globalServer = this._getGlobalServer(this._parseDSN(dsn));
1130+
for (var key in options) {
1131+
if (key === 'user') {
1132+
var user = options.user;
1133+
if (user.name) encodedOptions.push('name=' + encode(user.name));
1134+
if (user.email) encodedOptions.push('email=' + encode(user.email));
1135+
} else {
1136+
encodedOptions.push(encode(key) + '=' + encode(options[key]));
1137+
}
1138+
}
1139+
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));
11341140

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

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

+2-2
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

+1-1
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

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.4 (7d7202b) | 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.26.3',
405+
VERSION: '3.26.4',
406406

407407
debug: false,
408408

@@ -1140,34 +1140,40 @@ Raven.prototype = {
11401140
)
11411141
return;
11421142

1143-
options = options || {};
1143+
options = Object.assign(
1144+
{
1145+
eventId: this.lastEventId(),
1146+
dsn: this._dsn,
1147+
user: this._globalContext.user || {}
1148+
},
1149+
options
1150+
);
11441151

1145-
var lastEventId = options.eventId || this.lastEventId();
1146-
if (!lastEventId) {
1152+
if (!options.eventId) {
11471153
throw new RavenConfigError('Missing eventId');
11481154
}
11491155

1150-
var dsn = options.dsn || this._dsn;
1151-
if (!dsn) {
1156+
if (!options.dsn) {
11521157
throw new RavenConfigError('Missing DSN');
11531158
}
11541159

11551160
var encode = encodeURIComponent;
1156-
var qs = '';
1157-
qs += '?eventId=' + encode(lastEventId);
1158-
qs += '&dsn=' + encode(dsn);
1159-
1160-
var user = options.user || this._globalContext.user;
1161-
if (user) {
1162-
if (user.name) qs += '&name=' + encode(user.name);
1163-
if (user.email) qs += '&email=' + encode(user.email);
1164-
}
1161+
var encodedOptions = [];
11651162

1166-
var globalServer = this._getGlobalServer(this._parseDSN(dsn));
1163+
for (var key in options) {
1164+
if (key === 'user') {
1165+
var user = options.user;
1166+
if (user.name) encodedOptions.push('name=' + encode(user.name));
1167+
if (user.email) encodedOptions.push('email=' + encode(user.email));
1168+
} else {
1169+
encodedOptions.push(encode(key) + '=' + encode(options[key]));
1170+
}
1171+
}
1172+
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));
11671173

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

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

+3-3
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember/raven.js

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.4 (7d7202b) | 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.26.3',
355+
VERSION: '3.26.4',
356356

357357
debug: false,
358358

@@ -1090,34 +1090,40 @@ Raven.prototype = {
10901090
)
10911091
return;
10921092

1093-
options = options || {};
1093+
options = Object.assign(
1094+
{
1095+
eventId: this.lastEventId(),
1096+
dsn: this._dsn,
1097+
user: this._globalContext.user || {}
1098+
},
1099+
options
1100+
);
10941101

1095-
var lastEventId = options.eventId || this.lastEventId();
1096-
if (!lastEventId) {
1102+
if (!options.eventId) {
10971103
throw new RavenConfigError('Missing eventId');
10981104
}
10991105

1100-
var dsn = options.dsn || this._dsn;
1101-
if (!dsn) {
1106+
if (!options.dsn) {
11021107
throw new RavenConfigError('Missing DSN');
11031108
}
11041109

11051110
var encode = encodeURIComponent;
1106-
var qs = '';
1107-
qs += '?eventId=' + encode(lastEventId);
1108-
qs += '&dsn=' + encode(dsn);
1109-
1110-
var user = options.user || this._globalContext.user;
1111-
if (user) {
1112-
if (user.name) qs += '&name=' + encode(user.name);
1113-
if (user.email) qs += '&email=' + encode(user.email);
1114-
}
1111+
var encodedOptions = [];
11151112

1116-
var globalServer = this._getGlobalServer(this._parseDSN(dsn));
1113+
for (var key in options) {
1114+
if (key === 'user') {
1115+
var user = options.user;
1116+
if (user.name) encodedOptions.push('name=' + encode(user.name));
1117+
if (user.email) encodedOptions.push('email=' + encode(user.email));
1118+
} else {
1119+
encodedOptions.push(encode(key) + '=' + encode(options[key]));
1120+
}
1121+
}
1122+
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));
11171123

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

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

+2-2
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

+1-1
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

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.3 (3c01b01) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.4 (7d7202b) | 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.26.3',
389+
VERSION: '3.26.4',
390390

391391
debug: false,
392392

@@ -1124,34 +1124,40 @@ Raven.prototype = {
11241124
)
11251125
return;
11261126

1127-
options = options || {};
1127+
options = Object.assign(
1128+
{
1129+
eventId: this.lastEventId(),
1130+
dsn: this._dsn,
1131+
user: this._globalContext.user || {}
1132+
},
1133+
options
1134+
);
11281135

1129-
var lastEventId = options.eventId || this.lastEventId();
1130-
if (!lastEventId) {
1136+
if (!options.eventId) {
11311137
throw new RavenConfigError('Missing eventId');
11321138
}
11331139

1134-
var dsn = options.dsn || this._dsn;
1135-
if (!dsn) {
1140+
if (!options.dsn) {
11361141
throw new RavenConfigError('Missing DSN');
11371142
}
11381143

11391144
var encode = encodeURIComponent;
1140-
var qs = '';
1141-
qs += '?eventId=' + encode(lastEventId);
1142-
qs += '&dsn=' + encode(dsn);
1143-
1144-
var user = options.user || this._globalContext.user;
1145-
if (user) {
1146-
if (user.name) qs += '&name=' + encode(user.name);
1147-
if (user.email) qs += '&email=' + encode(user.email);
1148-
}
1145+
var encodedOptions = [];
11491146

1150-
var globalServer = this._getGlobalServer(this._parseDSN(dsn));
1147+
for (var key in options) {
1148+
if (key === 'user') {
1149+
var user = options.user;
1150+
if (user.name) encodedOptions.push('name=' + encode(user.name));
1151+
if (user.email) encodedOptions.push('email=' + encode(user.email));
1152+
} else {
1153+
encodedOptions.push(encode(key) + '=' + encode(options[key]));
1154+
}
1155+
}
1156+
var globalServer = this._getGlobalServer(this._parseDSN(options.dsn));
11511157

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

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

+3-3
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)