@openreplay/tracker 3.5.4 → 3.5.5-beta.0
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/context.js +2 -2
- package/cjs/app/index.js +1 -1
- package/cjs/index.js +1 -1
- package/lib/app/context.js +2 -2
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/cjs/app/context.js
CHANGED
|
@@ -12,13 +12,13 @@ function isInstance(node, constr) {
|
|
|
12
12
|
// @ts-ignore (for EI, Safary)
|
|
13
13
|
doc.parentWindow ||
|
|
14
14
|
doc.defaultView; // TODO: smart global typing for Window object
|
|
15
|
-
while (
|
|
15
|
+
while (context !== window) {
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
if (node instanceof context[constr.name]) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
context = context.parent ||
|
|
21
|
+
context = context.parent || window;
|
|
22
22
|
}
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
return node instanceof context[constr.name];
|
package/cjs/app/index.js
CHANGED
|
@@ -29,7 +29,7 @@ class App {
|
|
|
29
29
|
this.stopCallbacks = [];
|
|
30
30
|
this.commitCallbacks = [];
|
|
31
31
|
this.activityState = ActivityState.NotActive;
|
|
32
|
-
this.version = '3.5.
|
|
32
|
+
this.version = '3.5.5-beta.0'; // TODO: version compatability check inside each plugin.
|
|
33
33
|
this.preStartMessages = [];
|
|
34
34
|
this.projectKey = projectKey;
|
|
35
35
|
this.options = Object.assign({
|
package/cjs/index.js
CHANGED
|
@@ -127,7 +127,7 @@ class API {
|
|
|
127
127
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
128
128
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
129
129
|
req.send(JSON.stringify({
|
|
130
|
-
trackerVersion: '3.5.
|
|
130
|
+
trackerVersion: '3.5.5-beta.0',
|
|
131
131
|
projectKey: options.projectKey,
|
|
132
132
|
doNotTrack,
|
|
133
133
|
// TODO: add precise reason (an exact API missing)
|
package/lib/app/context.js
CHANGED
|
@@ -9,13 +9,13 @@ export function isInstance(node, constr) {
|
|
|
9
9
|
// @ts-ignore (for EI, Safary)
|
|
10
10
|
doc.parentWindow ||
|
|
11
11
|
doc.defaultView; // TODO: smart global typing for Window object
|
|
12
|
-
while (
|
|
12
|
+
while (context !== window) {
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
if (node instanceof context[constr.name]) {
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
context = context.parent ||
|
|
18
|
+
context = context.parent || window;
|
|
19
19
|
}
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
return node instanceof context[constr.name];
|
package/lib/app/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export default class App {
|
|
|
26
26
|
this.stopCallbacks = [];
|
|
27
27
|
this.commitCallbacks = [];
|
|
28
28
|
this.activityState = ActivityState.NotActive;
|
|
29
|
-
this.version = '3.5.
|
|
29
|
+
this.version = '3.5.5-beta.0'; // TODO: version compatability check inside each plugin.
|
|
30
30
|
this.preStartMessages = [];
|
|
31
31
|
this.projectKey = projectKey;
|
|
32
32
|
this.options = Object.assign({
|
package/lib/index.js
CHANGED
|
@@ -123,7 +123,7 @@ export default class API {
|
|
|
123
123
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
124
124
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
125
125
|
req.send(JSON.stringify({
|
|
126
|
-
trackerVersion: '3.5.
|
|
126
|
+
trackerVersion: '3.5.5-beta.0',
|
|
127
127
|
projectKey: options.projectKey,
|
|
128
128
|
doNotTrack,
|
|
129
129
|
// TODO: add precise reason (an exact API missing)
|