Socket
Socket
Sign inDemoInstall

@sentry/vue

Package Overview
Dependencies
Maintainers
11
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/vue - npm Package Compare versions

Comparing version 8.31.0 to 8.32.0

7

build/cjs/errorhandler.js

@@ -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

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