@openreplay/tracker 16.1.0-beta.2 → 16.1.0-beta.4

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/lib/entry.js CHANGED
@@ -744,7 +744,11 @@ class AttributeSender {
744
744
  constructor(options) {
745
745
  this.sendSetAttribute = (id, name, value) => {
746
746
  if (this.isDictDisabled) {
747
- const msg = [12 /* Type.SetNodeAttribute */, id, name, value];
747
+ let attr = `${value}`;
748
+ if (attr.includes('[native code]')) {
749
+ attr = attr.replace('[native code]', '');
750
+ }
751
+ const msg = [12 /* Type.SetNodeAttribute */, id, name, attr];
748
752
  return this.app.send(msg);
749
753
  }
750
754
  else {
@@ -4706,7 +4710,7 @@ class App {
4706
4710
  this.stopCallbacks = [];
4707
4711
  this.commitCallbacks = [];
4708
4712
  this.activityState = ActivityState.NotActive;
4709
- this.version = '16.1.0-beta.2'; // TODO: version compatability check inside each plugin.
4713
+ this.version = '16.1.0-beta.4'; // TODO: version compatability check inside each plugin.
4710
4714
  this.socketMode = false;
4711
4715
  this.compressionThreshold = 24 * 1000;
4712
4716
  this.bc = null;
@@ -9175,7 +9179,7 @@ class API {
9175
9179
  this.signalStartIssue = (reason, missingApi) => {
9176
9180
  const doNotTrack = this.checkDoNotTrack();
9177
9181
  console.log("Tracker couldn't start due to:", JSON.stringify({
9178
- trackerVersion: '16.1.0-beta.2',
9182
+ trackerVersion: '16.1.0-beta.4',
9179
9183
  projectKey: this.options.projectKey,
9180
9184
  doNotTrack,
9181
9185
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,