polyv-rum-sdk 0.1.18 → 0.1.20

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/index.js CHANGED
@@ -372,7 +372,7 @@ var transformDataForSLS = (data, context = {}) => {
372
372
  };
373
373
  };
374
374
  var shouldReport = (data) => {
375
- if (data.type === "init") {
375
+ if (data.type === "init" || data.category === "init") {
376
376
  return false;
377
377
  }
378
378
  const dataType = data.type;
@@ -468,13 +468,6 @@ var SLSWebTrackingAdapter = class {
468
468
  trackerInstance: !!this.slsTracker
469
469
  });
470
470
  }
471
- await this.sendLog({
472
- type: "system",
473
- category: "init",
474
- message: "SLS WebTracking adapter initialized successfully",
475
- level: "info",
476
- timestamp: Date.now()
477
- });
478
471
  } catch (error) {
479
472
  console.error("\u274C Failed to initialize SLSWebTrackingAdapter:", error);
480
473
  this.handleError(error);
package/dist/index.mjs CHANGED
@@ -299,7 +299,7 @@ var transformDataForSLS = (data, context = {}) => {
299
299
  };
300
300
  };
301
301
  var shouldReport = (data) => {
302
- if (data.type === "init") {
302
+ if (data.type === "init" || data.category === "init") {
303
303
  return false;
304
304
  }
305
305
  const dataType = data.type;
@@ -395,13 +395,6 @@ var SLSWebTrackingAdapter = class {
395
395
  trackerInstance: !!this.slsTracker
396
396
  });
397
397
  }
398
- await this.sendLog({
399
- type: "system",
400
- category: "init",
401
- message: "SLS WebTracking adapter initialized successfully",
402
- level: "info",
403
- timestamp: Date.now()
404
- });
405
398
  } catch (error) {
406
399
  console.error("\u274C Failed to initialize SLSWebTrackingAdapter:", error);
407
400
  this.handleError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polyv-rum-sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",