@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.
- package/dist/cjs/entry.js +167 -166
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +167 -166
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/index.d.ts +5 -5
- package/dist/lib/entry.js +167 -166
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +167 -166
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/index.d.ts +5 -5
- package/dist/types/main/app/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -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)
|
|
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()
|
|
275
|
+
saveBuffer: () => void;
|
|
276
276
|
/**
|
|
277
277
|
* @returns buffer with stored messages for offline recording
|
|
278
278
|
* */
|
|
279
|
-
getBuffer()
|
|
279
|
+
getBuffer: () => Message[];
|
|
280
280
|
/**
|
|
281
281
|
* Used to set a buffer with messages array
|
|
282
282
|
* */
|
|
283
|
-
setBuffer(buffer: Message[])
|
|
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)
|
|
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()
|
|
275
|
+
saveBuffer: () => void;
|
|
276
276
|
/**
|
|
277
277
|
* @returns buffer with stored messages for offline recording
|
|
278
278
|
* */
|
|
279
|
-
getBuffer()
|
|
279
|
+
getBuffer: () => Message[];
|
|
280
280
|
/**
|
|
281
281
|
* Used to set a buffer with messages array
|
|
282
282
|
* */
|
|
283
|
-
setBuffer(buffer: Message[])
|
|
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
|