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