@sentry/vue
Advanced tools
Comparing version 5.30.0 to 6.0.0
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
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
1215344
7819
39
+ Added@sentry/browser@6.0.0(transitive)
+ Added@sentry/core@6.0.0(transitive)
+ Added@sentry/hub@6.0.0(transitive)
+ Added@sentry/minimal@6.0.0(transitive)
+ Added@sentry/types@6.0.0(transitive)
+ Added@sentry/utils@6.0.0(transitive)
- Removed@sentry/browser@5.30.0(transitive)
- Removed@sentry/core@5.30.0(transitive)
- Removed@sentry/hub@5.30.0(transitive)
- Removed@sentry/minimal@5.30.0(transitive)
- Removed@sentry/types@5.30.0(transitive)
- Removed@sentry/utils@5.30.0(transitive)
Updated@sentry/browser@6.0.0
Updated@sentry/core@6.0.0
Updated@sentry/minimal@6.0.0
Updated@sentry/types@6.0.0
Updated@sentry/utils@6.0.0