@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.mjs CHANGED
@@ -1341,7 +1341,7 @@ __name(sendBatch, "sendBatch");
1341
1341
  // src/client/utils/env.ts
1342
1342
  var isDevelopment = process.env.NODE_ENV === "development";
1343
1343
  var isProduction = !isDevelopment;
1344
- var MONITOR_VERSION = "2.1.239";
1344
+ var MONITOR_VERSION = "2.1.241";
1345
1345
 
1346
1346
  // src/client/constants.ts
1347
1347
  var MONITOR_INGEST_PATTERN = /cfg\/monitor\/ingest/;
@@ -1409,8 +1409,8 @@ var monitorStore = createStore((set, get) => ({
1409
1409
  const { buffer, _pausedUntil } = get();
1410
1410
  if (buffer.length === 0) return;
1411
1411
  if (Date.now() < _pausedUntil) return;
1412
- const batch = buffer.slice(0, 50);
1413
- set({ buffer: buffer.slice(50) });
1412
+ const batch = buffer.slice(0, 25);
1413
+ set({ buffer: buffer.slice(25) });
1414
1414
  sendBatch({ events: batch }, useBeacon).then(
1415
1415
  () => {
1416
1416
  set({ _consecutiveFailures: 0, _pausedUntil: 0 });