Socket
Socket
Sign inDemoInstall

@sentry-internal/replay-canvas

Package Overview
Dependencies
Maintainers
9
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/replay-canvas - npm Package Compare versions

Comparing version 7.99.0 to 7.100.0

24

cjs/index.js

@@ -206,6 +206,23 @@ var {

let errorHandler;
function registerErrorHandler(handler) {
errorHandler = handler;
}
const callbackWrapper = (cb) => {
{
if (!errorHandler) {
return cb;
}
const rrwebWrapped = ((...rest) => {
try {
return cb(...rest);
}
catch (error) {
if (errorHandler && errorHandler(error) === true) {
return () => {
};
}
throw error;
}
});
return rrwebWrapped;
};

@@ -543,6 +560,9 @@

};
const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, recordCanvas, dataURLOptions, } = options;
const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, recordCanvas, dataURLOptions, errorHandler, } = options;
this.mutationCb = options.mutationCb;
this.mirror = options.mirror;
this.options = options;
if (errorHandler) {
registerErrorHandler(errorHandler);
}
if (options.enableManualSnapshot) {

@@ -549,0 +569,0 @@ return;

@@ -201,6 +201,23 @@ import { _optionalChain } from '@sentry/utils';

let errorHandler;
function registerErrorHandler(handler) {
errorHandler = handler;
}
const callbackWrapper = (cb) => {
{
if (!errorHandler) {
return cb;
}
const rrwebWrapped = ((...rest) => {
try {
return cb(...rest);
}
catch (error) {
if (errorHandler && errorHandler(error) === true) {
return () => {
};
}
throw error;
}
});
return rrwebWrapped;
};

@@ -538,6 +555,9 @@

};
const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, recordCanvas, dataURLOptions, } = options;
const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, recordCanvas, dataURLOptions, errorHandler, } = options;
this.mutationCb = options.mutationCb;
this.mirror = options.mirror;
this.options = options;
if (errorHandler) {
registerErrorHandler(errorHandler);
}
if (options.enableManualSnapshot) {

@@ -544,0 +564,0 @@ return;

12

package.json
{
"name": "@sentry-internal/replay-canvas",
"version": "7.99.0",
"version": "7.100.0",
"description": "Replay canvas integration",

@@ -37,9 +37,9 @@ "main": "cjs/index.js",

"@babel/core": "^7.17.5",
"@sentry-internal/rrweb": "2.9.0"
"@sentry-internal/rrweb": "2.11.0"
},
"dependencies": {
"@sentry/core": "7.99.0",
"@sentry/replay": "7.99.0",
"@sentry/types": "7.99.0",
"@sentry/utils": "7.99.0"
"@sentry/core": "7.100.0",
"@sentry/replay": "7.100.0",
"@sentry/types": "7.100.0",
"@sentry/utils": "7.100.0"
},

@@ -46,0 +46,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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