@openreplay/tracker 9.0.6 → 9.0.8
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/CHANGELOG.md +8 -0
- package/cjs/app/index.js +2 -2
- package/cjs/app/nodes.js +2 -0
- package/cjs/app/observer/top_observer.js +2 -1
- package/cjs/index.js +1 -1
- package/lib/app/index.js +2 -2
- package/lib/app/nodes.js +2 -0
- package/lib/app/observer/top_observer.js +2 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 9.0.8
|
|
2
|
+
|
|
3
|
+
- added slight delay to iframe handler (rapid updates of stacked frames used to break player)
|
|
4
|
+
|
|
5
|
+
# 9.0.7
|
|
6
|
+
|
|
7
|
+
- fix for `getSessionURL` method
|
|
8
|
+
|
|
1
9
|
# 9.0.6
|
|
2
10
|
|
|
3
11
|
- added `tokenUrlMatcher` option to network settings, allowing to ingest session token header to custom allowed urls
|
package/cjs/app/index.js
CHANGED
|
@@ -42,7 +42,7 @@ class App {
|
|
|
42
42
|
this.stopCallbacks = [];
|
|
43
43
|
this.commitCallbacks = [];
|
|
44
44
|
this.activityState = ActivityState.NotActive;
|
|
45
|
-
this.version = '9.0.
|
|
45
|
+
this.version = '9.0.8'; // TODO: version compatability check inside each plugin.
|
|
46
46
|
this.compressionThreshold = 24 * 1000;
|
|
47
47
|
this.restartAttempts = 0;
|
|
48
48
|
this.bc = null;
|
|
@@ -307,7 +307,7 @@ class App {
|
|
|
307
307
|
}
|
|
308
308
|
const ingest = this.options.ingestPoint;
|
|
309
309
|
const isSaas = /api\.openreplay\.com/.test(ingest);
|
|
310
|
-
const projectPath = isSaas ? 'https://openreplay.com/ingest' : ingest;
|
|
310
|
+
const projectPath = isSaas ? 'https://app.openreplay.com/ingest' : ingest;
|
|
311
311
|
const url = projectPath.replace(/ingest$/, `${projectID}/session/${sessionID}`);
|
|
312
312
|
if (options === null || options === void 0 ? void 0 : options.withCurrentTime) {
|
|
313
313
|
const jumpTo = (0, utils_js_1.now)() - timestamp;
|
package/cjs/app/nodes.js
CHANGED
|
@@ -72,7 +72,8 @@ class TopObserver extends observer_js_1.default {
|
|
|
72
72
|
//@ts-ignore https://github.com/microsoft/TypeScript/issues/41684
|
|
73
73
|
this.contextCallbacks.forEach((cb) => cb(currentWin));
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
// we need this delay because few iframes stacked one in another with rapid updates will break the player (or browser engine rather?)
|
|
76
|
+
}, 100));
|
|
76
77
|
iframe.addEventListener('load', handle); // why app.attachEventListener not working?
|
|
77
78
|
handle();
|
|
78
79
|
}
|
package/cjs/index.js
CHANGED
|
@@ -153,7 +153,7 @@ class API {
|
|
|
153
153
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
154
154
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
155
155
|
req.send(JSON.stringify({
|
|
156
|
-
trackerVersion: '9.0.
|
|
156
|
+
trackerVersion: '9.0.8',
|
|
157
157
|
projectKey: options.projectKey,
|
|
158
158
|
doNotTrack,
|
|
159
159
|
// TODO: add precise reason (an exact API missing)
|
package/lib/app/index.js
CHANGED
|
@@ -39,7 +39,7 @@ export default class App {
|
|
|
39
39
|
this.stopCallbacks = [];
|
|
40
40
|
this.commitCallbacks = [];
|
|
41
41
|
this.activityState = ActivityState.NotActive;
|
|
42
|
-
this.version = '9.0.
|
|
42
|
+
this.version = '9.0.8'; // TODO: version compatability check inside each plugin.
|
|
43
43
|
this.compressionThreshold = 24 * 1000;
|
|
44
44
|
this.restartAttempts = 0;
|
|
45
45
|
this.bc = null;
|
|
@@ -304,7 +304,7 @@ export default class App {
|
|
|
304
304
|
}
|
|
305
305
|
const ingest = this.options.ingestPoint;
|
|
306
306
|
const isSaas = /api\.openreplay\.com/.test(ingest);
|
|
307
|
-
const projectPath = isSaas ? 'https://openreplay.com/ingest' : ingest;
|
|
307
|
+
const projectPath = isSaas ? 'https://app.openreplay.com/ingest' : ingest;
|
|
308
308
|
const url = projectPath.replace(/ingest$/, `${projectID}/session/${sessionID}`);
|
|
309
309
|
if (options === null || options === void 0 ? void 0 : options.withCurrentTime) {
|
|
310
310
|
const jumpTo = now() - timestamp;
|
package/lib/app/nodes.js
CHANGED
|
@@ -70,7 +70,8 @@ export default class TopObserver extends Observer {
|
|
|
70
70
|
//@ts-ignore https://github.com/microsoft/TypeScript/issues/41684
|
|
71
71
|
this.contextCallbacks.forEach((cb) => cb(currentWin));
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
// we need this delay because few iframes stacked one in another with rapid updates will break the player (or browser engine rather?)
|
|
74
|
+
}, 100));
|
|
74
75
|
iframe.addEventListener('load', handle); // why app.attachEventListener not working?
|
|
75
76
|
handle();
|
|
76
77
|
}
|
package/lib/index.js
CHANGED
|
@@ -148,7 +148,7 @@ export default class API {
|
|
|
148
148
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
149
149
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
150
150
|
req.send(JSON.stringify({
|
|
151
|
-
trackerVersion: '9.0.
|
|
151
|
+
trackerVersion: '9.0.8',
|
|
152
152
|
projectKey: options.projectKey,
|
|
153
153
|
doNotTrack,
|
|
154
154
|
// TODO: add precise reason (an exact API missing)
|