@openreplay/tracker 5.0.5-beta.8 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/app/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/modules/network.js +1 -1
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/network.js +1 -1
- package/package.json +1 -1
package/cjs/app/index.js
CHANGED
|
@@ -33,7 +33,7 @@ class App {
|
|
|
33
33
|
this.stopCallbacks = [];
|
|
34
34
|
this.commitCallbacks = [];
|
|
35
35
|
this.activityState = ActivityState.NotActive;
|
|
36
|
-
this.version = '5.0.5
|
|
36
|
+
this.version = '5.0.5'; // TODO: version compatability check inside each plugin.
|
|
37
37
|
this._usingOldFetchPlugin = false;
|
|
38
38
|
this.delay = 0;
|
|
39
39
|
this.projectKey = projectKey;
|
package/cjs/index.js
CHANGED
|
@@ -140,7 +140,7 @@ class API {
|
|
|
140
140
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
141
141
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
142
142
|
req.send(JSON.stringify({
|
|
143
|
-
trackerVersion: '5.0.5
|
|
143
|
+
trackerVersion: '5.0.5',
|
|
144
144
|
projectKey: options.projectKey,
|
|
145
145
|
doNotTrack,
|
|
146
146
|
// TODO: add precise reason (an exact API missing)
|
package/cjs/modules/network.js
CHANGED
|
@@ -168,7 +168,7 @@ function default_1(app, opts = {}) {
|
|
|
168
168
|
if (!xhr.getAllResponseHeaders())
|
|
169
169
|
app.debug.warn('Openreplay: XHR no response headers returned');
|
|
170
170
|
const duration = startTime > 0 ? e.timeStamp - startTime : 0;
|
|
171
|
-
const hString =
|
|
171
|
+
const hString = xhr.getAllResponseHeaders(); // might be null (though only if no response received though)
|
|
172
172
|
const headersArr = hString.trim().split(/[\r\n]+/);
|
|
173
173
|
const headerMap = {};
|
|
174
174
|
headersArr.forEach(function (line) {
|
package/lib/app/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export default class App {
|
|
|
30
30
|
this.stopCallbacks = [];
|
|
31
31
|
this.commitCallbacks = [];
|
|
32
32
|
this.activityState = ActivityState.NotActive;
|
|
33
|
-
this.version = '5.0.5
|
|
33
|
+
this.version = '5.0.5'; // TODO: version compatability check inside each plugin.
|
|
34
34
|
this._usingOldFetchPlugin = false;
|
|
35
35
|
this.delay = 0;
|
|
36
36
|
this.projectKey = projectKey;
|
package/lib/index.js
CHANGED
|
@@ -135,7 +135,7 @@ export default class API {
|
|
|
135
135
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
136
136
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
137
137
|
req.send(JSON.stringify({
|
|
138
|
-
trackerVersion: '5.0.5
|
|
138
|
+
trackerVersion: '5.0.5',
|
|
139
139
|
projectKey: options.projectKey,
|
|
140
140
|
doNotTrack,
|
|
141
141
|
// TODO: add precise reason (an exact API missing)
|
package/lib/modules/network.js
CHANGED
|
@@ -166,7 +166,7 @@ export default function (app, opts = {}) {
|
|
|
166
166
|
if (!xhr.getAllResponseHeaders())
|
|
167
167
|
app.debug.warn('Openreplay: XHR no response headers returned');
|
|
168
168
|
const duration = startTime > 0 ? e.timeStamp - startTime : 0;
|
|
169
|
-
const hString =
|
|
169
|
+
const hString = xhr.getAllResponseHeaders(); // might be null (though only if no response received though)
|
|
170
170
|
const headersArr = hString.trim().split(/[\r\n]+/);
|
|
171
171
|
const headerMap = {};
|
|
172
172
|
headersArr.forEach(function (line) {
|