@sentry-internal/replay-canvas
Advanced tools
Comparing version 7.99.0 to 7.100.0
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
483028
1664
+ Added@sentry-internal/tracing@7.100.0(transitive)
+ Added@sentry/core@7.100.0(transitive)
+ Added@sentry/replay@7.100.0(transitive)
+ Added@sentry/types@7.100.0(transitive)
+ Added@sentry/utils@7.100.0(transitive)
- Removed@sentry-internal/tracing@7.99.0(transitive)
- Removed@sentry/core@7.99.0(transitive)
- Removed@sentry/replay@7.99.0(transitive)
- Removed@sentry/types@7.99.0(transitive)
- Removed@sentry/utils@7.99.0(transitive)
Updated@sentry/core@7.100.0
Updated@sentry/replay@7.100.0
Updated@sentry/types@7.100.0
Updated@sentry/utils@7.100.0