@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 +8 -0
- package/cjs/index.js.map +1 -1
- package/esm/index.js +8 -1
- package/esm/index.js.map +1 -1
- package/package.json +6 -6
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/integration.d.ts +2 -0
- package/types/integration.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +1 -1
- package/types-ts3.8/integration.d.ts +2 -0
package/esm/index.js
CHANGED
|
@@ -9126,8 +9126,14 @@ const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
|
|
|
9126
9126
|
|
|
9127
9127
|
let _initialized = false;
|
|
9128
9128
|
|
|
9129
|
+
const replayIntegration = ((options) => {
|
|
9130
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
9131
|
+
return new Replay(options);
|
|
9132
|
+
}) ;
|
|
9133
|
+
|
|
9129
9134
|
/**
|
|
9130
9135
|
* The main replay integration class, to be passed to `init({ integrations: [] })`.
|
|
9136
|
+
* @deprecated Use `replayIntegration()` instead.
|
|
9131
9137
|
*/
|
|
9132
9138
|
class Replay {
|
|
9133
9139
|
/**
|
|
@@ -9202,6 +9208,7 @@ class Replay {
|
|
|
9202
9208
|
// eslint-disable-next-line deprecation/deprecation
|
|
9203
9209
|
ignoreClass,
|
|
9204
9210
|
} = {}) {
|
|
9211
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
9205
9212
|
this.name = Replay.id;
|
|
9206
9213
|
|
|
9207
9214
|
const privacyOptions = getPrivacyOptions({
|
|
@@ -9510,5 +9517,5 @@ function _getMergedNetworkHeaders(headers) {
|
|
|
9510
9517
|
return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
|
|
9511
9518
|
}
|
|
9512
9519
|
|
|
9513
|
-
export { Replay };
|
|
9520
|
+
export { Replay, replayIntegration };
|
|
9514
9521
|
//# sourceMappingURL=index.js.map
|