@sentry/replay 0.5.18 → 0.5.20

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.
@@ -0,0 +1 @@
1
+ export declare function handleConsole(handlerData: any): void;
@@ -28,10 +28,6 @@ export declare class SentryReplay implements Integration {
28
28
  */
29
29
  readonly recordingOptions: RecordingConfig;
30
30
  readonly options: SentryReplayPluginOptions;
31
- /**
32
- * setTimeout id used for debouncing sending rrweb attachments
33
- */
34
- private timeout;
35
31
  /**
36
32
  * The timestamp of the first event since the last flush. This is used to
37
33
  * determine if the maximum allowed time has passed before events should be
@@ -41,6 +37,7 @@ export declare class SentryReplay implements Integration {
41
37
  private performanceObserver;
42
38
  private retryCount;
43
39
  private retryInterval;
40
+ private debouncedFlush;
44
41
  /**
45
42
  * Flag when a new session has been created. Captured replay events behave
46
43
  * slightly differently in this case: `replay_start_timestamp` is included.
@@ -82,7 +79,7 @@ export declare class SentryReplay implements Integration {
82
79
  *
83
80
  * Creates or loads a session, attaches listeners to varying events (DOM, PerformanceObserver, Recording, Sentry SDK, etc)
84
81
  */
85
- setup(): void;
82
+ start(): void;
86
83
  /**
87
84
  * We want to batch uploads of replay events. Save events only if
88
85
  * `<flushMinDelay>` milliseconds have elapsed since the last event
@@ -95,7 +92,7 @@ export declare class SentryReplay implements Integration {
95
92
  /**
96
93
  * Currently, this needs to be manually called (e.g. for tests). Sentry SDK does not support a teardown
97
94
  */
98
- destroy(): void;
95
+ stop(): void;
99
96
  clearSession(): void;
100
97
  /**
101
98
  * Loads a session from storage, or creates a new one if it does not exist or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/replay",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "description": "User replays for Sentry",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -44,6 +44,7 @@
44
44
  "@sentry/browser": "^7.7.0",
45
45
  "@size-limit/preset-big-lib": "^7.0.8",
46
46
  "@types/jest": "^28.1.1",
47
+ "@types/lodash.debounce": "^4.0.7",
47
48
  "@types/lodash.throttle": "^4.1.7",
48
49
  "@types/node": "^16.0.0",
49
50
  "@types/pako": "^2.0.0",
@@ -72,6 +73,7 @@
72
73
  "@sentry/core": "^7.7.0",
73
74
  "@sentry/types": "^7.7.0",
74
75
  "@sentry/utils": "^7.7.0",
76
+ "lodash.debounce": "^4.0.8",
75
77
  "lodash.throttle": "^4.1.1",
76
78
  "pako": "^2.0.4",
77
79
  "rrweb": "^1.1.3"