@openreplay/tracker 16.4.2 → 16.4.3

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.
@@ -252,7 +252,7 @@ export default class App {
252
252
  * user 30 seconds to "activate" and record session by calling `start()` on conditional trigger,
253
253
  * and we will then send buffered batch, so it won't get lost
254
254
  * */
255
- coldStart(startOpts?: StartOptions, conditional?: boolean): Promise<void>;
255
+ coldStart: (startOpts?: StartOptions, conditional?: boolean) => Promise<void>;
256
256
  private setupConditionalStart;
257
257
  onSessionSent: () => void;
258
258
  /**
@@ -260,7 +260,7 @@ export default class App {
260
260
  * @param {Object} startOpts - options for session start, same as .start()
261
261
  * @param {Function} onSessionSent - callback that will be called once session is fully sent
262
262
  * */
263
- offlineRecording(startOpts: StartOptions | undefined, onSessionSent: () => void): {
263
+ offlineRecording: (startOpts: StartOptions | undefined, onSessionSent: () => void) => {
264
264
  saveBuffer: () => void;
265
265
  getBuffer: () => Message[];
266
266
  setBuffer: (buffer: Message[]) => void;
@@ -272,15 +272,15 @@ export default class App {
272
272
  *
273
273
  * Keeping the size of local storage reasonable is up to the end users of this library
274
274
  * */
275
- saveBuffer(): void;
275
+ saveBuffer: () => void;
276
276
  /**
277
277
  * @returns buffer with stored messages for offline recording
278
278
  * */
279
- getBuffer(): Message[];
279
+ getBuffer: () => Message[];
280
280
  /**
281
281
  * Used to set a buffer with messages array
282
282
  * */
283
- setBuffer(buffer: Message[]): void;
283
+ setBuffer: (buffer: Message[]) => void;
284
284
  /**
285
285
  * Uploads the stored session buffer to backend
286
286
  * @returns promise that resolves once messages are loaded, it has to be awaited
@@ -252,7 +252,7 @@ export default class App {
252
252
  * user 30 seconds to "activate" and record session by calling `start()` on conditional trigger,
253
253
  * and we will then send buffered batch, so it won't get lost
254
254
  * */
255
- coldStart(startOpts?: StartOptions, conditional?: boolean): Promise<void>;
255
+ coldStart: (startOpts?: StartOptions, conditional?: boolean) => Promise<void>;
256
256
  private setupConditionalStart;
257
257
  onSessionSent: () => void;
258
258
  /**
@@ -260,7 +260,7 @@ export default class App {
260
260
  * @param {Object} startOpts - options for session start, same as .start()
261
261
  * @param {Function} onSessionSent - callback that will be called once session is fully sent
262
262
  * */
263
- offlineRecording(startOpts: StartOptions | undefined, onSessionSent: () => void): {
263
+ offlineRecording: (startOpts: StartOptions | undefined, onSessionSent: () => void) => {
264
264
  saveBuffer: () => void;
265
265
  getBuffer: () => Message[];
266
266
  setBuffer: (buffer: Message[]) => void;
@@ -272,15 +272,15 @@ export default class App {
272
272
  *
273
273
  * Keeping the size of local storage reasonable is up to the end users of this library
274
274
  * */
275
- saveBuffer(): void;
275
+ saveBuffer: () => void;
276
276
  /**
277
277
  * @returns buffer with stored messages for offline recording
278
278
  * */
279
- getBuffer(): Message[];
279
+ getBuffer: () => Message[];
280
280
  /**
281
281
  * Used to set a buffer with messages array
282
282
  * */
283
- setBuffer(buffer: Message[]): void;
283
+ setBuffer: (buffer: Message[]) => void;
284
284
  /**
285
285
  * Uploads the stored session buffer to backend
286
286
  * @returns promise that resolves once messages are loaded, it has to be awaited
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "16.4.2",
4
+ "version": "16.4.3",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"