@openreplay/tracker 12.0.4 → 12.0.5-beta.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.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.4'; // TODO: version compatability check inside each plugin.
84
+ this.version = '12.0.5-beta.0'; // 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.4',
101
+ trackerVersion: '12.0.5-beta.0',
102
102
  projectKey: this.options.projectKey,
103
103
  doNotTrack,
104
104
  reason,
@@ -41,9 +41,9 @@ function default_1(app) {
41
41
  return;
42
42
  }
43
43
  const resolvedSrcset = srcset
44
- .split(',')
44
+ .split(srcset.match(/,\s+/) ? /,\s+/ : ',')
45
45
  .map((str) => resolveURL(str))
46
- .join(',');
46
+ .join(', ');
47
47
  app.attributeSender.sendSetAttribute(id, 'srcset', resolvedSrcset);
48
48
  };
49
49
  const sendSrc = function (id, img) {
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.4'; // TODO: version compatability check inside each plugin.
55
+ this.version = '12.0.5-beta.0'; // 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.4',
70
+ trackerVersion: '12.0.5-beta.0',
71
71
  projectKey: this.options.projectKey,
72
72
  doNotTrack,
73
73
  reason,
@@ -39,9 +39,9 @@ export default function (app) {
39
39
  return;
40
40
  }
41
41
  const resolvedSrcset = srcset
42
- .split(',')
42
+ .split(srcset.match(/,\s+/) ? /,\s+/ : ',')
43
43
  .map((str) => resolveURL(str))
44
- .join(',');
44
+ .join(', ');
45
45
  app.attributeSender.sendSetAttribute(id, 'srcset', resolvedSrcset);
46
46
  };
47
47
  const sendSrc = function (id, img) {
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.4",
4
+ "version": "12.0.5-beta.0",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"