Socket
Socket
Sign inDemoInstall

@sentry/vue

Package Overview
Dependencies
Maintainers
13
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 5.30.0 to 6.0.0

29

dist/sdk.js
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/* eslint-disable max-lines */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable max-lines, @typescript-eslint/no-explicit-any */
var browser_1 = require("@sentry/browser");
var core_1 = require("@sentry/core");
var utils_1 = require("@sentry/utils");
var eventprocessor_1 = require("./eventprocessor");
// Mappings from operation to corresponding lifecycle hook.

@@ -25,16 +22,17 @@ var HOOKS = {

if (options === void 0) { options = {}; }
if (options.defaultIntegrations === undefined) {
options.defaultIntegrations = browser_1.defaultIntegrations;
}
if (options.release === undefined) {
var window_1 = utils_1.getGlobalObject();
// This supports the variable that sentry-webpack-plugin injects
if (window_1.SENTRY_RELEASE && window_1.SENTRY_RELEASE.id) {
options.release = window_1.SENTRY_RELEASE.id;
}
}
var finalOptions = tslib_1.__assign(tslib_1.__assign({
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
Vue: utils_1.getGlobalObject().Vue, attachProps: true, logErrors: false, tracing: false }, options), { tracingOptions: tslib_1.__assign({ hooks: ['activate', 'mount', 'update'], timeout: 2000, trackComponents: false }, options.tracingOptions) });
core_1.initAndBind(browser_1.BrowserClient, finalOptions);
finalOptions._metadata = finalOptions._metadata || {};
finalOptions._metadata.sdk = {
name: 'sentry.javascript.vue',
packages: [
{
name: 'npm:@sentry/vue',
version: browser_1.SDK_VERSION,
},
],
version: browser_1.SDK_VERSION,
};
browser_1.init(finalOptions);
if (finalOptions.Vue === undefined) {

@@ -48,3 +46,2 @@ utils_1.logger.warn('No Vue instance was provided. Also there is no Vue instance on the `window` object.');

}
eventprocessor_1.createVueEventProcessor();
}

@@ -51,0 +48,0 @@ exports.init = init;

import { __assign, __read, __spread } from "tslib";
/* eslint-disable max-lines */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { BrowserClient, defaultIntegrations, getCurrentHub } from '@sentry/browser';
import { initAndBind } from '@sentry/core';
/* eslint-disable max-lines, @typescript-eslint/no-explicit-any */
import { getCurrentHub, init as browserInit, SDK_VERSION } from '@sentry/browser';
import { basename, getGlobalObject, logger, timestampWithMs } from '@sentry/utils';
import { createVueEventProcessor } from './eventprocessor';
// Mappings from operation to corresponding lifecycle hook.

@@ -24,16 +21,17 @@ var HOOKS = {

if (options === void 0) { options = {}; }
if (options.defaultIntegrations === undefined) {
options.defaultIntegrations = defaultIntegrations;
}
if (options.release === undefined) {
var window_1 = getGlobalObject();
// This supports the variable that sentry-webpack-plugin injects
if (window_1.SENTRY_RELEASE && window_1.SENTRY_RELEASE.id) {
options.release = window_1.SENTRY_RELEASE.id;
}
}
var finalOptions = __assign(__assign({
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
Vue: getGlobalObject().Vue, attachProps: true, logErrors: false, tracing: false }, options), { tracingOptions: __assign({ hooks: ['activate', 'mount', 'update'], timeout: 2000, trackComponents: false }, options.tracingOptions) });
initAndBind(BrowserClient, finalOptions);
finalOptions._metadata = finalOptions._metadata || {};
finalOptions._metadata.sdk = {
name: 'sentry.javascript.vue',
packages: [
{
name: 'npm:@sentry/vue',
version: SDK_VERSION,
},
],
version: SDK_VERSION,
};
browserInit(finalOptions);
if (finalOptions.Vue === undefined) {

@@ -47,3 +45,2 @@ logger.warn('No Vue instance was provided. Also there is no Vue instance on the `window` object.');

}
createVueEventProcessor();
}

@@ -50,0 +47,0 @@ /** JSDoc */

{
"name": "@sentry/vue",
"version": "5.30.0",
"version": "6.0.0",
"description": "Offical Sentry SDK for Vue.js",

@@ -19,7 +19,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/browser": "5.30.0",
"@sentry/core": "5.30.0",
"@sentry/minimal": "5.30.0",
"@sentry/types": "5.30.0",
"@sentry/utils": "5.30.0",
"@sentry/browser": "6.0.0",
"@sentry/core": "6.0.0",
"@sentry/minimal": "6.0.0",
"@sentry/types": "6.0.0",
"@sentry/utils": "6.0.0",
"tslib": "^1.9.3"

@@ -31,3 +31,3 @@ },

"devDependencies": {
"@sentry-internal/eslint-config-sdk": "5.30.0",
"@sentry-internal/eslint-config-sdk": "6.0.0",
"eslint": "7.6.0",

@@ -34,0 +34,0 @@ "jest": "^24.7.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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