@openreplay/tracker 16.1.0-beta.6 → 16.1.0-beta.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/dist/cjs/entry.js +8 -6
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +8 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/modules/attributeSender.d.ts +2 -2
- package/dist/lib/entry.js +8 -6
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +8 -6
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/modules/attributeSender.d.ts +2 -2
- package/dist/types/main/modules/attributeSender.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/entry.js
CHANGED
|
@@ -747,15 +747,16 @@ 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);
|
|
757
755
|
}
|
|
758
756
|
else {
|
|
757
|
+
if (typeof this.applyDict(attr) !== 'number') {
|
|
758
|
+
console.log(id, name, value, this.app.nodes.getNode(id));
|
|
759
|
+
}
|
|
759
760
|
const message = [
|
|
760
761
|
35 /* Type.SetNodeAttributeDictGlobal */,
|
|
761
762
|
id,
|
|
@@ -4714,7 +4715,7 @@ class App {
|
|
|
4714
4715
|
this.stopCallbacks = [];
|
|
4715
4716
|
this.commitCallbacks = [];
|
|
4716
4717
|
this.activityState = ActivityState.NotActive;
|
|
4717
|
-
this.version = '16.1.0-beta.
|
|
4718
|
+
this.version = '16.1.0-beta.9'; // TODO: version compatability check inside each plugin.
|
|
4718
4719
|
this.socketMode = false;
|
|
4719
4720
|
this.compressionThreshold = 24 * 1000;
|
|
4720
4721
|
this.bc = null;
|
|
@@ -5354,6 +5355,7 @@ class App {
|
|
|
5354
5355
|
}
|
|
5355
5356
|
catch (e) {
|
|
5356
5357
|
console.log(this.messages.join('$___$'));
|
|
5358
|
+
console.log(this.attributeSender.dict);
|
|
5357
5359
|
console.error(e);
|
|
5358
5360
|
this.messages.forEach(m => {
|
|
5359
5361
|
try {
|
|
@@ -9191,7 +9193,7 @@ class API {
|
|
|
9191
9193
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9192
9194
|
const doNotTrack = this.checkDoNotTrack();
|
|
9193
9195
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9194
|
-
trackerVersion: '16.1.0-beta.
|
|
9196
|
+
trackerVersion: '16.1.0-beta.9',
|
|
9195
9197
|
projectKey: this.options.projectKey,
|
|
9196
9198
|
doNotTrack,
|
|
9197
9199
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|