@sentry/replay 7.83.0 → 7.84.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 +15 -15
- package/cjs/index.js.map +1 -1
- package/esm/index.js +15 -15
- package/esm/index.js.map +1 -1
- package/package.json +6 -6
- package/types/replay.d.ts.map +1 -1
package/cjs/index.js
CHANGED
|
@@ -5223,21 +5223,6 @@ function isSampled(sampleRate) {
|
|
|
5223
5223
|
return Math.random() < sampleRate;
|
|
5224
5224
|
}
|
|
5225
5225
|
|
|
5226
|
-
/**
|
|
5227
|
-
* Save a session to session storage.
|
|
5228
|
-
*/
|
|
5229
|
-
function saveSession(session) {
|
|
5230
|
-
if (!hasSessionStorage()) {
|
|
5231
|
-
return;
|
|
5232
|
-
}
|
|
5233
|
-
|
|
5234
|
-
try {
|
|
5235
|
-
WINDOW.sessionStorage.setItem(REPLAY_SESSION_KEY, JSON.stringify(session));
|
|
5236
|
-
} catch (e) {
|
|
5237
|
-
// Ignore potential SecurityError exceptions
|
|
5238
|
-
}
|
|
5239
|
-
}
|
|
5240
|
-
|
|
5241
5226
|
/**
|
|
5242
5227
|
* Get a session with defaults & applied sampling.
|
|
5243
5228
|
*/
|
|
@@ -5261,6 +5246,21 @@ function makeSession(session) {
|
|
|
5261
5246
|
};
|
|
5262
5247
|
}
|
|
5263
5248
|
|
|
5249
|
+
/**
|
|
5250
|
+
* Save a session to session storage.
|
|
5251
|
+
*/
|
|
5252
|
+
function saveSession(session) {
|
|
5253
|
+
if (!hasSessionStorage()) {
|
|
5254
|
+
return;
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
try {
|
|
5258
|
+
WINDOW.sessionStorage.setItem(REPLAY_SESSION_KEY, JSON.stringify(session));
|
|
5259
|
+
} catch (e) {
|
|
5260
|
+
// Ignore potential SecurityError exceptions
|
|
5261
|
+
}
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
5264
|
/**
|
|
5265
5265
|
* Get the sampled status for a session based on sample rates & current sampled status.
|
|
5266
5266
|
*/
|