@sentry/replay 7.94.1 → 7.96.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
@@ -9132,8 +9132,14 @@ const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
9132
9132
 
9133
9133
  let _initialized = false;
9134
9134
 
9135
+ const replayIntegration = ((options) => {
9136
+ // eslint-disable-next-line deprecation/deprecation
9137
+ return new Replay(options);
9138
+ }) ;
9139
+
9135
9140
  /**
9136
9141
  * The main replay integration class, to be passed to `init({ integrations: [] })`.
9142
+ * @deprecated Use `replayIntegration()` instead.
9137
9143
  */
9138
9144
  class Replay {
9139
9145
  /**
@@ -9208,6 +9214,7 @@ class Replay {
9208
9214
  // eslint-disable-next-line deprecation/deprecation
9209
9215
  ignoreClass,
9210
9216
  } = {}) {
9217
+ // eslint-disable-next-line deprecation/deprecation
9211
9218
  this.name = Replay.id;
9212
9219
 
9213
9220
  const privacyOptions = getPrivacyOptions({
@@ -9517,4 +9524,5 @@ function _getMergedNetworkHeaders(headers) {
9517
9524
  }
9518
9525
 
9519
9526
  exports.Replay = Replay;
9527
+ exports.replayIntegration = replayIntegration;
9520
9528
  //# sourceMappingURL=index.js.map