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