@openreplay/tracker 9.0.8 → 9.0.9

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
+ # 9.0.9
2
+
3
+ - Fix for `{disableStringDict: true}` behavior
4
+
1
5
  # 9.0.8
2
6
 
3
7
  - added slight delay to iframe handler (rapid updates of stacked frames used to break player)
package/cjs/app/index.js CHANGED
@@ -42,7 +42,7 @@ class App {
42
42
  this.stopCallbacks = [];
43
43
  this.commitCallbacks = [];
44
44
  this.activityState = ActivityState.NotActive;
45
- this.version = '9.0.8'; // TODO: version compatability check inside each plugin.
45
+ this.version = '9.0.9'; // TODO: version compatability check inside each plugin.
46
46
  this.compressionThreshold = 24 * 1000;
47
47
  this.restartAttempts = 0;
48
48
  this.bc = null;
package/cjs/index.js CHANGED
@@ -153,7 +153,7 @@ class API {
153
153
  // no-cors issue only with text/plain or not-set Content-Type
154
154
  // req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
155
155
  req.send(JSON.stringify({
156
- trackerVersion: '9.0.8',
156
+ trackerVersion: '9.0.9',
157
157
  projectKey: options.projectKey,
158
158
  doNotTrack,
159
159
  // TODO: add precise reason (an exact API missing)
@@ -25,15 +25,17 @@ class AttributeSender {
25
25
  sendSetAttribute(id, name, value) {
26
26
  if (this.isDictDisabled) {
27
27
  const msg = [12 /* Type.SetNodeAttribute */, id, name, value];
28
- this.app.send(msg);
28
+ return this.app.send(msg);
29
+ }
30
+ else {
31
+ const message = [
32
+ 51 /* Type.SetNodeAttributeDict */,
33
+ id,
34
+ this.applyDict(name),
35
+ this.applyDict(value),
36
+ ];
37
+ return this.app.send(message);
29
38
  }
30
- const message = [
31
- 51 /* Type.SetNodeAttributeDict */,
32
- id,
33
- this.applyDict(name),
34
- this.applyDict(value),
35
- ];
36
- this.app.send(message);
37
39
  }
38
40
  applyDict(str) {
39
41
  const [key, isNew] = this.dict.getKey(str);
package/lib/app/index.js CHANGED
@@ -39,7 +39,7 @@ export default class App {
39
39
  this.stopCallbacks = [];
40
40
  this.commitCallbacks = [];
41
41
  this.activityState = ActivityState.NotActive;
42
- this.version = '9.0.8'; // TODO: version compatability check inside each plugin.
42
+ this.version = '9.0.9'; // TODO: version compatability check inside each plugin.
43
43
  this.compressionThreshold = 24 * 1000;
44
44
  this.restartAttempts = 0;
45
45
  this.bc = null;
package/lib/index.js CHANGED
@@ -148,7 +148,7 @@ export default class API {
148
148
  // no-cors issue only with text/plain or not-set Content-Type
149
149
  // req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
150
150
  req.send(JSON.stringify({
151
- trackerVersion: '9.0.8',
151
+ trackerVersion: '9.0.9',
152
152
  projectKey: options.projectKey,
153
153
  doNotTrack,
154
154
  // TODO: add precise reason (an exact API missing)
@@ -21,15 +21,17 @@ export default class AttributeSender {
21
21
  sendSetAttribute(id, name, value) {
22
22
  if (this.isDictDisabled) {
23
23
  const msg = [12 /* Type.SetNodeAttribute */, id, name, value];
24
- this.app.send(msg);
24
+ return this.app.send(msg);
25
+ }
26
+ else {
27
+ const message = [
28
+ 51 /* Type.SetNodeAttributeDict */,
29
+ id,
30
+ this.applyDict(name),
31
+ this.applyDict(value),
32
+ ];
33
+ return this.app.send(message);
25
34
  }
26
- const message = [
27
- 51 /* Type.SetNodeAttributeDict */,
28
- id,
29
- this.applyDict(name),
30
- this.applyDict(value),
31
- ];
32
- this.app.send(message);
33
35
  }
34
36
  applyDict(str) {
35
37
  const [key, isNew] = this.dict.getKey(str);
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": "9.0.8",
4
+ "version": "9.0.9",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"