@sentry/replay 0.6.1 → 0.6.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/README.md +8 -2
  3. package/dist/config/types/jest.setup.d.ts +1 -1
  4. package/dist/config/types/src/api/captureReplayEvent.d.ts +1 -1
  5. package/dist/config/types/src/coreHandlers/getBreadcrumbHandler.d.ts +1 -1
  6. package/dist/config/types/src/coreHandlers/getSpanHandler.d.ts +1 -1
  7. package/dist/config/types/src/coreHandlers/handleFetch.d.ts +1 -1
  8. package/dist/config/types/src/coreHandlers/handleHistory.d.ts +1 -1
  9. package/dist/config/types/src/coreHandlers/handleXhr.d.ts +1 -1
  10. package/dist/config/types/src/util/captureInternalException.d.ts +4 -0
  11. package/dist/config/types/src/util/createPayload.d.ts +1 -1
  12. package/dist/config/types/src/util/isSessionExpired.d.ts +1 -1
  13. package/dist/config/types/src/util/logger.d.ts +1 -1
  14. package/dist/config/types/test/mocks/mockRrweb.d.ts +1 -1
  15. package/dist/config/types/test/mocks/mockSdk.d.ts +2 -2
  16. package/dist/index.es.js +14 -4
  17. package/dist/index.js +14 -4
  18. package/dist/index.js.map +1 -1
  19. package/dist/types/src/api/captureReplayEvent.d.ts +1 -1
  20. package/dist/types/src/coreHandlers/getBreadcrumbHandler.d.ts +1 -1
  21. package/dist/types/src/coreHandlers/getSpanHandler.d.ts +1 -1
  22. package/dist/types/src/coreHandlers/handleFetch.d.ts +1 -1
  23. package/dist/types/src/coreHandlers/handleHistory.d.ts +1 -1
  24. package/dist/types/src/coreHandlers/handleXhr.d.ts +1 -1
  25. package/dist/types/src/util/captureInternalException.d.ts +4 -0
  26. package/dist/types/src/util/createPayload.d.ts +1 -1
  27. package/dist/types/src/util/isSessionExpired.d.ts +1 -1
  28. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { InitialState } from '@/types';
1
+ import { InitialState } from '../types';
2
2
  export interface CaptureReplayEventParams {
3
3
  /**
4
4
  * Initial state of the replay
@@ -1,3 +1,3 @@
1
- import { InstrumentationTypeBreadcrumb } from '@/types';
1
+ import { InstrumentationTypeBreadcrumb } from '../types';
2
2
  import { handleScope } from './handleScope';
3
3
  export declare function getBreadcrumbHandler(type: InstrumentationTypeBreadcrumb): typeof handleScope;
@@ -1,4 +1,4 @@
1
- import { InstrumentationTypeSpan } from '@/types';
1
+ import { InstrumentationTypeSpan } from '../types';
2
2
  import { handleFetch } from './handleFetch';
3
3
  import { handleHistory } from './handleHistory';
4
4
  import { handleXhr } from './handleXhr';
@@ -1,4 +1,4 @@
1
- import { ReplayPerformanceEntry } from '@/createPerformanceEntry';
1
+ import { ReplayPerformanceEntry } from '../createPerformanceEntry';
2
2
  interface FetchHandlerData {
3
3
  args: Parameters<typeof fetch>;
4
4
  fetchData: {
@@ -1,4 +1,4 @@
1
- import { ReplayPerformanceEntry } from '@/createPerformanceEntry';
1
+ import { ReplayPerformanceEntry } from '../createPerformanceEntry';
2
2
  interface HistoryHandlerData {
3
3
  from: string;
4
4
  to: string;
@@ -1,4 +1,4 @@
1
- import { ReplayPerformanceEntry } from '@/createPerformanceEntry';
1
+ import { ReplayPerformanceEntry } from '../createPerformanceEntry';
2
2
  declare type XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;
3
3
  interface SentryWrappedXMLHttpRequest extends XMLHttpRequest {
4
4
  [key: string]: unknown;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Captures exceptions to Sentry only when it occurs on sentry.io
3
+ */
4
+ export declare function captureInternalException(err: Error): void;
@@ -1,4 +1,4 @@
1
- import { RecordedEvents } from '@/types';
1
+ import { RecordedEvents } from '../types';
2
2
  export declare function createPayload({ events, headers, }: {
3
3
  events: RecordedEvents;
4
4
  headers: Record<string, any>;
@@ -1,4 +1,4 @@
1
- import { Session } from '@/session/Session';
1
+ import { Session } from '../session/Session';
2
2
  /**
3
3
  * Checks to see if session is expired
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/replay",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "User replays for Sentry",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",