@openreplay/tracker 16.1.0-beta.4 → 16.1.0-beta.6
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 +15 -7
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +15 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +15 -7
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +15 -7
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -743,11 +743,11 @@ class StringDictionary {
|
|
|
743
743
|
class AttributeSender {
|
|
744
744
|
constructor(options) {
|
|
745
745
|
this.sendSetAttribute = (id, name, value) => {
|
|
746
|
+
let attr = `${value}`;
|
|
747
|
+
if (attr.includes('[native code]')) {
|
|
748
|
+
attr = attr.replace('[native code]', '');
|
|
749
|
+
}
|
|
746
750
|
if (this.isDictDisabled) {
|
|
747
|
-
let attr = `${value}`;
|
|
748
|
-
if (attr.includes('[native code]')) {
|
|
749
|
-
attr = attr.replace('[native code]', '');
|
|
750
|
-
}
|
|
751
751
|
const msg = [12 /* Type.SetNodeAttribute */, id, name, attr];
|
|
752
752
|
return this.app.send(msg);
|
|
753
753
|
}
|
|
@@ -756,7 +756,7 @@ class AttributeSender {
|
|
|
756
756
|
35 /* Type.SetNodeAttributeDictGlobal */,
|
|
757
757
|
id,
|
|
758
758
|
this.applyDict(name),
|
|
759
|
-
this.applyDict(
|
|
759
|
+
this.applyDict(attr),
|
|
760
760
|
];
|
|
761
761
|
return this.app.send(message);
|
|
762
762
|
}
|
|
@@ -4710,7 +4710,7 @@ class App {
|
|
|
4710
4710
|
this.stopCallbacks = [];
|
|
4711
4711
|
this.commitCallbacks = [];
|
|
4712
4712
|
this.activityState = ActivityState.NotActive;
|
|
4713
|
-
this.version = '16.1.0-beta.
|
|
4713
|
+
this.version = '16.1.0-beta.6'; // TODO: version compatability check inside each plugin.
|
|
4714
4714
|
this.socketMode = false;
|
|
4715
4715
|
this.compressionThreshold = 24 * 1000;
|
|
4716
4716
|
this.bc = null;
|
|
@@ -5351,6 +5351,14 @@ class App {
|
|
|
5351
5351
|
catch (e) {
|
|
5352
5352
|
console.log(this.messages.join('$___$'));
|
|
5353
5353
|
console.error(e);
|
|
5354
|
+
this.messages.forEach(m => {
|
|
5355
|
+
try {
|
|
5356
|
+
this.worker?.postMessage([m]);
|
|
5357
|
+
}
|
|
5358
|
+
catch (e) {
|
|
5359
|
+
console.error(m, e);
|
|
5360
|
+
}
|
|
5361
|
+
});
|
|
5354
5362
|
}
|
|
5355
5363
|
this.commitCallbacks.forEach((cb) => cb(this.messages));
|
|
5356
5364
|
this.messages.length = 0;
|
|
@@ -9179,7 +9187,7 @@ class API {
|
|
|
9179
9187
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9180
9188
|
const doNotTrack = this.checkDoNotTrack();
|
|
9181
9189
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9182
|
-
trackerVersion: '16.1.0-beta.
|
|
9190
|
+
trackerVersion: '16.1.0-beta.6',
|
|
9183
9191
|
projectKey: this.options.projectKey,
|
|
9184
9192
|
doNotTrack,
|
|
9185
9193
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|