Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
11
Versions
535
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 7.90.0 to 7.91.0

35

cjs/integrations/breadcrumbs.js

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

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

@@ -93,2 +95,3 @@ const MAX_ALLOWED_STRING_LENGTH = 1024;

let target;
let componentName;
let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;

@@ -113,5 +116,6 @@

const event = handlerData.event ;
target = _isEvent(event)
? utils.htmlTreeAsString(event.target, { keyAttrs, maxStringLength })
: utils.htmlTreeAsString(event, { keyAttrs, maxStringLength });
const element = _isEvent(event) ? event.target : event;
target = utils.htmlTreeAsString(element, { keyAttrs, maxStringLength });
componentName = utils.getComponentName(element);
} catch (e) {

@@ -125,13 +129,16 @@ target = '<unknown>';

core.addBreadcrumb(
{
category: `ui.${handlerData.name}`,
message: target,
},
{
event: handlerData.event,
name: handlerData.name,
global: handlerData.global,
},
);
const breadcrumb = {
category: `ui.${handlerData.name}`,
message: target,
};
if (componentName) {
breadcrumb.data = { 'ui.component_name': componentName };
}
core.addBreadcrumb(breadcrumb, {
event: handlerData.event,
name: handlerData.name,
global: handlerData.global,
});
};

@@ -138,0 +145,0 @@ }

14

cjs/profiling/hubextensions.js

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

// We need to reference the original finish call to avoid creating an infinite loop
const originalFinish = transaction.finish.bind(transaction);
// We need to reference the original end call to avoid creating an infinite loop
const originalEnd = transaction.end.bind(transaction);

@@ -128,5 +128,5 @@ /**

*/
function profilingWrappedTransactionFinish() {
function profilingWrappedTransactionEnd() {
if (!transaction) {
return originalFinish();
return originalEnd();
}

@@ -138,7 +138,7 @@ // onProfileHandler should always return the same profile even if this is called multiple times.

transaction.setContext('profile', { profile_id: profileId, start_timestamp: startTimestamp });
originalFinish();
originalEnd();
},
() => {
// If onProfileHandler fails, we still want to call the original finish method.
originalFinish();
originalEnd();
},

@@ -150,3 +150,3 @@ );

transaction.finish = profilingWrappedTransactionFinish;
transaction.end = profilingWrappedTransactionEnd;
return transaction;

@@ -153,0 +153,0 @@ }

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

/**
* Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
* This exists because we do not want to await async profiler.stop calls as transaction.finish is called
* in a synchronous context. Instead, we handle sending the profile async from the promise callback and
* rely on being able to pull the event from the cache when we need to construct the envelope. This makes the
* integration less reliable as we might be dropping profiles when the cache is full.
*
* @experimental
*/
class BrowserProfilingIntegration {
static __initStatic() {this.id = 'BrowserProfilingIntegration';}
const INTEGRATION_NAME = 'BrowserProfiling';
/** @deprecated This is never set. */
const browserProfilingIntegration = () => {
return {
name: INTEGRATION_NAME,
setup(client) {
const scope = core.getCurrentScope();
constructor() {
this.name = BrowserProfilingIntegration.id;
}
const transaction = scope.getTransaction();
/**
* @inheritDoc
*/
setupOnce(_addGlobalEventProcessor, _getCurrentHub) {
// noop
}
if (transaction && utils.isAutomatedPageLoadTransaction(transaction)) {
if (utils.shouldProfileTransaction(transaction)) {
hubextensions.startProfileForTransaction(transaction);
}
}
/** @inheritdoc */
setup(client) {
const scope = core.getCurrentScope();
const transaction = scope.getTransaction();
if (transaction && utils.isAutomatedPageLoadTransaction(transaction)) {
if (utils.shouldProfileTransaction(transaction)) {
hubextensions.startProfileForTransaction(transaction);
if (typeof client.on !== 'function') {
utils$1.logger.warn('[Profiling] Client does not support hooks, profiling will be disabled');
return;
}
}
if (typeof client.on !== 'function') {
utils$1.logger.warn('[Profiling] Client does not support hooks, profiling will be disabled');
return;
}
client.on('startTransaction', (transaction) => {
if (utils.shouldProfileTransaction(transaction)) {
hubextensions.startProfileForTransaction(transaction);
}
});
client.on('startTransaction', (transaction) => {
if (utils.shouldProfileTransaction(transaction)) {
hubextensions.startProfileForTransaction(transaction);
}
});
client.on('beforeEnvelope', (envelope) => {
// if not profiles are in queue, there is nothing to add to the envelope.
if (!utils.getActiveProfilesCount()) {
return;
}
client.on('beforeEnvelope', (envelope) => {
// if not profiles are in queue, there is nothing to add to the envelope.
if (!utils.getActiveProfilesCount()) {
return;
}
const profiledTransactionEvents = utils.findProfiledTransactionsFromEnvelope(envelope);
if (!profiledTransactionEvents.length) {
return;
}
const profiledTransactionEvents = utils.findProfiledTransactionsFromEnvelope(envelope);
if (!profiledTransactionEvents.length) {
return;
}
const profilesToAddToEnvelope = [];
const profilesToAddToEnvelope = [];
for (const profiledTransaction of profiledTransactionEvents) {
const context = profiledTransaction && profiledTransaction.contexts;
const profile_id = context && context['profile'] && context['profile']['profile_id'];
const start_timestamp = context && context['profile'] && context['profile']['start_timestamp'];
for (const profiledTransaction of profiledTransactionEvents) {
const context = profiledTransaction && profiledTransaction.contexts;
const profile_id = context && context['profile'] && context['profile']['profile_id'];
const start_timestamp = context && context['profile'] && context['profile']['start_timestamp'];
if (typeof profile_id !== 'string') {
debugBuild.DEBUG_BUILD && utils$1.logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (typeof profile_id !== 'string') {
debugBuild.DEBUG_BUILD && utils$1.logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (!profile_id) {
debugBuild.DEBUG_BUILD && utils$1.logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (!profile_id) {
debugBuild.DEBUG_BUILD && utils$1.logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
// Remove the profile from the transaction context before sending, relay will take care of the rest.
if (context && context['profile']) {
delete context.profile;
}
// Remove the profile from the transaction context before sending, relay will take care of the rest.
if (context && context['profile']) {
delete context.profile;
}
const profile = utils.takeProfileFromGlobalCache(profile_id);
if (!profile) {
debugBuild.DEBUG_BUILD && utils$1.logger.log(`[Profiling] Could not retrieve profile for transaction: ${profile_id}`);
continue;
}
const profile = utils.takeProfileFromGlobalCache(profile_id);
if (!profile) {
debugBuild.DEBUG_BUILD && utils$1.logger.log(`[Profiling] Could not retrieve profile for transaction: ${profile_id}`);
continue;
const profileEvent = utils.createProfilingEvent(
profile_id,
start_timestamp ,
profile,
profiledTransaction ,
);
if (profileEvent) {
profilesToAddToEnvelope.push(profileEvent);
}
}
const profileEvent = utils.createProfilingEvent(
profile_id,
start_timestamp ,
profile,
profiledTransaction ,
);
if (profileEvent) {
profilesToAddToEnvelope.push(profileEvent);
}
}
utils.addProfilesToEnvelope(envelope , profilesToAddToEnvelope);
});
},
};
};
utils.addProfilesToEnvelope(envelope , profilesToAddToEnvelope);
});
}
} BrowserProfilingIntegration.__initStatic();
/**
* Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
* This exists because we do not want to await async profiler.stop calls as transaction.finish is called
* in a synchronous context. Instead, we handle sending the profile async from the promise callback and
* rely on being able to pull the event from the cache when we need to construct the envelope. This makes the
* integration less reliable as we might be dropping profiles when the cache is full.
*
* @experimental
*/
// eslint-disable-next-line deprecation/deprecation
const BrowserProfilingIntegration = core.convertIntegrationFnToClass(INTEGRATION_NAME, browserProfilingIntegration);
exports.BrowserProfilingIntegration = BrowserProfilingIntegration;
//# sourceMappingURL=integration.js.map
import { convertIntegrationFnToClass, getClient, addBreadcrumb } from '@sentry/core';
import { addConsoleInstrumentationHandler, addClickKeypressInstrumentationHandler, addXhrInstrumentationHandler, addFetchInstrumentationHandler, addHistoryInstrumentationHandler, getEventDescription, logger, htmlTreeAsString, severityLevelFromString, safeJoin, SENTRY_XHR_DATA_KEY, parseUrl } from '@sentry/utils';
import { addConsoleInstrumentationHandler, addClickKeypressInstrumentationHandler, addXhrInstrumentationHandler, addFetchInstrumentationHandler, addHistoryInstrumentationHandler, getEventDescription, logger, htmlTreeAsString, getComponentName, severityLevelFromString, safeJoin, SENTRY_XHR_DATA_KEY, parseUrl } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { WINDOW } from '../helpers.js';
/* eslint-disable max-lines */
/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */

@@ -90,2 +92,3 @@ const MAX_ALLOWED_STRING_LENGTH = 1024;

let target;
let componentName;
let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;

@@ -110,5 +113,6 @@

const event = handlerData.event ;
target = _isEvent(event)
? htmlTreeAsString(event.target, { keyAttrs, maxStringLength })
: htmlTreeAsString(event, { keyAttrs, maxStringLength });
const element = _isEvent(event) ? event.target : event;
target = htmlTreeAsString(element, { keyAttrs, maxStringLength });
componentName = getComponentName(element);
} catch (e) {

@@ -122,13 +126,16 @@ target = '<unknown>';

addBreadcrumb(
{
category: `ui.${handlerData.name}`,
message: target,
},
{
event: handlerData.event,
name: handlerData.name,
global: handlerData.global,
},
);
const breadcrumb = {
category: `ui.${handlerData.name}`,
message: target,
};
if (componentName) {
breadcrumb.data = { 'ui.component_name': componentName };
}
addBreadcrumb(breadcrumb, {
event: handlerData.event,
name: handlerData.name,
global: handlerData.global,
});
};

@@ -135,0 +142,0 @@ }

@@ -117,4 +117,4 @@ import { logger, timestampInSeconds, uuid4 } from '@sentry/utils';

// We need to reference the original finish call to avoid creating an infinite loop
const originalFinish = transaction.finish.bind(transaction);
// We need to reference the original end call to avoid creating an infinite loop
const originalEnd = transaction.end.bind(transaction);

@@ -126,5 +126,5 @@ /**

*/
function profilingWrappedTransactionFinish() {
function profilingWrappedTransactionEnd() {
if (!transaction) {
return originalFinish();
return originalEnd();
}

@@ -136,7 +136,7 @@ // onProfileHandler should always return the same profile even if this is called multiple times.

transaction.setContext('profile', { profile_id: profileId, start_timestamp: startTimestamp });
originalFinish();
originalEnd();
},
() => {
// If onProfileHandler fails, we still want to call the original finish method.
originalFinish();
originalEnd();
},

@@ -148,3 +148,3 @@ );

transaction.finish = profilingWrappedTransactionFinish;
transaction.end = profilingWrappedTransactionEnd;
return transaction;

@@ -151,0 +151,0 @@ }

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

import { getCurrentScope } from '@sentry/core';
import { convertIntegrationFnToClass, getCurrentScope } from '@sentry/core';
import { logger } from '@sentry/utils';

@@ -7,106 +7,98 @@ import { DEBUG_BUILD } from '../debug-build.js';

/**
* Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
* This exists because we do not want to await async profiler.stop calls as transaction.finish is called
* in a synchronous context. Instead, we handle sending the profile async from the promise callback and
* rely on being able to pull the event from the cache when we need to construct the envelope. This makes the
* integration less reliable as we might be dropping profiles when the cache is full.
*
* @experimental
*/
class BrowserProfilingIntegration {
static __initStatic() {this.id = 'BrowserProfilingIntegration';}
const INTEGRATION_NAME = 'BrowserProfiling';
/** @deprecated This is never set. */
const browserProfilingIntegration = () => {
return {
name: INTEGRATION_NAME,
setup(client) {
const scope = getCurrentScope();
constructor() {
this.name = BrowserProfilingIntegration.id;
}
const transaction = scope.getTransaction();
/**
* @inheritDoc
*/
setupOnce(_addGlobalEventProcessor, _getCurrentHub) {
// noop
}
if (transaction && isAutomatedPageLoadTransaction(transaction)) {
if (shouldProfileTransaction(transaction)) {
startProfileForTransaction(transaction);
}
}
/** @inheritdoc */
setup(client) {
const scope = getCurrentScope();
const transaction = scope.getTransaction();
if (transaction && isAutomatedPageLoadTransaction(transaction)) {
if (shouldProfileTransaction(transaction)) {
startProfileForTransaction(transaction);
if (typeof client.on !== 'function') {
logger.warn('[Profiling] Client does not support hooks, profiling will be disabled');
return;
}
}
if (typeof client.on !== 'function') {
logger.warn('[Profiling] Client does not support hooks, profiling will be disabled');
return;
}
client.on('startTransaction', (transaction) => {
if (shouldProfileTransaction(transaction)) {
startProfileForTransaction(transaction);
}
});
client.on('startTransaction', (transaction) => {
if (shouldProfileTransaction(transaction)) {
startProfileForTransaction(transaction);
}
});
client.on('beforeEnvelope', (envelope) => {
// if not profiles are in queue, there is nothing to add to the envelope.
if (!getActiveProfilesCount()) {
return;
}
client.on('beforeEnvelope', (envelope) => {
// if not profiles are in queue, there is nothing to add to the envelope.
if (!getActiveProfilesCount()) {
return;
}
const profiledTransactionEvents = findProfiledTransactionsFromEnvelope(envelope);
if (!profiledTransactionEvents.length) {
return;
}
const profiledTransactionEvents = findProfiledTransactionsFromEnvelope(envelope);
if (!profiledTransactionEvents.length) {
return;
}
const profilesToAddToEnvelope = [];
const profilesToAddToEnvelope = [];
for (const profiledTransaction of profiledTransactionEvents) {
const context = profiledTransaction && profiledTransaction.contexts;
const profile_id = context && context['profile'] && context['profile']['profile_id'];
const start_timestamp = context && context['profile'] && context['profile']['start_timestamp'];
for (const profiledTransaction of profiledTransactionEvents) {
const context = profiledTransaction && profiledTransaction.contexts;
const profile_id = context && context['profile'] && context['profile']['profile_id'];
const start_timestamp = context && context['profile'] && context['profile']['start_timestamp'];
if (typeof profile_id !== 'string') {
DEBUG_BUILD && logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (typeof profile_id !== 'string') {
DEBUG_BUILD && logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (!profile_id) {
DEBUG_BUILD && logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
if (!profile_id) {
DEBUG_BUILD && logger.log('[Profiling] cannot find profile for a transaction without a profile context');
continue;
}
// Remove the profile from the transaction context before sending, relay will take care of the rest.
if (context && context['profile']) {
delete context.profile;
}
// Remove the profile from the transaction context before sending, relay will take care of the rest.
if (context && context['profile']) {
delete context.profile;
}
const profile = takeProfileFromGlobalCache(profile_id);
if (!profile) {
DEBUG_BUILD && logger.log(`[Profiling] Could not retrieve profile for transaction: ${profile_id}`);
continue;
}
const profile = takeProfileFromGlobalCache(profile_id);
if (!profile) {
DEBUG_BUILD && logger.log(`[Profiling] Could not retrieve profile for transaction: ${profile_id}`);
continue;
const profileEvent = createProfilingEvent(
profile_id,
start_timestamp ,
profile,
profiledTransaction ,
);
if (profileEvent) {
profilesToAddToEnvelope.push(profileEvent);
}
}
const profileEvent = createProfilingEvent(
profile_id,
start_timestamp ,
profile,
profiledTransaction ,
);
if (profileEvent) {
profilesToAddToEnvelope.push(profileEvent);
}
}
addProfilesToEnvelope(envelope , profilesToAddToEnvelope);
});
},
};
};
addProfilesToEnvelope(envelope , profilesToAddToEnvelope);
});
}
} BrowserProfilingIntegration.__initStatic();
/**
* Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
* This exists because we do not want to await async profiler.stop calls as transaction.finish is called
* in a synchronous context. Instead, we handle sending the profile async from the promise callback and
* rely on being able to pull the event from the cache when we need to construct the envelope. This makes the
* integration less reliable as we might be dropping profiles when the cache is full.
*
* @experimental
*/
// eslint-disable-next-line deprecation/deprecation
const BrowserProfilingIntegration = convertIntegrationFnToClass(INTEGRATION_NAME, browserProfilingIntegration);
export { BrowserProfilingIntegration };
//# sourceMappingURL=integration.js.map
{
"name": "@sentry/browser",
"version": "7.90.0",
"version": "7.91.0",
"description": "Official Sentry SDK for browsers",

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

"dependencies": {
"@sentry-internal/feedback": "7.90.0",
"@sentry-internal/tracing": "7.90.0",
"@sentry/core": "7.90.0",
"@sentry/replay": "7.90.0",
"@sentry/types": "7.90.0",
"@sentry/utils": "7.90.0"
"@sentry-internal/feedback": "7.91.0",
"@sentry-internal/tracing": "7.91.0",
"@sentry/core": "7.91.0",
"@sentry/replay": "7.91.0",
"@sentry/types": "7.91.0",
"@sentry/utils": "7.91.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "7.90.0",
"@sentry-internal/integration-shims": "7.91.0",
"@types/md5": "2.1.33",

@@ -37,0 +37,0 @@ "btoa": "^1.2.1",

export * from './exports';
declare const INTEGRATIONS: {
GlobalHandlers: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
TryCatch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
Breadcrumbs: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
HttpContext: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
Dedupe: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
GlobalHandlers: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
TryCatch: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
Breadcrumbs: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
LinkedErrors: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
HttpContext: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
Dedupe: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
FunctionToString: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
InboundFilters: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
};

@@ -28,0 +52,0 @@ export { INTEGRATIONS as Integrations };

/**
* Default Breadcrumbs instrumentations
*/
export declare const Breadcrumbs: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const Breadcrumbs: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=breadcrumbs.d.ts.map
/** Deduplication filter */
export declare const Dedupe: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const Dedupe: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=dedupe.d.ts.map
/** Global handlers */
export declare const GlobalHandlers: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const GlobalHandlers: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=globalhandlers.d.ts.map
/** HttpContext integration collects information about HTTP request headers */
export declare const HttpContext: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const HttpContext: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=httpcontext.d.ts.map
/** Aggregrate linked errors in an event. */
export declare const LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const LinkedErrors: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=linkederrors.d.ts.map
/** Wrap timer functions and event targets to catch errors and provide better meta data */
export declare const TryCatch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const TryCatch: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=trycatch.d.ts.map

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

import { Client, EventProcessor, Hub, Integration } from '@sentry/types';
/**

@@ -11,15 +10,8 @@ * Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]

*/
export declare class BrowserProfilingIntegration implements Integration {
static id: string;
readonly name: string;
/** @deprecated This is never set. */
getCurrentHub?: () => Hub;
constructor();
/**
* @inheritDoc
*/
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
/** @inheritdoc */
setup(client: Client): void;
}
export declare const BrowserProfilingIntegration: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=integration.d.ts.map

@@ -5,3 +5,3 @@ import { Hub } from '@sentry/core';

import { ReportDialogOptions } from './helpers';
export declare const defaultIntegrations: (import("@sentry/types").Integration & {
export declare const defaultIntegrations: (import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;

@@ -8,0 +8,0 @@ })[];

export * from './exports';
declare const INTEGRATIONS: {
GlobalHandlers: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
TryCatch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
Breadcrumbs: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
HttpContext: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
Dedupe: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
GlobalHandlers: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
TryCatch: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
Breadcrumbs: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
LinkedErrors: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
HttpContext: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
Dedupe: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
FunctionToString: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
InboundFilters: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
};

@@ -28,0 +52,0 @@ export { INTEGRATIONS as Integrations };

/**
* Default Breadcrumbs instrumentations
*/
export declare const Breadcrumbs: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const Breadcrumbs: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=breadcrumbs.d.ts.map
/** Deduplication filter */
export declare const Dedupe: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const Dedupe: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=dedupe.d.ts.map
/** Global handlers */
export declare const GlobalHandlers: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const GlobalHandlers: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=globalhandlers.d.ts.map
/** HttpContext integration collects information about HTTP request headers */
export declare const HttpContext: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const HttpContext: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=httpcontext.d.ts.map
/** Aggregrate linked errors in an event. */
export declare const LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const LinkedErrors: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=linkederrors.d.ts.map
/** Wrap timer functions and event targets to catch errors and provide better meta data */
export declare const TryCatch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
}>;
export declare const TryCatch: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=trycatch.d.ts.map

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

import type { Client, EventProcessor, Hub, Integration } from '@sentry/types';
/**

@@ -11,15 +10,8 @@ * Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]

*/
export declare class BrowserProfilingIntegration implements Integration {
static id: string;
readonly name: string;
/** @deprecated This is never set. */
getCurrentHub?: () => Hub;
constructor();
/**
* @inheritDoc
*/
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
/** @inheritdoc */
setup(client: Client): void;
}
export declare const BrowserProfilingIntegration: {
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;
};
id: string;
};
//# sourceMappingURL=integration.d.ts.map

@@ -5,3 +5,3 @@ import type { Hub } from '@sentry/core';

import type { ReportDialogOptions } from './helpers';
export declare const defaultIntegrations: (import("@sentry/types").Integration & {
export declare const defaultIntegrations: (import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & {
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void;

@@ -8,0 +8,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

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