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

@sentry/integrations

Package Overview
Dependencies
Maintainers
12
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/integrations - npm Package Compare versions

Comparing version 7.73.0 to 7.74.0

21

cjs/contextlines.js

@@ -37,13 +37,16 @@ Object.defineProperty(exports, '__esModule', { value: true });

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(ContextLines);
if (!self) {
return event;
}
return this.addSourceContext(event);
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** Processes an event and adds context lines */
/** @inheritDoc */
processEvent(event) {
return this.addSourceContext(event);
}
/**
* Processes an event and adds context lines.
*
* TODO (v8): Make this internal/private
*/
addSourceContext(event) {

@@ -50,0 +53,0 @@ const doc = WINDOW.document;

@@ -24,32 +24,28 @@ Object.defineProperty(exports, '__esModule', { value: true });

/** @inheritDoc */
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
const eventProcessor = currentEvent => {
// We want to ignore any non-error type events, e.g. transactions or replays
// These should never be deduped, and also not be compared against as _previousEvent.
if (currentEvent.type) {
return currentEvent;
}
processEvent(currentEvent) {
// We want to ignore any non-error type events, e.g. transactions or replays
// These should never be deduped, and also not be compared against as _previousEvent.
if (currentEvent.type) {
return currentEvent;
}
const self = getCurrentHub().getIntegration(Dedupe);
if (self) {
// Juuust in case something goes wrong
try {
if (_shouldDropEvent(currentEvent, self._previousEvent)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Event dropped due to being a duplicate of previously captured event.');
return null;
}
} catch (_oO) {
return (self._previousEvent = currentEvent);
}
return (self._previousEvent = currentEvent);
// Juuust in case something goes wrong
try {
if (_shouldDropEvent(currentEvent, this._previousEvent)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Event dropped due to being a duplicate of previously captured event.');
return null;
}
return currentEvent;
};
} catch (_oO) {
return (this._previousEvent = currentEvent);
}
eventProcessor.id = this.name;
addGlobalEventProcessor(eventProcessor);
return (this._previousEvent = currentEvent);
}

@@ -56,0 +52,0 @@ } Dedupe.__initStatic();

@@ -35,95 +35,100 @@ Object.defineProperty(exports, '__esModule', { value: true });

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor((event, hint) => {
const self = getCurrentHub().getIntegration(ExtraErrorData);
if (!self) {
return event;
}
return self.enhanceEventWithErrorData(event, hint);
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event, hint) {
return this.enhanceEventWithErrorData(event, hint);
}
/**
* Attaches extracted information from the Error object to extra field in the Event
* Attaches extracted information from the Error object to extra field in the Event.
*
* TODO (v8): Drop this public function.
*/
enhanceEventWithErrorData(event, hint = {}) {
if (!hint.originalException || !utils.isError(hint.originalException)) {
return event;
}
const exceptionName = (hint.originalException ).name || hint.originalException.constructor.name;
return _enhanceEventWithErrorData(event, hint, this._options.depth);
}
} ExtraErrorData.__initStatic();
const errorData = this._extractErrorData(hint.originalException );
function _enhanceEventWithErrorData(event, hint = {}, depth) {
if (!hint.originalException || !utils.isError(hint.originalException)) {
return event;
}
const exceptionName = (hint.originalException ).name || hint.originalException.constructor.name;
if (errorData) {
const contexts = {
...event.contexts,
};
const errorData = _extractErrorData(hint.originalException );
const normalizedErrorData = utils.normalize(errorData, this._options.depth);
if (errorData) {
const contexts = {
...event.contexts,
};
if (utils.isPlainObject(normalizedErrorData)) {
// We mark the error data as "already normalized" here, because we don't want other normalization procedures to
// potentially truncate the data we just already normalized, with a certain depth setting.
utils.addNonEnumerableProperty(normalizedErrorData, '__sentry_skip_normalization__', true);
contexts[exceptionName] = normalizedErrorData;
}
const normalizedErrorData = utils.normalize(errorData, depth);
return {
...event,
contexts,
};
if (utils.isPlainObject(normalizedErrorData)) {
// We mark the error data as "already normalized" here, because we don't want other normalization procedures to
// potentially truncate the data we just already normalized, with a certain depth setting.
utils.addNonEnumerableProperty(normalizedErrorData, '__sentry_skip_normalization__', true);
contexts[exceptionName] = normalizedErrorData;
}
return event;
return {
...event,
contexts,
};
}
/**
* Extract extra information from the Error object
*/
_extractErrorData(error) {
// We are trying to enhance already existing event, so no harm done if it won't succeed
try {
const nativeKeys = [
'name',
'message',
'stack',
'line',
'column',
'fileName',
'lineNumber',
'columnNumber',
'toJSON',
];
return event;
}
const extraErrorInfo = {};
/**
* Extract extra information from the Error object
*/
function _extractErrorData(error) {
// We are trying to enhance already existing event, so no harm done if it won't succeed
try {
const nativeKeys = [
'name',
'message',
'stack',
'line',
'column',
'fileName',
'lineNumber',
'columnNumber',
'toJSON',
];
// We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.
for (const key of Object.keys(error)) {
if (nativeKeys.indexOf(key) !== -1) {
continue;
}
const value = error[key];
extraErrorInfo[key] = utils.isError(value) ? value.toString() : value;
const extraErrorInfo = {};
// We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.
for (const key of Object.keys(error)) {
if (nativeKeys.indexOf(key) !== -1) {
continue;
}
const value = error[key];
extraErrorInfo[key] = utils.isError(value) ? value.toString() : value;
}
// Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)
if (typeof error.toJSON === 'function') {
const serializedError = error.toJSON() ;
// Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)
if (typeof error.toJSON === 'function') {
const serializedError = error.toJSON() ;
for (const key of Object.keys(serializedError)) {
const value = serializedError[key];
extraErrorInfo[key] = utils.isError(value) ? value.toString() : value;
}
for (const key of Object.keys(serializedError)) {
const value = serializedError[key];
extraErrorInfo[key] = utils.isError(value) ? value.toString() : value;
}
return extraErrorInfo;
} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Unable to extract extra data from the Error object:', oO);
}
return null;
return extraErrorInfo;
} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Unable to extract extra data from the Error object:', oO);
}
} ExtraErrorData.__initStatic();
return null;
}
exports.ExtraErrorData = ExtraErrorData;
//# sourceMappingURL=extraerrordata.js.map

@@ -42,13 +42,14 @@ Object.defineProperty(exports, '__esModule', { value: true });

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(RewriteFrames);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** JSDoc */
/** @inheritDoc */
processEvent(event) {
return this.process(event);
}
/**
* TODO (v8): Make this private/internal
*/
process(originalEvent) {

@@ -55,0 +56,0 @@ let processedEvent = originalEvent;

@@ -24,14 +24,13 @@ Object.defineProperty(exports, '__esModule', { value: true });

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(SessionTiming);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event) {
return this.process(event);
}
/**
* @inheritDoc
* TODO (v8): make this private/internal
*/

@@ -38,0 +37,0 @@ process(event) {

@@ -21,17 +21,16 @@ Object.defineProperty(exports, '__esModule', { value: true });

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(Transaction);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event) {
return this.processEvent(event);
}
/**
* @inheritDoc
* TODO (v8): Make this private/internal
*/
process(event) {
const frames = this._getFramesFromEvent(event);
const frames = _getFramesFromEvent(event);

@@ -43,3 +42,3 @@ // use for loop so we don't have to reverse whole frames array

if (frame.in_app === true) {
event.transaction = this._getTransaction(frame);
event.transaction = _getTransaction(frame);
break;

@@ -51,16 +50,14 @@ }

}
} Transaction.__initStatic();
/** JSDoc */
_getFramesFromEvent(event) {
const exception = event.exception && event.exception.values && event.exception.values[0];
return (exception && exception.stacktrace && exception.stacktrace.frames) || [];
}
function _getFramesFromEvent(event) {
const exception = event.exception && event.exception.values && event.exception.values[0];
return (exception && exception.stacktrace && exception.stacktrace.frames) || [];
}
/** JSDoc */
_getTransaction(frame) {
return frame.module || frame.function ? `${frame.module || '?'}/${frame.function || '?'}` : '<unknown>';
}
} Transaction.__initStatic();
function _getTransaction(frame) {
return frame.module || frame.function ? `${frame.module || '?'}/${frame.function || '?'}` : '<unknown>';
}
exports.Transaction = Transaction;
//# sourceMappingURL=transaction.js.map

@@ -35,13 +35,16 @@ import { stripUrlQueryAndFragment, addContextToFrame, GLOBAL_OBJ } from '@sentry/utils';

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(ContextLines);
if (!self) {
return event;
}
return this.addSourceContext(event);
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** Processes an event and adds context lines */
/** @inheritDoc */
processEvent(event) {
return this.addSourceContext(event);
}
/**
* Processes an event and adds context lines.
*
* TODO (v8): Make this internal/private
*/
addSourceContext(event) {

@@ -48,0 +51,0 @@ const doc = WINDOW.document;

@@ -22,32 +22,28 @@ import { logger } from '@sentry/utils';

/** @inheritDoc */
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
const eventProcessor = currentEvent => {
// We want to ignore any non-error type events, e.g. transactions or replays
// These should never be deduped, and also not be compared against as _previousEvent.
if (currentEvent.type) {
return currentEvent;
}
processEvent(currentEvent) {
// We want to ignore any non-error type events, e.g. transactions or replays
// These should never be deduped, and also not be compared against as _previousEvent.
if (currentEvent.type) {
return currentEvent;
}
const self = getCurrentHub().getIntegration(Dedupe);
if (self) {
// Juuust in case something goes wrong
try {
if (_shouldDropEvent(currentEvent, self._previousEvent)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Event dropped due to being a duplicate of previously captured event.');
return null;
}
} catch (_oO) {
return (self._previousEvent = currentEvent);
}
return (self._previousEvent = currentEvent);
// Juuust in case something goes wrong
try {
if (_shouldDropEvent(currentEvent, this._previousEvent)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Event dropped due to being a duplicate of previously captured event.');
return null;
}
return currentEvent;
};
} catch (_oO) {
return (this._previousEvent = currentEvent);
}
eventProcessor.id = this.name;
addGlobalEventProcessor(eventProcessor);
return (this._previousEvent = currentEvent);
}

@@ -54,0 +50,0 @@ } Dedupe.__initStatic();

@@ -33,95 +33,100 @@ import { isError, normalize, isPlainObject, addNonEnumerableProperty, logger } from '@sentry/utils';

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor((event, hint) => {
const self = getCurrentHub().getIntegration(ExtraErrorData);
if (!self) {
return event;
}
return self.enhanceEventWithErrorData(event, hint);
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event, hint) {
return this.enhanceEventWithErrorData(event, hint);
}
/**
* Attaches extracted information from the Error object to extra field in the Event
* Attaches extracted information from the Error object to extra field in the Event.
*
* TODO (v8): Drop this public function.
*/
enhanceEventWithErrorData(event, hint = {}) {
if (!hint.originalException || !isError(hint.originalException)) {
return event;
}
const exceptionName = (hint.originalException ).name || hint.originalException.constructor.name;
return _enhanceEventWithErrorData(event, hint, this._options.depth);
}
} ExtraErrorData.__initStatic();
const errorData = this._extractErrorData(hint.originalException );
function _enhanceEventWithErrorData(event, hint = {}, depth) {
if (!hint.originalException || !isError(hint.originalException)) {
return event;
}
const exceptionName = (hint.originalException ).name || hint.originalException.constructor.name;
if (errorData) {
const contexts = {
...event.contexts,
};
const errorData = _extractErrorData(hint.originalException );
const normalizedErrorData = normalize(errorData, this._options.depth);
if (errorData) {
const contexts = {
...event.contexts,
};
if (isPlainObject(normalizedErrorData)) {
// We mark the error data as "already normalized" here, because we don't want other normalization procedures to
// potentially truncate the data we just already normalized, with a certain depth setting.
addNonEnumerableProperty(normalizedErrorData, '__sentry_skip_normalization__', true);
contexts[exceptionName] = normalizedErrorData;
}
const normalizedErrorData = normalize(errorData, depth);
return {
...event,
contexts,
};
if (isPlainObject(normalizedErrorData)) {
// We mark the error data as "already normalized" here, because we don't want other normalization procedures to
// potentially truncate the data we just already normalized, with a certain depth setting.
addNonEnumerableProperty(normalizedErrorData, '__sentry_skip_normalization__', true);
contexts[exceptionName] = normalizedErrorData;
}
return event;
return {
...event,
contexts,
};
}
/**
* Extract extra information from the Error object
*/
_extractErrorData(error) {
// We are trying to enhance already existing event, so no harm done if it won't succeed
try {
const nativeKeys = [
'name',
'message',
'stack',
'line',
'column',
'fileName',
'lineNumber',
'columnNumber',
'toJSON',
];
return event;
}
const extraErrorInfo = {};
/**
* Extract extra information from the Error object
*/
function _extractErrorData(error) {
// We are trying to enhance already existing event, so no harm done if it won't succeed
try {
const nativeKeys = [
'name',
'message',
'stack',
'line',
'column',
'fileName',
'lineNumber',
'columnNumber',
'toJSON',
];
// We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.
for (const key of Object.keys(error)) {
if (nativeKeys.indexOf(key) !== -1) {
continue;
}
const value = error[key];
extraErrorInfo[key] = isError(value) ? value.toString() : value;
const extraErrorInfo = {};
// We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.
for (const key of Object.keys(error)) {
if (nativeKeys.indexOf(key) !== -1) {
continue;
}
const value = error[key];
extraErrorInfo[key] = isError(value) ? value.toString() : value;
}
// Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)
if (typeof error.toJSON === 'function') {
const serializedError = error.toJSON() ;
// Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)
if (typeof error.toJSON === 'function') {
const serializedError = error.toJSON() ;
for (const key of Object.keys(serializedError)) {
const value = serializedError[key];
extraErrorInfo[key] = isError(value) ? value.toString() : value;
}
for (const key of Object.keys(serializedError)) {
const value = serializedError[key];
extraErrorInfo[key] = isError(value) ? value.toString() : value;
}
return extraErrorInfo;
} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Unable to extract extra data from the Error object:', oO);
}
return null;
return extraErrorInfo;
} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Unable to extract extra data from the Error object:', oO);
}
} ExtraErrorData.__initStatic();
return null;
}
export { ExtraErrorData };
//# sourceMappingURL=extraerrordata.js.map

@@ -40,13 +40,14 @@ import { relative, basename } from '@sentry/utils';

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(RewriteFrames);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** JSDoc */
/** @inheritDoc */
processEvent(event) {
return this.process(event);
}
/**
* TODO (v8): Make this private/internal
*/
process(originalEvent) {

@@ -53,0 +54,0 @@ let processedEvent = originalEvent;

@@ -22,14 +22,13 @@ /** This function adds duration since Sentry was initialized till the time event was sent */

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(SessionTiming);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event) {
return this.process(event);
}
/**
* @inheritDoc
* TODO (v8): make this private/internal
*/

@@ -36,0 +35,0 @@ process(event) {

@@ -19,17 +19,16 @@ /** Add node transaction to the event */

*/
setupOnce(addGlobalEventProcessor, getCurrentHub) {
addGlobalEventProcessor(event => {
const self = getCurrentHub().getIntegration(Transaction);
if (self) {
return self.process(event);
}
return event;
});
setupOnce(_addGlobaleventProcessor, _getCurrentHub) {
// noop
}
/** @inheritDoc */
processEvent(event) {
return this.processEvent(event);
}
/**
* @inheritDoc
* TODO (v8): Make this private/internal
*/
process(event) {
const frames = this._getFramesFromEvent(event);
const frames = _getFramesFromEvent(event);

@@ -41,3 +40,3 @@ // use for loop so we don't have to reverse whole frames array

if (frame.in_app === true) {
event.transaction = this._getTransaction(frame);
event.transaction = _getTransaction(frame);
break;

@@ -49,16 +48,14 @@ }

}
} Transaction.__initStatic();
/** JSDoc */
_getFramesFromEvent(event) {
const exception = event.exception && event.exception.values && event.exception.values[0];
return (exception && exception.stacktrace && exception.stacktrace.frames) || [];
}
function _getFramesFromEvent(event) {
const exception = event.exception && event.exception.values && event.exception.values[0];
return (exception && exception.stacktrace && exception.stacktrace.frames) || [];
}
/** JSDoc */
_getTransaction(frame) {
return frame.module || frame.function ? `${frame.module || '?'}/${frame.function || '?'}` : '<unknown>';
}
} Transaction.__initStatic();
function _getTransaction(frame) {
return frame.module || frame.function ? `${frame.module || '?'}/${frame.function || '?'}` : '<unknown>';
}
export { Transaction };
//# sourceMappingURL=transaction.js.map
{
"name": "@sentry/integrations",
"version": "7.73.0",
"version": "7.74.0",
"description": "Pluggable integrations that can be used to enhance JS SDKs",

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

"dependencies": {
"@sentry/core": "7.73.0",
"@sentry/types": "7.73.0",
"@sentry/utils": "7.73.0",
"@sentry/core": "7.74.0",
"@sentry/types": "7.74.0",
"@sentry/utils": "7.74.0",
"localforage": "^1.8.1",

@@ -34,3 +34,3 @@ "tslib": "^2.4.1 || ^1.9.3"

"devDependencies": {
"@sentry/browser": "7.73.0",
"@sentry/browser": "7.74.0",
"chai": "^4.1.2"

@@ -37,0 +37,0 @@ },

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

import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';
import { Event, Integration, StackFrame } from '@sentry/types';
interface ContextLinesOptions {

@@ -36,4 +36,10 @@ /**

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
/** Processes an event and adds context lines */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* Processes an event and adds context lines.
*
* TODO (v8): Make this internal/private
*/
addSourceContext(event: Event): Event;

@@ -40,0 +46,0 @@ }

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

import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { Event, Integration } from '@sentry/types';
/** Deduplication filter */

@@ -17,6 +17,8 @@ export declare class Dedupe implements Integration {

constructor();
/** @inheritDoc */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
processEvent(currentEvent: Event): Event | null;
}

@@ -23,0 +25,0 @@ /** JSDoc */

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

import { Event, EventHint, EventProcessor, Hub, Integration } from '@sentry/types';
import { Event, EventHint, Integration } from '@sentry/types';
/** JSDoc */
interface ExtraErrorDataOptions {
depth?: number;
depth: number;
}

@@ -21,17 +21,17 @@ /** Patch toString calls to return proper name for wrapped functions */

*/
constructor(options?: ExtraErrorDataOptions);
constructor(options?: Partial<ExtraErrorDataOptions>);
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event, hint: EventHint): Event;
/**
* Attaches extracted information from the Error object to extra field in the Event
* Attaches extracted information from the Error object to extra field in the Event.
*
* TODO (v8): Drop this public function.
*/
enhanceEventWithErrorData(event: Event, hint?: EventHint): Event;
/**
* Extract extra information from the Error object
*/
private _extractErrorData;
}
export {};
//# sourceMappingURL=extraerrordata.d.ts.map

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

import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';
import { Event, Integration, StackFrame } from '@sentry/types';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -32,4 +32,8 @@ /** Rewrite event frames paths */

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
/** JSDoc */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* TODO (v8): Make this private/internal
*/
process(originalEvent: Event): Event;

@@ -36,0 +40,0 @@ /**

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

import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { Event, Integration } from '@sentry/types';
/** This function adds duration since Sentry was initialized till the time event was sent */

@@ -18,5 +18,7 @@ export declare class SessionTiming implements Integration {

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* @inheritDoc
* TODO (v8): make this private/internal
*/

@@ -23,0 +25,0 @@ process(event: Event): Event;

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

import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { Event, Integration } from '@sentry/types';
/** Add node transaction to the event */

@@ -16,12 +16,10 @@ export declare class Transaction implements Integration {

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* @inheritDoc
* TODO (v8): Make this private/internal
*/
process(event: Event): Event;
/** JSDoc */
private _getFramesFromEvent;
/** JSDoc */
private _getTransaction;
}
//# sourceMappingURL=transaction.d.ts.map

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

import type { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';
import type { Event, Integration, StackFrame } from '@sentry/types';
interface ContextLinesOptions {

@@ -36,4 +36,10 @@ /**

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
/** Processes an event and adds context lines */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* Processes an event and adds context lines.
*
* TODO (v8): Make this internal/private
*/
addSourceContext(event: Event): Event;

@@ -40,0 +46,0 @@ }

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

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

@@ -17,6 +17,8 @@ export declare class Dedupe implements Integration {

constructor();
/** @inheritDoc */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
processEvent(currentEvent: Event): Event | null;
}

@@ -23,0 +25,0 @@ /** JSDoc */

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

import type { Event, EventHint, EventProcessor, Hub, Integration } from '@sentry/types';
import type { Event, EventHint, Integration } from '@sentry/types';
/** JSDoc */
interface ExtraErrorDataOptions {
depth?: number;
depth: number;
}

@@ -21,17 +21,17 @@ /** Patch toString calls to return proper name for wrapped functions */

*/
constructor(options?: ExtraErrorDataOptions);
constructor(options?: Partial<ExtraErrorDataOptions>);
/**
* @inheritDoc
*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event, hint: EventHint): Event;
/**
* Attaches extracted information from the Error object to extra field in the Event
* Attaches extracted information from the Error object to extra field in the Event.
*
* TODO (v8): Drop this public function.
*/
enhanceEventWithErrorData(event: Event, hint?: EventHint): Event;
/**
* Extract extra information from the Error object
*/
private _extractErrorData;
}
export {};
//# sourceMappingURL=extraerrordata.d.ts.map

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

import type { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';
import type { Event, Integration, StackFrame } from '@sentry/types';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -32,4 +32,8 @@ /** Rewrite event frames paths */

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
/** JSDoc */
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* TODO (v8): Make this private/internal
*/
process(originalEvent: Event): Event;

@@ -36,0 +40,0 @@ /**

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

import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import type { Event, Integration } from '@sentry/types';
/** This function adds duration since Sentry was initialized till the time event was sent */

@@ -18,5 +18,7 @@ export declare class SessionTiming implements Integration {

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* @inheritDoc
* TODO (v8): make this private/internal
*/

@@ -23,0 +25,0 @@ process(event: Event): Event;

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

import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import type { Event, Integration } from '@sentry/types';
/** Add node transaction to the event */

@@ -16,12 +16,10 @@ export declare class Transaction implements Integration {

*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
/** @inheritDoc */
processEvent(event: Event): Event;
/**
* @inheritDoc
* TODO (v8): Make this private/internal
*/
process(event: Event): Event;
/** JSDoc */
private _getFramesFromEvent;
/** JSDoc */
private _getTransaction;
}
//# sourceMappingURL=transaction.d.ts.map

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