@openreplay/tracker 3.5.5 → 3.5.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/cjs/app/index.d.ts +1 -1
- package/cjs/app/index.js +2 -2
- package/cjs/index.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/cjs/app/index.d.ts
CHANGED
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.8'; // TODO: version compatability check inside each plugin.
|
|
33
33
|
this.preStartMessages = [];
|
|
34
34
|
this.projectKey = projectKey;
|
|
35
35
|
this.options = Object.assign({
|
|
@@ -308,7 +308,7 @@ class App {
|
|
|
308
308
|
return Promise.reject(reason);
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
|
-
start(options = {
|
|
311
|
+
start(options = {}) {
|
|
312
312
|
if (!document.hidden) {
|
|
313
313
|
return this._start(options);
|
|
314
314
|
}
|
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.8',
|
|
131
131
|
projectKey: options.projectKey,
|
|
132
132
|
doNotTrack,
|
|
133
133
|
// TODO: add precise reason (an exact API missing)
|
package/lib/app/index.d.ts
CHANGED
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.8'; // TODO: version compatability check inside each plugin.
|
|
30
30
|
this.preStartMessages = [];
|
|
31
31
|
this.projectKey = projectKey;
|
|
32
32
|
this.options = Object.assign({
|
|
@@ -305,7 +305,7 @@ export default class App {
|
|
|
305
305
|
return Promise.reject(reason);
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
start(options = {
|
|
308
|
+
start(options = {}) {
|
|
309
309
|
if (!document.hidden) {
|
|
310
310
|
return this._start(options);
|
|
311
311
|
}
|
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.8',
|
|
127
127
|
projectKey: options.projectKey,
|
|
128
128
|
doNotTrack,
|
|
129
129
|
// TODO: add precise reason (an exact API missing)
|