@sentry/replay 7.100.1 → 7.101.1
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 +12 -0
- package/cjs/index.js.map +1 -1
- package/esm/index.js +12 -1
- package/esm/index.js.map +1 -1
- package/package.json +6 -6
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/util/getReplay.d.ts +6 -0
- package/types/util/getReplay.d.ts.map +1 -0
- package/types-ts3.8/index.d.ts +1 -0
- package/types-ts3.8/util/getReplay.d.ts +6 -0
package/cjs/index.js
CHANGED
|
@@ -9538,6 +9538,18 @@ function _getMergedNetworkHeaders(headers) {
|
|
|
9538
9538
|
return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
|
|
9539
9539
|
}
|
|
9540
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
|
+
|
|
9541
9552
|
exports.Replay = Replay;
|
|
9553
|
+
exports.getReplay = getReplay;
|
|
9542
9554
|
exports.replayIntegration = replayIntegration;
|
|
9543
9555
|
//# sourceMappingURL=index.js.map
|