@openreplay/tracker 12.0.0-beta.9 → 12.0.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/index.d.ts +1 -1
- package/cjs/app/index.js +2 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +2 -2
- package/cjs/modules/conditionsManager.js +0 -1
- package/cjs/modules/tagWatcher.js +2 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/modules/conditionsManager.js +0 -1
- package/lib/modules/tagWatcher.js +2 -1
- package/package.json +1 -1
package/cjs/app/index.d.ts
CHANGED
|
@@ -193,7 +193,7 @@ export default class App {
|
|
|
193
193
|
* Uploads the stored session buffer to backend
|
|
194
194
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
195
195
|
* so the session can be uploaded properly
|
|
196
|
-
* @resolve
|
|
196
|
+
* @resolve - if messages were loaded in service worker successfully
|
|
197
197
|
* @reject {string} - error message
|
|
198
198
|
* */
|
|
199
199
|
uploadOfflineRecording(): Promise<void>;
|
package/cjs/app/index.js
CHANGED
|
@@ -81,7 +81,7 @@ class App {
|
|
|
81
81
|
this.stopCallbacks = [];
|
|
82
82
|
this.commitCallbacks = [];
|
|
83
83
|
this.activityState = ActivityState.NotActive;
|
|
84
|
-
this.version = '12.0.0
|
|
84
|
+
this.version = '12.0.0'; // TODO: version compatability check inside each plugin.
|
|
85
85
|
this.compressionThreshold = 24 * 1000;
|
|
86
86
|
this.restartAttempts = 0;
|
|
87
87
|
this.bc = null;
|
|
@@ -663,7 +663,7 @@ class App {
|
|
|
663
663
|
* Uploads the stored session buffer to backend
|
|
664
664
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
665
665
|
* so the session can be uploaded properly
|
|
666
|
-
* @resolve
|
|
666
|
+
* @resolve - if messages were loaded in service worker successfully
|
|
667
667
|
* @reject {string} - error message
|
|
668
668
|
* */
|
|
669
669
|
async uploadOfflineRecording() {
|
package/cjs/index.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export default class API {
|
|
|
82
82
|
* Uploads the stored session buffer to backend
|
|
83
83
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
84
84
|
* so the session can be uploaded properly
|
|
85
|
-
* @resolve
|
|
85
|
+
* @resolve - if messages were loaded into service worker successfully
|
|
86
86
|
* @reject {string} - error message
|
|
87
87
|
* */
|
|
88
88
|
uploadOfflineRecording(): Promise<void> | undefined;
|
package/cjs/index.js
CHANGED
|
@@ -98,7 +98,7 @@ class API {
|
|
|
98
98
|
const orig = this.options.ingestPoint || index_js_1.DEFAULT_INGEST_POINT;
|
|
99
99
|
req.open('POST', orig + '/v1/web/not-started');
|
|
100
100
|
req.send(JSON.stringify({
|
|
101
|
-
trackerVersion: '12.0.0
|
|
101
|
+
trackerVersion: '12.0.0',
|
|
102
102
|
projectKey: this.options.projectKey,
|
|
103
103
|
doNotTrack,
|
|
104
104
|
reason,
|
|
@@ -335,7 +335,7 @@ class API {
|
|
|
335
335
|
* Uploads the stored session buffer to backend
|
|
336
336
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
337
337
|
* so the session can be uploaded properly
|
|
338
|
-
* @resolve
|
|
338
|
+
* @resolve - if messages were loaded into service worker successfully
|
|
339
339
|
* @reject {string} - error message
|
|
340
340
|
* */
|
|
341
341
|
uploadOfflineRecording() {
|
|
@@ -170,7 +170,6 @@ class ConditionsManager {
|
|
|
170
170
|
if (evConds.length) {
|
|
171
171
|
evConds.forEach((evCond) => {
|
|
172
172
|
const operator = operators[evCond.operator];
|
|
173
|
-
console.log(operator, evCond, operator(message[1], evCond.value), operator(message[2], evCond.value));
|
|
174
173
|
if (operator &&
|
|
175
174
|
(operator(message[1], evCond.value) || operator(message[2], evCond.value))) {
|
|
176
175
|
this.trigger(evCond.name);
|
|
@@ -38,7 +38,8 @@ class TagWatcher {
|
|
|
38
38
|
.then(({ tags }) => {
|
|
39
39
|
if (tags && tags.length) {
|
|
40
40
|
this.setTags(tags);
|
|
41
|
-
|
|
41
|
+
const tagString = JSON.stringify(tags);
|
|
42
|
+
this.sessionStorage.setItem(exports.WATCHED_TAGS_KEY, tagString || '');
|
|
42
43
|
}
|
|
43
44
|
})
|
|
44
45
|
.catch((e) => this.errLog(e));
|
package/lib/app/index.d.ts
CHANGED
|
@@ -193,7 +193,7 @@ export default class App {
|
|
|
193
193
|
* Uploads the stored session buffer to backend
|
|
194
194
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
195
195
|
* so the session can be uploaded properly
|
|
196
|
-
* @resolve
|
|
196
|
+
* @resolve - if messages were loaded in service worker successfully
|
|
197
197
|
* @reject {string} - error message
|
|
198
198
|
* */
|
|
199
199
|
uploadOfflineRecording(): Promise<void>;
|
package/lib/app/index.js
CHANGED
|
@@ -52,7 +52,7 @@ export default class App {
|
|
|
52
52
|
this.stopCallbacks = [];
|
|
53
53
|
this.commitCallbacks = [];
|
|
54
54
|
this.activityState = ActivityState.NotActive;
|
|
55
|
-
this.version = '12.0.0
|
|
55
|
+
this.version = '12.0.0'; // TODO: version compatability check inside each plugin.
|
|
56
56
|
this.compressionThreshold = 24 * 1000;
|
|
57
57
|
this.restartAttempts = 0;
|
|
58
58
|
this.bc = null;
|
|
@@ -634,7 +634,7 @@ export default class App {
|
|
|
634
634
|
* Uploads the stored session buffer to backend
|
|
635
635
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
636
636
|
* so the session can be uploaded properly
|
|
637
|
-
* @resolve
|
|
637
|
+
* @resolve - if messages were loaded in service worker successfully
|
|
638
638
|
* @reject {string} - error message
|
|
639
639
|
* */
|
|
640
640
|
async uploadOfflineRecording() {
|
package/lib/index.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export default class API {
|
|
|
82
82
|
* Uploads the stored session buffer to backend
|
|
83
83
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
84
84
|
* so the session can be uploaded properly
|
|
85
|
-
* @resolve
|
|
85
|
+
* @resolve - if messages were loaded into service worker successfully
|
|
86
86
|
* @reject {string} - error message
|
|
87
87
|
* */
|
|
88
88
|
uploadOfflineRecording(): Promise<void> | undefined;
|
package/lib/index.js
CHANGED
|
@@ -67,7 +67,7 @@ export default class API {
|
|
|
67
67
|
const orig = this.options.ingestPoint || DEFAULT_INGEST_POINT;
|
|
68
68
|
req.open('POST', orig + '/v1/web/not-started');
|
|
69
69
|
req.send(JSON.stringify({
|
|
70
|
-
trackerVersion: '12.0.0
|
|
70
|
+
trackerVersion: '12.0.0',
|
|
71
71
|
projectKey: this.options.projectKey,
|
|
72
72
|
doNotTrack,
|
|
73
73
|
reason,
|
|
@@ -304,7 +304,7 @@ export default class API {
|
|
|
304
304
|
* Uploads the stored session buffer to backend
|
|
305
305
|
* @returns promise that resolves once messages are loaded, it has to be awaited
|
|
306
306
|
* so the session can be uploaded properly
|
|
307
|
-
* @resolve
|
|
307
|
+
* @resolve - if messages were loaded into service worker successfully
|
|
308
308
|
* @reject {string} - error message
|
|
309
309
|
* */
|
|
310
310
|
uploadOfflineRecording() {
|
|
@@ -168,7 +168,6 @@ export default class ConditionsManager {
|
|
|
168
168
|
if (evConds.length) {
|
|
169
169
|
evConds.forEach((evCond) => {
|
|
170
170
|
const operator = operators[evCond.operator];
|
|
171
|
-
console.log(operator, evCond, operator(message[1], evCond.value), operator(message[2], evCond.value));
|
|
172
171
|
if (operator &&
|
|
173
172
|
(operator(message[1], evCond.value) || operator(message[2], evCond.value))) {
|
|
174
173
|
this.trigger(evCond.name);
|
|
@@ -35,7 +35,8 @@ class TagWatcher {
|
|
|
35
35
|
.then(({ tags }) => {
|
|
36
36
|
if (tags && tags.length) {
|
|
37
37
|
this.setTags(tags);
|
|
38
|
-
|
|
38
|
+
const tagString = JSON.stringify(tags);
|
|
39
|
+
this.sessionStorage.setItem(WATCHED_TAGS_KEY, tagString || '');
|
|
39
40
|
}
|
|
40
41
|
})
|
|
41
42
|
.catch((e) => this.errLog(e));
|