@openreplay/tracker 16.1.0-beta.3 → 16.1.0-beta.5

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 CHANGED
@@ -747,8 +747,11 @@ class StringDictionary {
747
747
  class AttributeSender {
748
748
  constructor(options) {
749
749
  this.sendSetAttribute = (id, name, value) => {
750
+ let attr = `${value}`;
751
+ if (attr.includes('[native code]')) {
752
+ attr = attr.replace('[native code]', '');
753
+ }
750
754
  if (this.isDictDisabled) {
751
- const attr = `${value}`;
752
755
  const msg = [12 /* Type.SetNodeAttribute */, id, name, attr];
753
756
  return this.app.send(msg);
754
757
  }
@@ -757,7 +760,7 @@ class AttributeSender {
757
760
  35 /* Type.SetNodeAttributeDictGlobal */,
758
761
  id,
759
762
  this.applyDict(name),
760
- this.applyDict(value),
763
+ this.applyDict(attr),
761
764
  ];
762
765
  return this.app.send(message);
763
766
  }
@@ -4711,7 +4714,7 @@ class App {
4711
4714
  this.stopCallbacks = [];
4712
4715
  this.commitCallbacks = [];
4713
4716
  this.activityState = ActivityState.NotActive;
4714
- this.version = '16.1.0-beta.3'; // TODO: version compatability check inside each plugin.
4717
+ this.version = '16.1.0-beta.5'; // TODO: version compatability check inside each plugin.
4715
4718
  this.socketMode = false;
4716
4719
  this.compressionThreshold = 24 * 1000;
4717
4720
  this.bc = null;
@@ -9180,7 +9183,7 @@ class API {
9180
9183
  this.signalStartIssue = (reason, missingApi) => {
9181
9184
  const doNotTrack = this.checkDoNotTrack();
9182
9185
  console.log("Tracker couldn't start due to:", JSON.stringify({
9183
- trackerVersion: '16.1.0-beta.3',
9186
+ trackerVersion: '16.1.0-beta.5',
9184
9187
  projectKey: this.options.projectKey,
9185
9188
  doNotTrack,
9186
9189
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,