@openreplay/tracker 14.0.0 → 14.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/CHANGELOG.md CHANGED
@@ -1,12 +1,9 @@
1
- # 15.0.0
2
-
3
- - updated graphql plugin and messages
4
-
5
1
  # 14.0.0
6
2
 
7
3
  - titles for tabs
8
4
  - new `MouseClick` message to introduce heatmaps instead of clickmaps
9
5
  - crossdomain iframe tracking functionality
6
+ - updated graphql plugin and messages
10
7
 
11
8
  # 13.0.2
12
9
 
package/bun.lockb CHANGED
Binary file
package/cjs/app/canvas.js CHANGED
@@ -150,6 +150,7 @@ function captureSnapshot(canvas, quality = 'medium', dummy, fixedScaling = false
150
150
  if (!ctx) {
151
151
  return '';
152
152
  }
153
+ ctx.clearRect(0, 0, dummy.width, dummy.height);
153
154
  ctx.drawImage(canvas, 0, 0, dummy.width, dummy.height);
154
155
  dummy.toBlob(onBlob, imageFormat, qualityInt[quality]);
155
156
  }
@@ -157,6 +158,16 @@ function captureSnapshot(canvas, quality = 'medium', dummy, fixedScaling = false
157
158
  canvas.toBlob(onBlob, imageFormat, qualityInt[quality]);
158
159
  }
159
160
  }
161
+ function saveImageData(imageDataBlob, name) {
162
+ const imageDataUrl = URL.createObjectURL(imageDataBlob);
163
+ const link = document.createElement('a');
164
+ link.href = imageDataUrl;
165
+ link.download = name;
166
+ link.style.display = 'none';
167
+ document.body.appendChild(link);
168
+ link.click();
169
+ document.body.removeChild(link);
170
+ }
160
171
  function dataUrlToBlob(dataUrl) {
161
172
  const [header, base64] = dataUrl.split(',');
162
173
  if (!header || !base64)
@@ -173,14 +184,4 @@ function dataUrlToBlob(dataUrl) {
173
184
  }
174
185
  return [new Blob([u8arr], { type: mime }), u8arr];
175
186
  }
176
- function saveImageData(imageDataBlob, name) {
177
- const imageDataUrl = URL.createObjectURL(imageDataBlob);
178
- const link = document.createElement('a');
179
- link.href = imageDataUrl;
180
- link.download = name;
181
- link.style.display = 'none';
182
- document.body.appendChild(link);
183
- link.click();
184
- document.body.removeChild(link);
185
- }
186
187
  exports.default = CanvasRecorder;
package/cjs/app/index.js CHANGED
@@ -94,7 +94,7 @@ class App {
94
94
  this.stopCallbacks = [];
95
95
  this.commitCallbacks = [];
96
96
  this.activityState = ActivityState.NotActive;
97
- this.version = '14.0.0'; // TODO: version compatability check inside each plugin.
97
+ this.version = '14.0.1'; // TODO: version compatability check inside each plugin.
98
98
  this.socketMode = false;
99
99
  this.compressionThreshold = 24 * 1000;
100
100
  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: '14.0.0',
101
+ trackerVersion: '14.0.1',
102
102
  projectKey: this.options.projectKey,
103
103
  doNotTrack,
104
104
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
package/lib/app/canvas.js CHANGED
@@ -148,6 +148,7 @@ function captureSnapshot(canvas, quality = 'medium', dummy, fixedScaling = false
148
148
  if (!ctx) {
149
149
  return '';
150
150
  }
151
+ ctx.clearRect(0, 0, dummy.width, dummy.height);
151
152
  ctx.drawImage(canvas, 0, 0, dummy.width, dummy.height);
152
153
  dummy.toBlob(onBlob, imageFormat, qualityInt[quality]);
153
154
  }
@@ -155,6 +156,16 @@ function captureSnapshot(canvas, quality = 'medium', dummy, fixedScaling = false
155
156
  canvas.toBlob(onBlob, imageFormat, qualityInt[quality]);
156
157
  }
157
158
  }
159
+ function saveImageData(imageDataBlob, name) {
160
+ const imageDataUrl = URL.createObjectURL(imageDataBlob);
161
+ const link = document.createElement('a');
162
+ link.href = imageDataUrl;
163
+ link.download = name;
164
+ link.style.display = 'none';
165
+ document.body.appendChild(link);
166
+ link.click();
167
+ document.body.removeChild(link);
168
+ }
158
169
  function dataUrlToBlob(dataUrl) {
159
170
  const [header, base64] = dataUrl.split(',');
160
171
  if (!header || !base64)
@@ -171,14 +182,4 @@ function dataUrlToBlob(dataUrl) {
171
182
  }
172
183
  return [new Blob([u8arr], { type: mime }), u8arr];
173
184
  }
174
- function saveImageData(imageDataBlob, name) {
175
- const imageDataUrl = URL.createObjectURL(imageDataBlob);
176
- const link = document.createElement('a');
177
- link.href = imageDataUrl;
178
- link.download = name;
179
- link.style.display = 'none';
180
- document.body.appendChild(link);
181
- link.click();
182
- document.body.removeChild(link);
183
- }
184
185
  export default CanvasRecorder;
package/lib/app/index.js CHANGED
@@ -65,7 +65,7 @@ export default class App {
65
65
  this.stopCallbacks = [];
66
66
  this.commitCallbacks = [];
67
67
  this.activityState = ActivityState.NotActive;
68
- this.version = '14.0.0'; // TODO: version compatability check inside each plugin.
68
+ this.version = '14.0.1'; // TODO: version compatability check inside each plugin.
69
69
  this.socketMode = false;
70
70
  this.compressionThreshold = 24 * 1000;
71
71
  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: '14.0.0',
70
+ trackerVersion: '14.0.1',
71
71
  projectKey: this.options.projectKey,
72
72
  doNotTrack,
73
73
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : 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": "14.0.0",
4
+ "version": "14.0.1",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"
@@ -38,7 +38,6 @@
38
38
  "eslint": "^7.8.0",
39
39
  "eslint-config-prettier": "^9.0.0",
40
40
  "eslint-plugin-prettier": "^5.0.1",
41
- "husky": "^8.0.1",
42
41
  "jest": "^29.3.1",
43
42
  "jest-environment-jsdom": "^29.3.1",
44
43
  "lint-staged": "^13.0.3",
@@ -58,11 +57,6 @@
58
57
  "engines": {
59
58
  "node": ">=14.0"
60
59
  },
61
- "husky": {
62
- "hooks": {
63
- "pre-commit": "sh lint.sh"
64
- }
65
- },
66
60
  "lint-staged": {
67
61
  "*.{js,mjs,jsx,ts,tsx}": [
68
62
  "eslint --fix --quiet"