@sentry/vue
Advanced tools
Comparing version 8.31.0 to 8.32.0
@@ -8,3 +8,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const attachErrorHandler = (app, options) => { | ||
const { errorHandler, warnHandler, silent } = app.config; | ||
const { errorHandler: originalErrorHandler, warnHandler, silent } = app.config; | ||
@@ -38,4 +38,5 @@ app.config.errorHandler = (error, vm, lifecycleHook) => { | ||
if (typeof errorHandler === 'function') { | ||
(errorHandler ).call(app, error, vm, lifecycleHook); | ||
// Check if the current `app.config.errorHandler` is explicitly set by the user before calling it. | ||
if (typeof originalErrorHandler === 'function' && app.config.errorHandler) { | ||
(originalErrorHandler ).call(app, error, vm, lifecycleHook); | ||
} | ||
@@ -42,0 +43,0 @@ |
@@ -16,2 +16,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
logErrors: true, | ||
attachErrorHandler: true, | ||
hooks: constants.DEFAULT_HOOKS, | ||
@@ -77,3 +78,5 @@ timeout: 2000, | ||
errorhandler.attachErrorHandler(app, options); | ||
if (options.attachErrorHandler) { | ||
errorhandler.attachErrorHandler(app, options); | ||
} | ||
@@ -80,0 +83,0 @@ if (core.hasTracingEnabled(options)) { |
@@ -6,3 +6,3 @@ import { captureException } from '@sentry/core'; | ||
const attachErrorHandler = (app, options) => { | ||
const { errorHandler, warnHandler, silent } = app.config; | ||
const { errorHandler: originalErrorHandler, warnHandler, silent } = app.config; | ||
@@ -36,4 +36,5 @@ app.config.errorHandler = (error, vm, lifecycleHook) => { | ||
if (typeof errorHandler === 'function') { | ||
(errorHandler ).call(app, error, vm, lifecycleHook); | ||
// Check if the current `app.config.errorHandler` is explicitly set by the user before calling it. | ||
if (typeof originalErrorHandler === 'function' && app.config.errorHandler) { | ||
(originalErrorHandler ).call(app, error, vm, lifecycleHook); | ||
} | ||
@@ -40,0 +41,0 @@ |
@@ -14,2 +14,3 @@ import { defineIntegration, hasTracingEnabled } from '@sentry/core'; | ||
logErrors: true, | ||
attachErrorHandler: true, | ||
hooks: DEFAULT_HOOKS, | ||
@@ -75,3 +76,5 @@ timeout: 2000, | ||
attachErrorHandler(app, options); | ||
if (options.attachErrorHandler) { | ||
attachErrorHandler(app, options); | ||
} | ||
@@ -78,0 +81,0 @@ if (hasTracingEnabled(options)) { |
@@ -45,2 +45,12 @@ import { BrowserOptions } from '@sentry/browser'; | ||
logErrors: boolean; | ||
/** | ||
* By default, Sentry attaches an error handler to capture exceptions and report them to Sentry. | ||
* When `attachErrorHandler` is set to `false`, automatic error reporting is disabled. | ||
* | ||
* Usually, this option should stay enabled, unless you want to set up Sentry error reporting yourself. | ||
* For example, the Sentry Nuxt SDK does not attach an error handler as it's using the error hooks provided by Nuxt. | ||
* | ||
* @default true | ||
*/ | ||
attachErrorHandler: boolean; | ||
/** {@link TracingOptions} */ | ||
@@ -47,0 +57,0 @@ tracingOptions?: Partial<TracingOptions>; |
@@ -45,2 +45,12 @@ import type { BrowserOptions } from '@sentry/browser'; | ||
logErrors: boolean; | ||
/** | ||
* By default, Sentry attaches an error handler to capture exceptions and report them to Sentry. | ||
* When `attachErrorHandler` is set to `false`, automatic error reporting is disabled. | ||
* | ||
* Usually, this option should stay enabled, unless you want to set up Sentry error reporting yourself. | ||
* For example, the Sentry Nuxt SDK does not attach an error handler as it's using the error hooks provided by Nuxt. | ||
* | ||
* @default true | ||
*/ | ||
attachErrorHandler: boolean; | ||
/** {@link TracingOptions} */ | ||
@@ -47,0 +57,0 @@ tracingOptions?: Partial<TracingOptions>; |
{ | ||
"name": "@sentry/vue", | ||
"version": "8.31.0", | ||
"version": "8.32.0", | ||
"description": "Official Sentry SDK for Vue.js", | ||
@@ -42,6 +42,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "8.31.0", | ||
"@sentry/core": "8.31.0", | ||
"@sentry/types": "8.31.0", | ||
"@sentry/utils": "8.31.0" | ||
"@sentry/browser": "8.32.0", | ||
"@sentry/core": "8.32.0", | ||
"@sentry/types": "8.32.0", | ||
"@sentry/utils": "8.32.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
148771
1437
+ Added@sentry-internal/browser-utils@8.32.0(transitive)
+ Added@sentry-internal/feedback@8.32.0(transitive)
+ Added@sentry-internal/replay@8.32.0(transitive)
+ Added@sentry-internal/replay-canvas@8.32.0(transitive)
+ Added@sentry/browser@8.32.0(transitive)
+ Added@sentry/core@8.32.0(transitive)
+ Added@sentry/types@8.32.0(transitive)
+ Added@sentry/utils@8.32.0(transitive)
- Removed@sentry-internal/browser-utils@8.31.0(transitive)
- Removed@sentry-internal/feedback@8.31.0(transitive)
- Removed@sentry-internal/replay@8.31.0(transitive)
- Removed@sentry-internal/replay-canvas@8.31.0(transitive)
- Removed@sentry/browser@8.31.0(transitive)
- Removed@sentry/core@8.31.0(transitive)
- Removed@sentry/types@8.31.0(transitive)
- Removed@sentry/utils@8.31.0(transitive)
Updated@sentry/browser@8.32.0
Updated@sentry/core@8.32.0
Updated@sentry/types@8.32.0
Updated@sentry/utils@8.32.0