@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/esm/index.js
CHANGED
|
@@ -9532,5 +9532,16 @@ function _getMergedNetworkHeaders(headers) {
|
|
|
9532
9532
|
return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
|
|
9533
9533
|
}
|
|
9534
9534
|
|
|
9535
|
-
|
|
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 };
|
|
9536
9547
|
//# sourceMappingURL=index.js.map
|