@openreplay/tracker 9.0.0-beta.2 → 9.0.1
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/index.js +14 -2
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/Network/index.js +14 -2
- package/package.json +1 -1
- package/coverage/clover.xml +0 -2973
- package/coverage/coverage-final.json +0 -44
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -191
- package/coverage/lcov-report/main/app/guards.ts.html +0 -229
- package/coverage/lcov-report/main/app/index.html +0 -206
- package/coverage/lcov-report/main/app/index.ts.html +0 -2149
- package/coverage/lcov-report/main/app/logger.ts.html +0 -277
- package/coverage/lcov-report/main/app/messages.gen.ts.html +0 -2752
- package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +0 -148
- package/coverage/lcov-report/main/app/observer/iframe_offsets.ts.html +0 -289
- package/coverage/lcov-report/main/app/observer/index.html +0 -161
- package/coverage/lcov-report/main/app/observer/shadow_root_observer.ts.html +0 -142
- package/coverage/lcov-report/main/app/observer/top_observer.ts.html +0 -535
- package/coverage/lcov-report/main/app/sanitizer.ts.html +0 -394
- package/coverage/lcov-report/main/app/session.ts.html +0 -601
- package/coverage/lcov-report/main/app/ticker.ts.html +0 -250
- package/coverage/lcov-report/main/index.html +0 -131
- package/coverage/lcov-report/main/index.ts.html +0 -1144
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +0 -949
- package/coverage/lcov-report/main/modules/Network/index.html +0 -176
- package/coverage/lcov-report/main/modules/Network/index.ts.html +0 -169
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +0 -382
- package/coverage/lcov-report/main/modules/Network/utils.ts.html +0 -700
- package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +0 -823
- package/coverage/lcov-report/main/modules/attributeSender.ts.html +0 -217
- package/coverage/lcov-report/main/modules/axiosSpy.ts.html +0 -700
- package/coverage/lcov-report/main/modules/connection.ts.html +0 -160
- package/coverage/lcov-report/main/modules/console.ts.html +0 -535
- package/coverage/lcov-report/main/modules/constructedStyleSheets.ts.html +0 -559
- package/coverage/lcov-report/main/modules/cssrules.ts.html +0 -418
- package/coverage/lcov-report/main/modules/exception.ts.html +0 -385
- package/coverage/lcov-report/main/modules/featureFlags.ts.html +0 -415
- package/coverage/lcov-report/main/modules/focus.ts.html +0 -220
- package/coverage/lcov-report/main/modules/fonts.ts.html +0 -289
- package/coverage/lcov-report/main/modules/img.ts.html +0 -433
- package/coverage/lcov-report/main/modules/index.html +0 -401
- package/coverage/lcov-report/main/modules/input.ts.html +0 -811
- package/coverage/lcov-report/main/modules/mouse.ts.html +0 -826
- package/coverage/lcov-report/main/modules/network.ts.html +0 -1129
- package/coverage/lcov-report/main/modules/performance.ts.html +0 -367
- package/coverage/lcov-report/main/modules/scroll.ts.html +0 -364
- package/coverage/lcov-report/main/modules/selection.ts.html +0 -202
- package/coverage/lcov-report/main/modules/tabs.ts.html +0 -124
- package/coverage/lcov-report/main/modules/timing.ts.html +0 -841
- package/coverage/lcov-report/main/modules/viewport.ts.html +0 -250
- package/coverage/lcov-report/main/utils.ts.html +0 -406
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/webworker/BatchWriter.ts.html +0 -481
- package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +0 -949
- package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +0 -436
- package/coverage/lcov-report/webworker/QueueSender.ts.html +0 -505
- package/coverage/lcov-report/webworker/index.html +0 -176
- package/coverage/lcov-report/webworker/index.ts.html +0 -616
- package/coverage/lcov.info +0 -5854
package/cjs/app/index.js
CHANGED
|
@@ -35,7 +35,7 @@ class App {
|
|
|
35
35
|
this.stopCallbacks = [];
|
|
36
36
|
this.commitCallbacks = [];
|
|
37
37
|
this.activityState = ActivityState.NotActive;
|
|
38
|
-
this.version = '9.0.
|
|
38
|
+
this.version = '9.0.1'; // TODO: version compatability check inside each plugin.
|
|
39
39
|
this.compressionThreshold = 24 * 1000;
|
|
40
40
|
this.restartAttempts = 0;
|
|
41
41
|
this.bc = null;
|
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.1',
|
|
157
157
|
projectKey: options.projectKey,
|
|
158
158
|
doNotTrack,
|
|
159
159
|
// TODO: add precise reason (an exact API missing)
|
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const fetchProxy_js_1 = require("./fetchProxy.js");
|
|
4
4
|
const xhrProxy_js_1 = require("./xhrProxy.js");
|
|
5
|
+
const getWarning = (api) => console.warn(`Openreplay: Can't find ${api} in global context.
|
|
6
|
+
If you're using serverside rendering in your app, make sure that tracker is loaded dynamically, otherwise ${api} won't be tracked.`);
|
|
5
7
|
function setProxy(context, ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl) {
|
|
6
|
-
context.XMLHttpRequest
|
|
7
|
-
|
|
8
|
+
if (context.XMLHttpRequest) {
|
|
9
|
+
context.XMLHttpRequest = xhrProxy_js_1.default.create(ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
getWarning('XMLHttpRequest');
|
|
13
|
+
}
|
|
14
|
+
if (context.fetch) {
|
|
15
|
+
context.fetch = fetchProxy_js_1.default.create(ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
getWarning('fetch');
|
|
19
|
+
}
|
|
8
20
|
}
|
|
9
21
|
exports.default = setProxy;
|
package/lib/app/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export default class App {
|
|
|
32
32
|
this.stopCallbacks = [];
|
|
33
33
|
this.commitCallbacks = [];
|
|
34
34
|
this.activityState = ActivityState.NotActive;
|
|
35
|
-
this.version = '9.0.
|
|
35
|
+
this.version = '9.0.1'; // TODO: version compatability check inside each plugin.
|
|
36
36
|
this.compressionThreshold = 24 * 1000;
|
|
37
37
|
this.restartAttempts = 0;
|
|
38
38
|
this.bc = null;
|
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.1',
|
|
152
152
|
projectKey: options.projectKey,
|
|
153
153
|
doNotTrack,
|
|
154
154
|
// TODO: add precise reason (an exact API missing)
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import FetchProxy from './fetchProxy.js';
|
|
2
2
|
import XHRProxy from './xhrProxy.js';
|
|
3
|
+
const getWarning = (api) => console.warn(`Openreplay: Can't find ${api} in global context.
|
|
4
|
+
If you're using serverside rendering in your app, make sure that tracker is loaded dynamically, otherwise ${api} won't be tracked.`);
|
|
3
5
|
export default function setProxy(context, ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl) {
|
|
4
|
-
context.XMLHttpRequest
|
|
5
|
-
|
|
6
|
+
if (context.XMLHttpRequest) {
|
|
7
|
+
context.XMLHttpRequest = XHRProxy.create(ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
getWarning('XMLHttpRequest');
|
|
11
|
+
}
|
|
12
|
+
if (context.fetch) {
|
|
13
|
+
context.fetch = FetchProxy.create(ignoredHeaders, setSessionTokenHeader, sanitize, sendMessage, isServiceUrl);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
getWarning('fetch');
|
|
17
|
+
}
|
|
6
18
|
}
|