@openreplay/tracker 16.1.0-beta.5 → 16.1.0-beta.8
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/dist/cjs/entry.js +12 -6
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +12 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +12 -6
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +12 -6
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/entry.js
CHANGED
|
@@ -747,10 +747,8 @@ class StringDictionary {
|
|
|
747
747
|
class AttributeSender {
|
|
748
748
|
constructor(options) {
|
|
749
749
|
this.sendSetAttribute = (id, name, value) => {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
attr = attr.replace('[native code]', '');
|
|
753
|
-
}
|
|
750
|
+
// @ts-ignore
|
|
751
|
+
const attr = typeof value === 'string' ? value : (value.toString?.() ?? '');
|
|
754
752
|
if (this.isDictDisabled) {
|
|
755
753
|
const msg = [12 /* Type.SetNodeAttribute */, id, name, attr];
|
|
756
754
|
return this.app.send(msg);
|
|
@@ -4714,7 +4712,7 @@ class App {
|
|
|
4714
4712
|
this.stopCallbacks = [];
|
|
4715
4713
|
this.commitCallbacks = [];
|
|
4716
4714
|
this.activityState = ActivityState.NotActive;
|
|
4717
|
-
this.version = '16.1.0-beta.
|
|
4715
|
+
this.version = '16.1.0-beta.8'; // TODO: version compatability check inside each plugin.
|
|
4718
4716
|
this.socketMode = false;
|
|
4719
4717
|
this.compressionThreshold = 24 * 1000;
|
|
4720
4718
|
this.bc = null;
|
|
@@ -5355,6 +5353,14 @@ class App {
|
|
|
5355
5353
|
catch (e) {
|
|
5356
5354
|
console.log(this.messages.join('$___$'));
|
|
5357
5355
|
console.error(e);
|
|
5356
|
+
this.messages.forEach(m => {
|
|
5357
|
+
try {
|
|
5358
|
+
this.worker?.postMessage([m]);
|
|
5359
|
+
}
|
|
5360
|
+
catch (e) {
|
|
5361
|
+
console.error(m, e);
|
|
5362
|
+
}
|
|
5363
|
+
});
|
|
5358
5364
|
}
|
|
5359
5365
|
this.commitCallbacks.forEach((cb) => cb(this.messages));
|
|
5360
5366
|
this.messages.length = 0;
|
|
@@ -9183,7 +9189,7 @@ class API {
|
|
|
9183
9189
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9184
9190
|
const doNotTrack = this.checkDoNotTrack();
|
|
9185
9191
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9186
|
-
trackerVersion: '16.1.0-beta.
|
|
9192
|
+
trackerVersion: '16.1.0-beta.8',
|
|
9187
9193
|
projectKey: this.options.projectKey,
|
|
9188
9194
|
doNotTrack,
|
|
9189
9195
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|