@djangocfg/monitor 2.1.239 → 2.1.241

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/client.cjs CHANGED
@@ -1364,7 +1364,7 @@ __name(sendBatch, "sendBatch");
1364
1364
  // src/client/utils/env.ts
1365
1365
  var isDevelopment = process.env.NODE_ENV === "development";
1366
1366
  var isProduction = !isDevelopment;
1367
- var MONITOR_VERSION = "2.1.239";
1367
+ var MONITOR_VERSION = "2.1.241";
1368
1368
 
1369
1369
  // src/client/constants.ts
1370
1370
  var MONITOR_INGEST_PATTERN = /cfg\/monitor\/ingest/;
@@ -1432,8 +1432,8 @@ var monitorStore = (0, import_vanilla.createStore)((set, get) => ({
1432
1432
  const { buffer, _pausedUntil } = get();
1433
1433
  if (buffer.length === 0) return;
1434
1434
  if (Date.now() < _pausedUntil) return;
1435
- const batch = buffer.slice(0, 50);
1436
- set({ buffer: buffer.slice(50) });
1435
+ const batch = buffer.slice(0, 25);
1436
+ set({ buffer: buffer.slice(25) });
1437
1437
  sendBatch({ events: batch }, useBeacon).then(
1438
1438
  () => {
1439
1439
  set({ _consecutiveFailures: 0, _pausedUntil: 0 });