polyv-rum-sdk 0.1.17 → 0.1.19
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -372,6 +372,9 @@ var transformDataForSLS = (data, context = {}) => {
|
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
374
|
var shouldReport = (data) => {
|
|
375
|
+
if (data.type === "init" || data.category === "init") {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
375
378
|
const dataType = data.type;
|
|
376
379
|
const sampleRate = mitoConfig.sampleRate[dataType] || 0;
|
|
377
380
|
if (sampleRate === 0)
|
package/dist/index.mjs
CHANGED
|
@@ -299,6 +299,9 @@ var transformDataForSLS = (data, context = {}) => {
|
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
301
|
var shouldReport = (data) => {
|
|
302
|
+
if (data.type === "init" || data.category === "init") {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
302
305
|
const dataType = data.type;
|
|
303
306
|
const sampleRate = mitoConfig.sampleRate[dataType] || 0;
|
|
304
307
|
if (sampleRate === 0)
|