@heycatch/sdk 0.7.0-dev.974 → 0.7.1-dev.1123

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.
@@ -246,6 +246,23 @@ interface HeyCatchConfig {
246
246
  optOutCapturingByDefault?: boolean;
247
247
  /** Honor the browser's Do Not Track signal. */
248
248
  respectDnt?: boolean;
249
+ /**
250
+ * Batch captured events for a few seconds before sending (the default).
251
+ * Set `false` on a multi-page site - one where each click is a full page
252
+ * load - because a visitor who navigates away inside the batch window
253
+ * takes the batch with them; iOS Safari in particular does not reliably
254
+ * let the unload send through. A single-page app can leave it unset.
255
+ * Browser only.
256
+ */
257
+ requestBatching?: boolean;
258
+ /**
259
+ * How long captured events wait for a batch, in milliseconds. Defaults to
260
+ * 3000; the accepted range is 250-5000, and a value outside it falls back
261
+ * to the default with a console warning. The gentler alternative to
262
+ * `requestBatching: false` when you want to keep batching but shrink the
263
+ * window. Browser only.
264
+ */
265
+ flushIntervalMs?: number;
249
266
  }
250
267
 
251
268
  export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, type TrackOptions as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i };
@@ -246,6 +246,23 @@ interface HeyCatchConfig {
246
246
  optOutCapturingByDefault?: boolean;
247
247
  /** Honor the browser's Do Not Track signal. */
248
248
  respectDnt?: boolean;
249
+ /**
250
+ * Batch captured events for a few seconds before sending (the default).
251
+ * Set `false` on a multi-page site - one where each click is a full page
252
+ * load - because a visitor who navigates away inside the batch window
253
+ * takes the batch with them; iOS Safari in particular does not reliably
254
+ * let the unload send through. A single-page app can leave it unset.
255
+ * Browser only.
256
+ */
257
+ requestBatching?: boolean;
258
+ /**
259
+ * How long captured events wait for a batch, in milliseconds. Defaults to
260
+ * 3000; the accepted range is 250-5000, and a value outside it falls back
261
+ * to the default with a console warning. The gentler alternative to
262
+ * `requestBatching: false` when you want to keep batching but shrink the
263
+ * window. Browser only.
264
+ */
265
+ flushIntervalMs?: number;
249
266
  }
250
267
 
251
268
  export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, type TrackOptions as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycatch/sdk",
3
- "version": "0.7.0-dev.974",
3
+ "version": "0.7.1-dev.1123",
4
4
  "description": "HeyCatch SDK",
5
5
  "keywords": [
6
6
  "analytics",