Socket
Socket
Sign inDemoInstall

@sentry/replay

Package Overview
Dependencies
Maintainers
12
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/replay - npm Package Compare versions

Comparing version 0.2.0-7 to 0.2.0-8

27

dist/index.es.js

@@ -160,2 +160,19 @@ import * as Sentry from '@sentry/browser';

}
function createMemoryEntry(memoryEntry) {
var jsHeapSizeLimit = memoryEntry.jsHeapSizeLimit, totalJSHeapSize = memoryEntry.totalJSHeapSize, usedJSHeapSize = memoryEntry.usedJSHeapSize;
var time = getAbsoluteTime(Date.now());
return {
type: 'memory',
name: 'memory',
start: time,
end: time,
data: {
memory: {
jsHeapSizeLimit: jsHeapSizeLimit,
totalJSHeapSize: totalJSHeapSize,
usedJSHeapSize: usedJSHeapSize,
},
},
};
}

@@ -413,2 +430,4 @@ var REPLAY_SESSION_KEY = 'sentryReplaySession';

});
// not fully initialized and the event will not get properly sent to Sentry
this.createReplayEvent();
record(__assign(__assign({}, this.rrwebRecordOptions), { emit: function (event, isCheckout) {

@@ -467,4 +486,2 @@ // We want to batch uploads of replay events. Save events only if

this.addListeners();
// not fully initialized and the event will not get properly sent to Sentry
this.createReplayEvent();
};

@@ -573,2 +590,8 @@ /**

var entryEvents = createPerformanceEntries(entries);
// window.performance.memory is a non-standard API and doesn't work on all browsers
// so we check before creating the event.
if ('memory' in window.performance) {
// @ts-expect-error memory doesn't exist on type Performance as the API is non-standard
entryEvents.push(createMemoryEntry(window.performance.memory));
}
// This current implementation is to create spans on the transaction referenced in `this.replayEvent`

@@ -575,0 +598,0 @@ this.createPerformanceSpans(entryEvents);

@@ -184,2 +184,19 @@ 'use strict';

}
function createMemoryEntry(memoryEntry) {
var jsHeapSizeLimit = memoryEntry.jsHeapSizeLimit, totalJSHeapSize = memoryEntry.totalJSHeapSize, usedJSHeapSize = memoryEntry.usedJSHeapSize;
var time = getAbsoluteTime(Date.now());
return {
type: 'memory',
name: 'memory',
start: time,
end: time,
data: {
memory: {
jsHeapSizeLimit: jsHeapSizeLimit,
totalJSHeapSize: totalJSHeapSize,
usedJSHeapSize: usedJSHeapSize,
},
},
};
}

@@ -437,2 +454,4 @@ var REPLAY_SESSION_KEY = 'sentryReplaySession';

});
// not fully initialized and the event will not get properly sent to Sentry
this.createReplayEvent();
rrweb.record(__assign(__assign({}, this.rrwebRecordOptions), { emit: function (event, isCheckout) {

@@ -491,4 +510,2 @@ // We want to batch uploads of replay events. Save events only if

this.addListeners();
// not fully initialized and the event will not get properly sent to Sentry
this.createReplayEvent();
};

@@ -597,2 +614,8 @@ /**

var entryEvents = createPerformanceEntries(entries);
// window.performance.memory is a non-standard API and doesn't work on all browsers
// so we check before creating the event.
if ('memory' in window.performance) {
// @ts-expect-error memory doesn't exist on type Performance as the API is non-standard
entryEvents.push(createMemoryEntry(window.performance.memory));
}
// This current implementation is to create spans on the transaction referenced in `this.replayEvent`

@@ -599,0 +622,0 @@ this.createPerformanceSpans(entryEvents);

2

package.json
{
"name": "@sentry/replay",
"version": "0.2.0-7",
"version": "0.2.0-8",
"description": "User replays for Sentry",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc