Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/browser

Package Overview
Dependencies
Maintainers
11
Versions
557
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 8.41.0 to 8.42.0

2

build/npm/cjs/client.js

@@ -11,3 +11,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

* Configuration options for the Sentry Browser SDK.
* @see @sentry/types Options for more information.
* @see @sentry/core Options for more information.
*/

@@ -14,0 +14,0 @@

@@ -27,2 +27,4 @@ Object.defineProperty(exports, '__esModule', { value: true });

// eslint-disable-next-line @typescript-eslint/ban-types
/**

@@ -42,4 +44,2 @@ * Instruments the given function and sends an event to Sentry every time the

= {},
before,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) {

@@ -53,3 +53,7 @@ // for future readers what this does is wrap a function and then create

if (typeof fn !== 'function') {
function isFunction(fn) {
return typeof fn === 'function';
}
if (!isFunction(fn)) {
return fn;

@@ -61,3 +65,3 @@ }

// the original wrapper.
const wrapper = fn.__sentry_wrapped__;
const wrapper = (fn ).__sentry_wrapped__;
if (wrapper) {

@@ -84,13 +88,9 @@ if (typeof wrapper === 'function') {

/* eslint-disable prefer-rest-params */
// Wrap the function itself
// It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`
const sentryWrapped = function () {
const args = Array.prototype.slice.call(arguments);
const sentryWrapped = function ( ...args) {
try {
if (before && typeof before === 'function') ;
// Also wrap arguments that are themselves functions
const wrappedArguments = args.map(arg => wrap(arg, options));
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
const wrappedArguments = args.map((arg) => wrap(arg, options));
// Attempt to invoke user-land function

@@ -124,14 +124,15 @@ // NOTE: If you are a Sentry user, and you are seeing this stack frame, it

}
};
/* eslint-enable prefer-rest-params */
} ;
// Accessing some objects may throw
// ref: https://github.com/getsentry/sentry-javascript/issues/1168
// Wrap the wrapped function in a proxy, to ensure any other properties of the original function remain available
try {
for (const property in fn) {
if (Object.prototype.hasOwnProperty.call(fn, property)) {
sentryWrapped[property] = fn[property];
sentryWrapped[property ] = fn[property ];
}
}
} catch (_oO) {} // eslint-disable-line no-empty
} catch (e2) {
// Accessing some objects may throw
// ref: https://github.com/getsentry/sentry-javascript/issues/1168
}

@@ -146,3 +147,4 @@ // Signal that this function has been wrapped/filled already

try {
const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name') ;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name');
if (descriptor.configurable) {

@@ -155,4 +157,6 @@ Object.defineProperty(sentryWrapped, 'name', {

}
// eslint-disable-next-line no-empty
} catch (_oO) {}
} catch (e3) {
// This may throw if e.g. the descriptor does not exist, or a browser does not allow redefining `name`.
// to save some bytes we simply try-catch this
}

@@ -159,0 +163,0 @@ return sentryWrapped;

@@ -8,2 +8,5 @@ Object.defineProperty(exports, '__esModule', { value: true });

/* eslint-disable max-lines */
/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */

@@ -10,0 +13,0 @@ const MAX_ALLOWED_STRING_LENGTH = 1024;

@@ -88,3 +88,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

function _wrapTimeFunction(original) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( ...args) {

@@ -103,7 +102,4 @@ const originalCallback = args[0];

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function _wrapRAF(original) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( callback) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
return original.apply(this, [

@@ -125,3 +121,2 @@ helpers.wrap(callback, {

function _wrapXHR(originalSend) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( ...args) {

@@ -134,3 +129,2 @@ // eslint-disable-next-line @typescript-eslint/no-this-alias

if (prop in xhr && typeof xhr[prop] === 'function') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
core.fill(xhr, prop, function (original) {

@@ -165,8 +159,7 @@ const wrapOptions = {

function _wrapEventTarget(target) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const globalObject = helpers.WINDOW ;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const proto = globalObject[target] && globalObject[target].prototype;
const targetObj = globalObject[target];
const proto = targetObj && targetObj.prototype;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins
// eslint-disable-next-line no-prototype-builtins
if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {

@@ -179,11 +172,5 @@ return;

{
return function (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
eventName,
fn,
options,
) {
return function ( eventName, fn, options) {
try {
if (typeof fn.handleEvent === 'function') {
if (isEventListenerObject(fn)) {
// ESlint disable explanation:

@@ -207,3 +194,3 @@ // First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would

}
} catch (err) {
} catch (e2) {
// can sometimes get 'Permission denied to access property "handle Event'

@@ -214,4 +201,3 @@ }

eventName,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
helpers.wrap(fn , {
helpers.wrap(fn, {
mechanism: {

@@ -232,49 +218,41 @@ data: {

core.fill(
proto,
'removeEventListener',
function (
originalRemoveEventListener,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) {
return function (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
core.fill(proto, 'removeEventListener', function (originalRemoveEventListener,)
eventName,
fn,
options,
) {
/**
* There are 2 possible scenarios here:
*
* 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified
* method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function
* as a pass-through, and call original `removeEventListener` with it.
*
* 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using
* our wrapped version of `addEventListener`, which internally calls `wrap` helper.
* This helper "wraps" whole callback inside a try/catch statement, and attached appropriate metadata to it,
* in order for us to make a distinction between wrapped/non-wrapped functions possible.
* If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.
*
* When someone adds a handler prior to initialization, and then do it again, but after,
* then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible
* to get rid of the initial handler and it'd stick there forever.
*/
const wrappedEventHandler = fn ;
try {
const originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;
if (originalEventHandler) {
originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
}
} catch (e) {
// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments
{
return function ( eventName, fn, options) {
/**
* There are 2 possible scenarios here:
*
* 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified
* method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function
* as a pass-through, and call original `removeEventListener` with it.
*
* 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using
* our wrapped version of `addEventListener`, which internally calls `wrap` helper.
* This helper "wraps" whole callback inside a try/catch statement, and attached appropriate metadata to it,
* in order for us to make a distinction between wrapped/non-wrapped functions possible.
* If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.
*
* When someone adds a handler prior to initialization, and then do it again, but after,
* then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible
* to get rid of the initial handler and it'd stick there forever.
*/
try {
const originalEventHandler = (fn ).__sentry_wrapped__;
if (originalEventHandler) {
originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
}
return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);
};
},
);
} catch (e) {
// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments
}
return originalRemoveEventListener.call(this, eventName, fn, options);
};
});
}
function isEventListenerObject(obj) {
return typeof (obj ).handleEvent === 'function';
}
exports.browserApiErrorsIntegration = browserApiErrorsIntegration;
//# sourceMappingURL=browserapierrors.js.map

@@ -62,9 +62,10 @@ Object.defineProperty(exports, '__esModule', { value: true });

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const observer = new (WINDOW ).ReportingObserver(handler, {
buffered: true,
types,
});
const observer = new (WINDOW ).ReportingObserver(
handler,
{
buffered: true,
types,
},
);
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
observer.observe();

@@ -71,0 +72,0 @@ },

@@ -7,5 +7,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

/* eslint-disable max-lines */
const MS_TO_NS = 1e6;

@@ -12,0 +9,0 @@ // Use 0 as main thread id which is identical to threadId in node:worker_threads

Object.defineProperty(exports, '__esModule', { value: true });
const browserUtils = require('@sentry-internal/browser-utils');
const core = require('@sentry/core');
const browserUtils = require('@sentry-internal/browser-utils');
const client = require('./client.js');

@@ -6,0 +6,0 @@ const debugBuild = require('./debug-build.js');

@@ -294,4 +294,4 @@ Object.defineProperty(exports, '__esModule', { value: true });

function startBrowserTracingNavigationSpan(client, spanOptions) {
core.getIsolationScope().setPropagationContext(core.generatePropagationContext());
core.getCurrentScope().setPropagationContext(core.generatePropagationContext());
core.getIsolationScope().setPropagationContext({ traceId: core.generateTraceId() });
core.getCurrentScope().setPropagationContext({ traceId: core.generateTraceId() });

@@ -298,0 +298,0 @@ client.emit('startNavigationSpan', spanOptions);

@@ -7,4 +7,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

/* eslint-disable max-lines */
/** Options for Request Instrumentation */

@@ -11,0 +9,0 @@

@@ -9,3 +9,3 @@ import { BaseClient, getSDKSource, applySdkMetadata, logger } from '@sentry/core';

* Configuration options for the Sentry Browser SDK.
* @see @sentry/types Options for more information.
* @see @sentry/core Options for more information.
*/

@@ -12,0 +12,0 @@

@@ -25,2 +25,4 @@ import { GLOBAL_OBJ, getOriginalFunction, markFunctionWrapped, addNonEnumerableProperty, withScope, addExceptionTypeValue, addExceptionMechanism, captureException } from '@sentry/core';

// eslint-disable-next-line @typescript-eslint/ban-types
/**

@@ -40,4 +42,2 @@ * Instruments the given function and sends an event to Sentry every time the

= {},
before,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) {

@@ -51,3 +51,7 @@ // for future readers what this does is wrap a function and then create

if (typeof fn !== 'function') {
function isFunction(fn) {
return typeof fn === 'function';
}
if (!isFunction(fn)) {
return fn;

@@ -59,3 +63,3 @@ }

// the original wrapper.
const wrapper = fn.__sentry_wrapped__;
const wrapper = (fn ).__sentry_wrapped__;
if (wrapper) {

@@ -82,13 +86,9 @@ if (typeof wrapper === 'function') {

/* eslint-disable prefer-rest-params */
// Wrap the function itself
// It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`
const sentryWrapped = function () {
const args = Array.prototype.slice.call(arguments);
const sentryWrapped = function ( ...args) {
try {
if (before && typeof before === 'function') ;
// Also wrap arguments that are themselves functions
const wrappedArguments = args.map(arg => wrap(arg, options));
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
const wrappedArguments = args.map((arg) => wrap(arg, options));
// Attempt to invoke user-land function

@@ -122,14 +122,15 @@ // NOTE: If you are a Sentry user, and you are seeing this stack frame, it

}
};
/* eslint-enable prefer-rest-params */
} ;
// Accessing some objects may throw
// ref: https://github.com/getsentry/sentry-javascript/issues/1168
// Wrap the wrapped function in a proxy, to ensure any other properties of the original function remain available
try {
for (const property in fn) {
if (Object.prototype.hasOwnProperty.call(fn, property)) {
sentryWrapped[property] = fn[property];
sentryWrapped[property ] = fn[property ];
}
}
} catch (_oO) {} // eslint-disable-line no-empty
} catch (e2) {
// Accessing some objects may throw
// ref: https://github.com/getsentry/sentry-javascript/issues/1168
}

@@ -144,3 +145,4 @@ // Signal that this function has been wrapped/filled already

try {
const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name') ;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name');
if (descriptor.configurable) {

@@ -153,4 +155,6 @@ Object.defineProperty(sentryWrapped, 'name', {

}
// eslint-disable-next-line no-empty
} catch (_oO) {}
} catch (e3) {
// This may throw if e.g. the descriptor does not exist, or a browser does not allow redefining `name`.
// to save some bytes we simply try-catch this
}

@@ -157,0 +161,0 @@ return sentryWrapped;

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

/* eslint-disable max-lines */
/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */

@@ -8,0 +11,0 @@ const MAX_ALLOWED_STRING_LENGTH = 1024;

@@ -86,3 +86,2 @@ import { defineIntegration, fill, getFunctionName, getOriginalFunction } from '@sentry/core';

function _wrapTimeFunction(original) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( ...args) {

@@ -101,7 +100,4 @@ const originalCallback = args[0];

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function _wrapRAF(original) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( callback) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
return original.apply(this, [

@@ -123,3 +119,2 @@ wrap(callback, {

function _wrapXHR(originalSend) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function ( ...args) {

@@ -132,3 +127,2 @@ // eslint-disable-next-line @typescript-eslint/no-this-alias

if (prop in xhr && typeof xhr[prop] === 'function') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fill(xhr, prop, function (original) {

@@ -163,8 +157,7 @@ const wrapOptions = {

function _wrapEventTarget(target) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const globalObject = WINDOW ;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const proto = globalObject[target] && globalObject[target].prototype;
const targetObj = globalObject[target];
const proto = targetObj && targetObj.prototype;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins
// eslint-disable-next-line no-prototype-builtins
if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {

@@ -177,11 +170,5 @@ return;

{
return function (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
eventName,
fn,
options,
) {
return function ( eventName, fn, options) {
try {
if (typeof fn.handleEvent === 'function') {
if (isEventListenerObject(fn)) {
// ESlint disable explanation:

@@ -205,3 +192,3 @@ // First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would

}
} catch (err) {
} catch (e2) {
// can sometimes get 'Permission denied to access property "handle Event'

@@ -212,4 +199,3 @@ }

eventName,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
wrap(fn , {
wrap(fn, {
mechanism: {

@@ -230,49 +216,41 @@ data: {

fill(
proto,
'removeEventListener',
function (
originalRemoveEventListener,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) {
return function (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fill(proto, 'removeEventListener', function (originalRemoveEventListener,)
eventName,
fn,
options,
) {
/**
* There are 2 possible scenarios here:
*
* 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified
* method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function
* as a pass-through, and call original `removeEventListener` with it.
*
* 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using
* our wrapped version of `addEventListener`, which internally calls `wrap` helper.
* This helper "wraps" whole callback inside a try/catch statement, and attached appropriate metadata to it,
* in order for us to make a distinction between wrapped/non-wrapped functions possible.
* If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.
*
* When someone adds a handler prior to initialization, and then do it again, but after,
* then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible
* to get rid of the initial handler and it'd stick there forever.
*/
const wrappedEventHandler = fn ;
try {
const originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;
if (originalEventHandler) {
originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
}
} catch (e) {
// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments
{
return function ( eventName, fn, options) {
/**
* There are 2 possible scenarios here:
*
* 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified
* method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function
* as a pass-through, and call original `removeEventListener` with it.
*
* 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using
* our wrapped version of `addEventListener`, which internally calls `wrap` helper.
* This helper "wraps" whole callback inside a try/catch statement, and attached appropriate metadata to it,
* in order for us to make a distinction between wrapped/non-wrapped functions possible.
* If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.
*
* When someone adds a handler prior to initialization, and then do it again, but after,
* then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible
* to get rid of the initial handler and it'd stick there forever.
*/
try {
const originalEventHandler = (fn ).__sentry_wrapped__;
if (originalEventHandler) {
originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
}
return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);
};
},
);
} catch (e) {
// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments
}
return originalRemoveEventListener.call(this, eventName, fn, options);
};
});
}
function isEventListenerObject(obj) {
return typeof (obj ).handleEvent === 'function';
}
export { browserApiErrorsIntegration };
//# sourceMappingURL=browserapierrors.js.map

@@ -60,9 +60,10 @@ import { defineIntegration, supportsReportingObserver, GLOBAL_OBJ, getClient, withScope, captureMessage } from '@sentry/core';

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const observer = new (WINDOW ).ReportingObserver(handler, {
buffered: true,
types,
});
const observer = new (WINDOW ).ReportingObserver(
handler,
{
buffered: true,
types,
},
);
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
observer.observe();

@@ -69,0 +70,0 @@ },

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

{"type":"module","version":"8.41.0","sideEffects":false}
{"type":"module","version":"8.42.0","sideEffects":false}

@@ -5,5 +5,2 @@ import { spanToJSON, forEachEnvelopeItem, logger, getClient, timestampInSeconds, DEFAULT_ENVIRONMENT, uuid4, getDebugImagesForResources, browserPerformanceTimeOrigin } from '@sentry/core';

/* eslint-disable max-lines */
const MS_TO_NS = 1e6;

@@ -10,0 +7,0 @@ // Use 0 as main thread id which is identical to threadId in node:worker_threads

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

import { addHistoryInstrumentationHandler } from '@sentry-internal/browser-utils';
import { inboundFiltersIntegration, functionToStringIntegration, dedupeIntegration, consoleSandbox, supportsFetch, logger, stackParserFromStackParserOptions, getIntegrationsToSetup, initAndBind, getCurrentScope, lastEventId, getReportDialogEndpoint, startSession, captureSession, getClient } from '@sentry/core';
import { addHistoryInstrumentationHandler } from '@sentry-internal/browser-utils';
import { BrowserClient } from './client.js';

@@ -4,0 +4,0 @@ import { DEBUG_BUILD } from './debug-build.js';

import { startTrackingWebVitals, startTrackingINP, startTrackingLongAnimationFrames, startTrackingLongTasks, startTrackingInteractions, addHistoryInstrumentationHandler, registerInpInteractionListener, addPerformanceEntries } from '@sentry-internal/browser-utils';
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, GLOBAL_OBJ, getClient, propagationContextFromHeaders, getCurrentScope, spanToJSON, getRootSpan, spanIsSampled, getDynamicSamplingContextFromSpan, browserPerformanceTimeOrigin, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getActiveSpan, getIsolationScope, generatePropagationContext, getDomElement, startIdleSpan, logger, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core';
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, GLOBAL_OBJ, getClient, propagationContextFromHeaders, getCurrentScope, spanToJSON, getRootSpan, spanIsSampled, getDynamicSamplingContextFromSpan, browserPerformanceTimeOrigin, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getActiveSpan, getIsolationScope, generateTraceId, getDomElement, startIdleSpan, logger, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core';
import { DEBUG_BUILD } from '../debug-build.js';

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

function startBrowserTracingNavigationSpan(client, spanOptions) {
getIsolationScope().setPropagationContext(generatePropagationContext());
getCurrentScope().setPropagationContext(generatePropagationContext());
getIsolationScope().setPropagationContext({ traceId: generateTraceId() });
getCurrentScope().setPropagationContext({ traceId: generateTraceId() });

@@ -296,0 +296,0 @@ client.emit('startNavigationSpan', spanOptions);

@@ -5,4 +5,2 @@ import { addXhrInstrumentationHandler, addPerformanceInstrumentationHandler, SENTRY_XHR_DATA_KEY } from '@sentry-internal/browser-utils';

/* eslint-disable max-lines */
/** Options for Request Instrumentation */

@@ -9,0 +7,0 @@

@@ -1,8 +0,7 @@

import { Scope } from '@sentry/core';
import { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, Scope, SeverityLevel, UserFeedback } from '@sentry/core';
import { BaseClient } from '@sentry/core';
import { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, SeverityLevel, UserFeedback } from '@sentry/types';
import { BrowserTransportOptions } from './transports/types';
/**
* Configuration options for the Sentry Browser SDK.
* @see @sentry/types Options for more information.
* @see @sentry/core Options for more information.
*/

@@ -9,0 +8,0 @@ export type BrowserOptions = Options<BrowserTransportOptions> & BrowserClientReplayOptions & BrowserClientProfilingOptions & {

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

import { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/types';
import { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * This function creates an exception from a JavaScript Error

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

export { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/types';
export { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/core';
export { BrowserOptions } from './client';

@@ -3,0 +3,0 @@ export { ReportDialogOptions } from './sdk';

@@ -5,3 +5,3 @@ /**

*/
export declare const feedbackAsyncIntegration: import("@sentry/types").IntegrationFn<import("@sentry/types").Integration & {
export declare const feedbackAsyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;

@@ -8,0 +8,0 @@ createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{

/** Add a widget to capture user feedback to your application. */
export declare const feedbackSyncIntegration: import("@sentry/types").IntegrationFn<import("@sentry/types").Integration & {
export declare const feedbackSyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;

@@ -4,0 +4,0 @@ createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{

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

import { Mechanism, WrappedFunction } from '@sentry/types';
import { Mechanism, WrappedFunction } from '@sentry/core';
export declare const WINDOW: import("@sentry/core").InternalGlobal & Window;

@@ -11,14 +11,10 @@ /**

export declare function ignoreNextOnError(): void;
/**
* Instruments the given function and sends an event to Sentry every time the
* function throws an exception.
*
* @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always
* has a correct `this` context.
* @returns The wrapped function.
* @hidden
*/
export declare function wrap(fn: WrappedFunction, options?: {
type WrappableFunction = Function;
export declare function wrap<T extends WrappableFunction>(fn: T, options?: {
mechanism?: Mechanism;
}, before?: WrappedFunction): any;
}): WrappedFunction<T>;
export declare function wrap<NonFunction>(fn: NonFunction, options?: {
mechanism?: Mechanism;
}): NonFunction;
export {};
//# sourceMappingURL=helpers.d.ts.map

@@ -18,3 +18,3 @@ export * from './exports';

export { addTracingExtensions, registerSpanErrorInstrumentation, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, startNewTrace, getSpanDescendants, setMeasurement, getSpanStatusFromHttpCode, setHttpStatus, makeMultiplexedTransport, moduleMetadataIntegration, zodErrorsIntegration, thirdPartyErrorFilterIntegration, } from '@sentry/core';
export { Span } from '@sentry/types';
export { Span } from '@sentry/core';
export { makeBrowserOfflineTransport } from './transports/offline';

@@ -21,0 +21,0 @@ export { browserProfilingIntegration } from './profiling/integration';

@@ -12,4 +12,4 @@ interface BreadcrumbsOptions {

}
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/types").Integration;
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=breadcrumbs.d.ts.map

@@ -11,4 +11,4 @@ interface BrowserApiErrorsOptions {

*/
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/types").Integration;
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=browserapierrors.d.ts.map

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

import { StackFrame } from '@sentry/types';
import { StackFrame } from '@sentry/core';
interface ContextLinesOptions {

@@ -22,3 +22,3 @@ /**

*/
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").Integration;
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
/**

@@ -25,0 +25,0 @@ * Only exported for testing

type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/types").Integration;
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=globalhandlers.d.ts.map

@@ -28,4 +28,4 @@ export type HttpStatusCodeRange = [

*/
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/types").Integration;
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=httpclient.d.ts.map

@@ -5,3 +5,3 @@ /**

*/
export declare const httpContextIntegration: () => import("@sentry/types").Integration;
export declare const httpContextIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=httpcontext.d.ts.map

@@ -8,4 +8,4 @@ interface LinkedErrorsOptions {

*/
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/types").Integration;
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=linkederrors.d.ts.map

@@ -8,4 +8,4 @@ type ReportTypes = 'crash' | 'deprecation' | 'intervention';

*/
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/types").Integration;
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=reportingobserver.d.ts.map

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

import { Event } from '@sentry/types';
import { Event } from '@sentry/core';
export type SpotlightConnectionOptions = {

@@ -15,3 +15,3 @@ /**

*/
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").Integration;
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration;
/**

@@ -18,0 +18,0 @@ * Flags if the event is a transaction created from an interaction with the spotlight UI.

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

import { Metrics } from '@sentry/types';
import { Metrics } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * The metrics API is used to capture custom metrics in Sentry.

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

export declare const browserProfilingIntegration: () => import("@sentry/types").Integration;
export declare const browserProfilingIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=integration.d.ts.map

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

import { Span } from '@sentry/types';
import { Span } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Wraps startTransaction and stopTransaction with profiling related logic.

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

import { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/types';
import { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/core';
import { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';

@@ -3,0 +3,0 @@ /**

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

import { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/types';
import { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/core';
import { BrowserOptions } from './client';

@@ -3,0 +3,0 @@ /** Get the default integrations for the browser SDK. */

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

import { StackLineParser } from '@sentry/types';
import { StackLineParser } from '@sentry/core';
export declare const chromeStackLineParser: StackLineParser;

@@ -8,3 +8,3 @@ export declare const geckoStackLineParser: StackLineParser;

export declare const defaultStackLineParsers: StackLineParser[];
export declare const defaultStackParser: import("@sentry/types").StackParser;
export declare const defaultStackParser: import("@sentry/core").StackParser;
//# sourceMappingURL=stack-parsers.d.ts.map

@@ -1,3 +0,2 @@

import { Client, StartSpanOptions } from '@sentry/types';
import { Span } from '@sentry/types';
import { Client, Span, StartSpanOptions } from '@sentry/core';
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";

@@ -123,3 +122,3 @@ /** Options for Browser Tracing integration */

name: string;
afterAllSetup(client: Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>): void;
afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
};

@@ -126,0 +125,0 @@ /**

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

import { Client, HandlerDataXhr, Span } from '@sentry/types';
import { Client, HandlerDataXhr, Span } from '@sentry/core';
/** Options for Request Instrumentation */

@@ -3,0 +3,0 @@ export interface RequestInstrumentationOptions {

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

import { Transport } from '@sentry/types';
import { Transport } from '@sentry/core';
import { WINDOW } from '../helpers';

@@ -3,0 +3,0 @@ import { BrowserTransportOptions } from './types';

@@ -1,3 +0,2 @@

import { OfflineTransportOptions } from '@sentry/core';
import { BaseTransportOptions, Transport } from '@sentry/types';
import { BaseTransportOptions, OfflineTransportOptions, Transport } from '@sentry/core';
type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;

@@ -4,0 +3,0 @@ /** Create or open an IndexedDb store */

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

import { BaseTransportOptions } from '@sentry/types';
import { BaseTransportOptions } from '@sentry/core';
export interface BrowserTransportOptions extends BaseTransportOptions {

@@ -3,0 +3,0 @@ /** Fetch API init parameters. Used by the FetchTransport */

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

import { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/types';
import { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Creates an envelope from a user feedback.

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

import { IntegrationFn } from '@sentry/types';
import { IntegrationFn } from '@sentry/core';
declare const LazyLoadableIntegrations: {

@@ -3,0 +3,0 @@ readonly replayIntegration: "replay";

@@ -1,8 +0,7 @@

import type { Scope } from '@sentry/core';
import type { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, Scope, SeverityLevel, UserFeedback } from '@sentry/core';
import { BaseClient } from '@sentry/core';
import type { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, SeverityLevel, UserFeedback } from '@sentry/types';
import type { BrowserTransportOptions } from './transports/types';
/**
* Configuration options for the Sentry Browser SDK.
* @see @sentry/types Options for more information.
* @see @sentry/core Options for more information.
*/

@@ -9,0 +8,0 @@ export type BrowserOptions = Options<BrowserTransportOptions> & BrowserClientReplayOptions & BrowserClientProfilingOptions & {

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

import type { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/types';
import type { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * This function creates an exception from a JavaScript Error

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

export type { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/types';
export type { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/core';
export type { BrowserOptions } from './client';

@@ -3,0 +3,0 @@ export type { ReportDialogOptions } from './sdk';

@@ -5,3 +5,3 @@ /**

*/
export declare const feedbackAsyncIntegration: import("@sentry/types").IntegrationFn<import("@sentry/types").Integration & {
export declare const feedbackAsyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;

@@ -8,0 +8,0 @@ createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{

/** Add a widget to capture user feedback to your application. */
export declare const feedbackSyncIntegration: import("@sentry/types").IntegrationFn<import("@sentry/types").Integration & {
export declare const feedbackSyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;

@@ -4,0 +4,0 @@ createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{

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

import type { Mechanism, WrappedFunction } from '@sentry/types';
import type { Mechanism, WrappedFunction } from '@sentry/core';
export declare const WINDOW: import("@sentry/core").InternalGlobal & Window;

@@ -11,14 +11,10 @@ /**

export declare function ignoreNextOnError(): void;
/**
* Instruments the given function and sends an event to Sentry every time the
* function throws an exception.
*
* @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always
* has a correct `this` context.
* @returns The wrapped function.
* @hidden
*/
export declare function wrap(fn: WrappedFunction, options?: {
type WrappableFunction = Function;
export declare function wrap<T extends WrappableFunction>(fn: T, options?: {
mechanism?: Mechanism;
}, before?: WrappedFunction): any;
}): WrappedFunction<T>;
export declare function wrap<NonFunction>(fn: NonFunction, options?: {
mechanism?: Mechanism;
}): NonFunction;
export {};
//# sourceMappingURL=helpers.d.ts.map

@@ -18,3 +18,3 @@ export * from './exports';

export { addTracingExtensions, registerSpanErrorInstrumentation, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, startNewTrace, getSpanDescendants, setMeasurement, getSpanStatusFromHttpCode, setHttpStatus, makeMultiplexedTransport, moduleMetadataIntegration, zodErrorsIntegration, thirdPartyErrorFilterIntegration, } from '@sentry/core';
export type { Span } from '@sentry/types';
export type { Span } from '@sentry/core';
export { makeBrowserOfflineTransport } from './transports/offline';

@@ -21,0 +21,0 @@ export { browserProfilingIntegration } from './profiling/integration';

@@ -12,4 +12,4 @@ interface BreadcrumbsOptions {

}
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/types").Integration;
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=breadcrumbs.d.ts.map

@@ -11,4 +11,4 @@ interface BrowserApiErrorsOptions {

*/
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/types").Integration;
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=browserapierrors.d.ts.map

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

import type { StackFrame } from '@sentry/types';
import type { StackFrame } from '@sentry/core';
interface ContextLinesOptions {

@@ -22,3 +22,3 @@ /**

*/
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").Integration;
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
/**

@@ -25,0 +25,0 @@ * Only exported for testing

type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/types").Integration;
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=globalhandlers.d.ts.map

@@ -25,4 +25,4 @@ export type HttpStatusCodeRange = [number, number] | number;

*/
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/types").Integration;
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=httpclient.d.ts.map

@@ -5,3 +5,3 @@ /**

*/
export declare const httpContextIntegration: () => import("@sentry/types").Integration;
export declare const httpContextIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=httpcontext.d.ts.map

@@ -8,4 +8,4 @@ interface LinkedErrorsOptions {

*/
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/types").Integration;
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=linkederrors.d.ts.map

@@ -8,4 +8,4 @@ type ReportTypes = 'crash' | 'deprecation' | 'intervention';

*/
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/types").Integration;
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=reportingobserver.d.ts.map

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

import type { Event } from '@sentry/types';
import type { Event } from '@sentry/core';
export type SpotlightConnectionOptions = {

@@ -15,3 +15,3 @@ /**

*/
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/types").Integration;
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration;
/**

@@ -18,0 +18,0 @@ * Flags if the event is a transaction created from an interaction with the spotlight UI.

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

import type { Metrics } from '@sentry/types';
import type { Metrics } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * The metrics API is used to capture custom metrics in Sentry.

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

export declare const browserProfilingIntegration: () => import("@sentry/types").Integration;
export declare const browserProfilingIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=integration.d.ts.map

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

import type { Span } from '@sentry/types';
import type { Span } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Wraps startTransaction and stopTransaction with profiling related logic.

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

import type { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/types';
import type { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/core';
import type { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';

@@ -3,0 +3,0 @@ /**

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

import type { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/types';
import type { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/core';
import type { BrowserOptions } from './client';

@@ -3,0 +3,0 @@ /** Get the default integrations for the browser SDK. */

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

import type { StackLineParser } from '@sentry/types';
import type { StackLineParser } from '@sentry/core';
export declare const chromeStackLineParser: StackLineParser;

@@ -8,3 +8,3 @@ export declare const geckoStackLineParser: StackLineParser;

export declare const defaultStackLineParsers: StackLineParser[];
export declare const defaultStackParser: import("@sentry/types").StackParser;
export declare const defaultStackParser: import("@sentry/core").StackParser;
//# sourceMappingURL=stack-parsers.d.ts.map

@@ -1,3 +0,2 @@

import type { Client, StartSpanOptions } from '@sentry/types';
import type { Span } from '@sentry/types';
import type { Client, Span, StartSpanOptions } from '@sentry/core';
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";

@@ -123,3 +122,3 @@ /** Options for Browser Tracing integration */

name: string;
afterAllSetup(client: Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>): void;
afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
};

@@ -126,0 +125,0 @@ /**

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

import type { Client, HandlerDataXhr, Span } from '@sentry/types';
import type { Client, HandlerDataXhr, Span } from '@sentry/core';
/** Options for Request Instrumentation */

@@ -3,0 +3,0 @@ export interface RequestInstrumentationOptions {

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

import type { Transport } from '@sentry/types';
import type { Transport } from '@sentry/core';
import type { WINDOW } from '../helpers';

@@ -3,0 +3,0 @@ import type { BrowserTransportOptions } from './types';

@@ -1,3 +0,2 @@

import type { OfflineTransportOptions } from '@sentry/core';
import type { BaseTransportOptions, Transport } from '@sentry/types';
import type { BaseTransportOptions, OfflineTransportOptions, Transport } from '@sentry/core';
type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;

@@ -4,0 +3,0 @@ /** Create or open an IndexedDb store */

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

import type { BaseTransportOptions } from '@sentry/types';
import type { BaseTransportOptions } from '@sentry/core';
export interface BrowserTransportOptions extends BaseTransportOptions {

@@ -3,0 +3,0 @@ /** Fetch API init parameters. Used by the FetchTransport */

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

import type { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/types';
import type { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Creates an envelope from a user feedback.

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

import type { IntegrationFn } from '@sentry/types';
import type { IntegrationFn } from '@sentry/core';
declare const LazyLoadableIntegrations: {

@@ -3,0 +3,0 @@ readonly replayIntegration: "replay";

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

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

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

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

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

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

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

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

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

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

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

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

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

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