@openreplay/tracker 12.0.1 → 12.0.2

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 CHANGED
@@ -1,3 +1,7 @@
1
+ # 12.0.2
2
+
3
+ - fix for canvas snapshot check
4
+
1
5
  # 12.0.1
2
6
 
3
7
  - pause canvas snapshotting when its offscreen
package/cjs/app/canvas.js CHANGED
@@ -25,7 +25,7 @@ class CanvasRecorder {
25
25
  entries.forEach((entry) => {
26
26
  if (entry.isIntersecting) {
27
27
  if (entry.target) {
28
- if (this.snapshots[id].createdAt) {
28
+ if (this.snapshots[id] && this.snapshots[id].createdAt) {
29
29
  this.snapshots[id].paused = false;
30
30
  }
31
31
  else {
@@ -39,7 +39,9 @@ class CanvasRecorder {
39
39
  // observer.unobserve(entry.target)
40
40
  }
41
41
  else {
42
- this.snapshots[id].paused = true;
42
+ if (this.snapshots[id]) {
43
+ this.snapshots[id].paused = true;
44
+ }
43
45
  }
44
46
  }
45
47
  });
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.1'; // TODO: version compatability check inside each plugin.
84
+ this.version = '12.0.2'; // TODO: version compatability check inside each plugin.
85
85
  this.compressionThreshold = 24 * 1000;
86
86
  this.restartAttempts = 0;
87
87
  this.bc = null;
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.1',
101
+ trackerVersion: '12.0.2',
102
102
  projectKey: this.options.projectKey,
103
103
  doNotTrack,
104
104
  reason,
package/lib/app/canvas.js CHANGED
@@ -23,7 +23,7 @@ class CanvasRecorder {
23
23
  entries.forEach((entry) => {
24
24
  if (entry.isIntersecting) {
25
25
  if (entry.target) {
26
- if (this.snapshots[id].createdAt) {
26
+ if (this.snapshots[id] && this.snapshots[id].createdAt) {
27
27
  this.snapshots[id].paused = false;
28
28
  }
29
29
  else {
@@ -37,7 +37,9 @@ class CanvasRecorder {
37
37
  // observer.unobserve(entry.target)
38
38
  }
39
39
  else {
40
- this.snapshots[id].paused = true;
40
+ if (this.snapshots[id]) {
41
+ this.snapshots[id].paused = true;
42
+ }
41
43
  }
42
44
  }
43
45
  });
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.1'; // TODO: version compatability check inside each plugin.
55
+ this.version = '12.0.2'; // TODO: version compatability check inside each plugin.
56
56
  this.compressionThreshold = 24 * 1000;
57
57
  this.restartAttempts = 0;
58
58
  this.bc = null;
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.1',
70
+ trackerVersion: '12.0.2',
71
71
  projectKey: this.options.projectKey,
72
72
  doNotTrack,
73
73
  reason,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "12.0.1",
4
+ "version": "12.0.2",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"