📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP →

@sentry/browser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version

to
9.13.0

@@ -30,2 +30,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

setup(client) {
// TODO(v10): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
if (_options.console) {

@@ -32,0 +33,0 @@ core.addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));

@@ -28,2 +28,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

let _hasBeenInitialized = false;
/**

@@ -39,2 +41,11 @@ * The Browser Tracing integration automatically instruments browser pageload/navigation

const browserTracingIntegration = ((_options = {}) => {
if (_hasBeenInitialized) {
core.consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('Multiple browserTracingIntegration instances are not supported.');
});
}
_hasBeenInitialized = true;
/**

@@ -41,0 +52,0 @@ * This is just a small wrapper that makes `document` optional.

@@ -28,2 +28,3 @@ import { addClickKeypressInstrumentationHandler, addXhrInstrumentationHandler, addHistoryInstrumentationHandler, SENTRY_XHR_DATA_KEY } from '@sentry-internal/browser-utils';

setup(client) {
// TODO(v10): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
if (_options.console) {

@@ -30,0 +31,0 @@ addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));

@@ -1,1 +0,1 @@

{"type":"module","version":"9.12.0","sideEffects":false}
{"type":"module","version":"9.13.0","sideEffects":false}
import { startTrackingWebVitals, startTrackingINP, startTrackingLongAnimationFrames, startTrackingLongTasks, startTrackingInteractions, addHistoryInstrumentationHandler, registerInpInteractionListener, addPerformanceEntries } from '@sentry-internal/browser-utils';
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, GLOBAL_OBJ, getLocationHref, getClient, getIsolationScope, generateTraceId, getCurrentScope, propagationContextFromHeaders, getRootSpan, browserPerformanceTimeOrigin, spanToJSON, logger, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, startIdleSpan, getDynamicSamplingContextFromSpan, spanIsSampled, addNonEnumerableProperty, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core';
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, GLOBAL_OBJ, getLocationHref, getClient, getIsolationScope, generateTraceId, getCurrentScope, propagationContextFromHeaders, getRootSpan, browserPerformanceTimeOrigin, spanToJSON, logger, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, startIdleSpan, getDynamicSamplingContextFromSpan, spanIsSampled, addNonEnumerableProperty, consoleSandbox, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -26,2 +26,4 @@ import { WINDOW } from '../helpers.js';

let _hasBeenInitialized = false;
/**

@@ -37,2 +39,11 @@ * The Browser Tracing integration automatically instruments browser pageload/navigation

const browserTracingIntegration = ((_options = {}) => {
if (_hasBeenInitialized) {
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('Multiple browserTracingIntegration instances are not supported.');
});
}
_hasBeenInitialized = true;
/**

@@ -39,0 +50,0 @@ * This is just a small wrapper that makes `document` optional.

{
"name": "@sentry/browser",
"version": "9.12.0",
"version": "9.13.0",
"description": "Official Sentry SDK for browsers",

@@ -42,10 +42,10 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry-internal/browser-utils": "9.12.0",
"@sentry-internal/feedback": "9.12.0",
"@sentry-internal/replay": "9.12.0",
"@sentry-internal/replay-canvas": "9.12.0",
"@sentry/core": "9.12.0"
"@sentry-internal/browser-utils": "9.13.0",
"@sentry-internal/feedback": "9.13.0",
"@sentry-internal/replay": "9.13.0",
"@sentry-internal/replay-canvas": "9.13.0",
"@sentry/core": "9.13.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "9.12.0",
"@sentry-internal/integration-shims": "9.13.0",
"fake-indexeddb": "^4.0.1"

@@ -52,0 +52,0 @@ },

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