@sentry/replay 7.100.0 → 7.101.0

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/esm/index.js CHANGED
@@ -5863,16 +5863,17 @@ function addFeedbackBreadcrumb(replay, event) {
5863
5863
  type: EventType.Custom,
5864
5864
  timestamp: event.timestamp * 1000,
5865
5865
  data: {
5866
- timestamp: event.timestamp,
5867
5866
  tag: 'breadcrumb',
5868
5867
  payload: {
5868
+ timestamp: event.timestamp,
5869
+ type: 'default',
5869
5870
  category: 'sentry.feedback',
5870
5871
  data: {
5871
5872
  feedbackId: event.event_id,
5872
5873
  },
5873
5874
  },
5874
5875
  },
5875
- });
5876
+ } );
5876
5877
 
5877
5878
  return false;
5878
5879
  });
@@ -9531,5 +9532,16 @@ function _getMergedNetworkHeaders(headers) {
9531
9532
  return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
9532
9533
  }
9533
9534
 
9534
- export { Replay, replayIntegration };
9535
+ /**
9536
+ * This is a small utility to get a type-safe instance of the Replay integration.
9537
+ */
9538
+ // eslint-disable-next-line deprecation/deprecation
9539
+ function getReplay() {
9540
+ const client = getClient();
9541
+ return (
9542
+ client && client.getIntegrationByName && client.getIntegrationByName('Replay')
9543
+ );
9544
+ }
9545
+
9546
+ export { Replay, getReplay, replayIntegration };
9535
9547
  //# sourceMappingURL=index.js.map