@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/cjs/index.js CHANGED
@@ -5869,16 +5869,17 @@ function addFeedbackBreadcrumb(replay, event) {
5869
5869
  type: EventType.Custom,
5870
5870
  timestamp: event.timestamp * 1000,
5871
5871
  data: {
5872
- timestamp: event.timestamp,
5873
5872
  tag: 'breadcrumb',
5874
5873
  payload: {
5874
+ timestamp: event.timestamp,
5875
+ type: 'default',
5875
5876
  category: 'sentry.feedback',
5876
5877
  data: {
5877
5878
  feedbackId: event.event_id,
5878
5879
  },
5879
5880
  },
5880
5881
  },
5881
- });
5882
+ } );
5882
5883
 
5883
5884
  return false;
5884
5885
  });
@@ -9537,6 +9538,18 @@ function _getMergedNetworkHeaders(headers) {
9537
9538
  return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
9538
9539
  }
9539
9540
 
9541
+ /**
9542
+ * This is a small utility to get a type-safe instance of the Replay integration.
9543
+ */
9544
+ // eslint-disable-next-line deprecation/deprecation
9545
+ function getReplay() {
9546
+ const client = core.getClient();
9547
+ return (
9548
+ client && client.getIntegrationByName && client.getIntegrationByName('Replay')
9549
+ );
9550
+ }
9551
+
9540
9552
  exports.Replay = Replay;
9553
+ exports.getReplay = getReplay;
9541
9554
  exports.replayIntegration = replayIntegration;
9542
9555
  //# sourceMappingURL=index.js.map