@sentry/replay 0.5.6 → 0.5.7

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.
Files changed (54) hide show
  1. package/dist/index.es.js +5 -22
  2. package/dist/index.js +5 -22
  3. package/dist/index.js.map +1 -1
  4. package/dist/{src → types/src}/api/captureReplay.d.ts +0 -0
  5. package/dist/{src → types/src}/api/captureReplayUpdate.d.ts +0 -0
  6. package/dist/{src → types/src}/coreHandlers/getBreadcrumbHandler.d.ts +0 -0
  7. package/dist/{src → types/src}/coreHandlers/getSpanHandler.d.ts +0 -0
  8. package/dist/{src → types/src}/coreHandlers/handleDom.d.ts +0 -0
  9. package/dist/{src → types/src}/coreHandlers/handleFetch.d.ts +0 -0
  10. package/dist/{src → types/src}/coreHandlers/handleHistory.d.ts +0 -0
  11. package/dist/{src → types/src}/coreHandlers/handleScope.d.ts +0 -0
  12. package/dist/{src → types/src}/coreHandlers/handleXhr.d.ts +0 -0
  13. package/dist/{src → types/src}/createPerformanceEntry.d.ts +0 -0
  14. package/dist/{src → types/src}/eventBuffer.d.ts +0 -0
  15. package/dist/{src → types/src}/flags.d.ts +0 -0
  16. package/dist/{src → types/src}/index.d.ts +0 -4
  17. package/dist/{src → types/src}/session/Session.d.ts +0 -0
  18. package/dist/{src → types/src}/session/constants.d.ts +0 -0
  19. package/dist/{src → types/src}/session/createSession.d.ts +0 -0
  20. package/dist/{src → types/src}/session/fetchSession.d.ts +0 -0
  21. package/dist/{src → types/src}/session/getSession.d.ts +0 -0
  22. package/dist/{src → types/src}/session/index.d.ts +0 -0
  23. package/dist/{src → types/src}/session/saveSession.d.ts +0 -0
  24. package/dist/{src → types/src}/types.d.ts +0 -0
  25. package/dist/{src → types/src}/util/createBreadcrumb.d.ts +0 -0
  26. package/dist/{src → types/src}/util/createPayload.d.ts +0 -0
  27. package/dist/{src → types/src}/util/isExpired.d.ts +0 -0
  28. package/dist/{src → types/src}/util/isIngestHost.d.ts +0 -0
  29. package/dist/{src → types/src}/util/isSampled.d.ts +0 -0
  30. package/dist/{src → types/src}/util/isSessionExpired.d.ts +0 -0
  31. package/dist/{src → types/src}/util/logger.d.ts +0 -0
  32. package/package.json +1 -1
  33. package/dist/jest.config.d.ts +0 -3
  34. package/dist/jest.setup.d.ts +0 -10
  35. package/dist/src/coreHandlers/handleFetch.test.d.ts +0 -1
  36. package/dist/src/coreHandlers/handleScope-unit.test.d.ts +0 -1
  37. package/dist/src/coreHandlers/handleScope.test.d.ts +0 -1
  38. package/dist/src/createPerformanceEntry.test.d.ts +0 -1
  39. package/dist/src/eventBuffer.test.d.ts +0 -1
  40. package/dist/src/index-captureOnlyOnError.test.d.ts +0 -1
  41. package/dist/src/index-noSticky.test.d.ts +0 -1
  42. package/dist/src/index-sampling.test.d.ts +0 -1
  43. package/dist/src/index.test.d.ts +0 -1
  44. package/dist/src/session/Session.test.d.ts +0 -1
  45. package/dist/src/session/createSession.test.d.ts +0 -1
  46. package/dist/src/session/fetchSession.test.d.ts +0 -1
  47. package/dist/src/session/getSession.test.d.ts +0 -1
  48. package/dist/src/session/saveSession.test.d.ts +0 -1
  49. package/dist/src/util/isExpired.test.d.ts +0 -1
  50. package/dist/src/util/isSampled.test.d.ts +0 -1
  51. package/dist/src/util/isSessionExpired.test.d.ts +0 -1
  52. package/dist/test/index.d.ts +0 -3
  53. package/dist/test/mocks/mockRrweb.d.ts +0 -15
  54. package/dist/test/mocks/mockSdk.d.ts +0 -11
File without changes
File without changes
File without changes
@@ -138,10 +138,6 @@ export declare class SentryReplay implements Integration {
138
138
  * Handle when page is focused
139
139
  */
140
140
  handleWindowFocus: () => void;
141
- /**
142
- * Handle when page is closed
143
- */
144
- handleWindowUnload: () => void;
145
141
  /**
146
142
  * Handler for Sentry Core SDK events.
147
143
  *
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/replay",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "User replays for Sentry",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,3 +0,0 @@
1
- import type { Config } from '@jest/types';
2
- declare const _default: () => Promise<Config.InitialOptions>;
3
- export default _default;
@@ -1,10 +0,0 @@
1
- /// <reference types="jest" />
2
- import { Session } from '@/session/Session';
3
- declare global {
4
- namespace jest {
5
- interface Matchers<R> {
6
- toHaveSentReplay(expected?: string | Uint8Array): CustomMatcherResult;
7
- toHaveSameSession(expected: undefined | Session): CustomMatcherResult;
8
- }
9
- }
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import 'jsdom-worker';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export * from './mocks/mockRrweb';
2
- export * from './mocks/mockSdk';
3
- export declare const BASE_TIMESTAMP: number;
@@ -1,15 +0,0 @@
1
- /// <reference types="jest" />
2
- import { RecordingEvent } from '@/types';
3
- declare type RecordAdditionalProperties = {
4
- takeFullSnapshot: jest.Mock;
5
- addCustomEvent: () => void;
6
- freezePage: () => void;
7
- mirror: unknown;
8
- _emitter: (event: RecordingEvent, ...args: any[]) => void;
9
- };
10
- export declare type RecordMock = jest.MockedFunction<typeof rrweb.record> & RecordAdditionalProperties;
11
- import * as rrweb from 'rrweb';
12
- export declare function mockRrweb(): {
13
- record: RecordMock;
14
- };
15
- export {};
@@ -1,11 +0,0 @@
1
- import { BrowserOptions } from '@sentry/browser';
2
- import { SentryReplay } from '@';
3
- import { SentryReplayConfiguration } from '@/types';
4
- interface MockSdkParams {
5
- replayOptions?: SentryReplayConfiguration;
6
- sentryOptions?: BrowserOptions;
7
- }
8
- export declare function mockSdk({ replayOptions, sentryOptions, }?: MockSdkParams): {
9
- replay: SentryReplay;
10
- };
11
- export {};