Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
Maintainers
11
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.15.0 to 8.16.0

42

build/cjs/integrations/metadata.js

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

const INTEGRATION_NAME = 'ModuleMetadata';
const _moduleMetadataIntegration = (() => {
/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `moduleMetadata` config option.
*
* When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events
* under the `module_metadata` property. This can be used to help in tagging or routing of events from different teams
* our sources
*/
const moduleMetadataIntegration = integration.defineIntegration(() => {
return {
name: INTEGRATION_NAME,
name: 'ModuleMetadata',
setup(client) {

@@ -27,24 +34,17 @@ // We need to strip metadata from stack frames before sending them to Sentry since these are client side only.

});
},
processEvent(event, _hint, client) {
const stackParser = client.getOptions().stackParser;
metadata.addMetadataToStackFrames(stackParser, event);
return event;
client.on('applyFrameMetadata', event => {
// Only apply stack frame metadata to error events
if (event.type !== undefined) {
return;
}
const stackParser = client.getOptions().stackParser;
metadata.addMetadataToStackFrames(stackParser, event);
});
},
};
}) ;
});
/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.
*
* When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events
* under the `module_metadata` property. This can be used to help in tagging or routing of events from different teams
* our sources
*/
const moduleMetadataIntegration = integration.defineIntegration(_moduleMetadataIntegration);
exports.moduleMetadataIntegration = moduleMetadataIntegration;
//# sourceMappingURL=metadata.js.map

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

});
client.on('applyFrameMetadata', event => {
// Only apply stack frame metadata to error events
if (event.type !== undefined) {
return;
}
const stackParser = client.getOptions().stackParser;
metadata.addMetadataToStackFrames(stackParser, event);
});
},
processEvent(event, _hint, client) {
const stackParser = client.getOptions().stackParser;
metadata.addMetadataToStackFrames(stackParser, event);
processEvent(event) {
const frameKeys = getBundleKeysForAllFramesWithFilenames(event);

@@ -35,0 +43,0 @@

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

if (client) {
client.emit('applyFrameMetadata', event);
}
// Only put debug IDs onto frames for error events.

@@ -52,0 +56,0 @@ if (event.type === undefined) {

@@ -5,7 +5,14 @@ import { forEachEnvelopeItem } from '@sentry/utils';

const INTEGRATION_NAME = 'ModuleMetadata';
const _moduleMetadataIntegration = (() => {
/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `moduleMetadata` config option.
*
* When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events
* under the `module_metadata` property. This can be used to help in tagging or routing of events from different teams
* our sources
*/
const moduleMetadataIntegration = defineIntegration(() => {
return {
name: INTEGRATION_NAME,
name: 'ModuleMetadata',
setup(client) {

@@ -25,24 +32,17 @@ // We need to strip metadata from stack frames before sending them to Sentry since these are client side only.

});
},
processEvent(event, _hint, client) {
const stackParser = client.getOptions().stackParser;
addMetadataToStackFrames(stackParser, event);
return event;
client.on('applyFrameMetadata', event => {
// Only apply stack frame metadata to error events
if (event.type !== undefined) {
return;
}
const stackParser = client.getOptions().stackParser;
addMetadataToStackFrames(stackParser, event);
});
},
};
}) ;
});
/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.
*
* When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events
* under the `module_metadata` property. This can be used to help in tagging or routing of events from different teams
* our sources
*/
const moduleMetadataIntegration = defineIntegration(_moduleMetadataIntegration);
export { moduleMetadataIntegration };
//# sourceMappingURL=metadata.js.map

@@ -26,7 +26,15 @@ import { forEachEnvelopeItem, getFramesFromEvent } from '@sentry/utils';

});
client.on('applyFrameMetadata', event => {
// Only apply stack frame metadata to error events
if (event.type !== undefined) {
return;
}
const stackParser = client.getOptions().stackParser;
addMetadataToStackFrames(stackParser, event);
});
},
processEvent(event, _hint, client) {
const stackParser = client.getOptions().stackParser;
addMetadataToStackFrames(stackParser, event);
processEvent(event) {
const frameKeys = getBundleKeysForAllFramesWithFilenames(event);

@@ -33,0 +41,0 @@

@@ -48,2 +48,6 @@ import { uuid4, dateTimestampInSeconds, addExceptionMechanism, truncate, GLOBAL_OBJ, normalize } from '@sentry/utils';

if (client) {
client.emit('applyFrameMetadata', event);
}
// Only put debug IDs onto frames for error events.

@@ -50,0 +54,0 @@ if (event.type === undefined) {

@@ -165,2 +165,3 @@ import { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from '@sentry/types';

on(hook: 'close', callback: () => void): () => void;
on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;
/** @inheritdoc */

@@ -208,2 +209,4 @@ emit(hook: 'beforeSampling', samplingData: {

emit(hook: 'close'): void;
/** @inheritdoc */
emit(hook: 'applyFrameMetadata', event: Event): void;
/**

@@ -210,0 +213,0 @@ * @inheritdoc

/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.
* Metadata can be injected by the Sentry bundler plugins using the `moduleMetadata` config option.
*

@@ -6,0 +6,0 @@ * When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events

@@ -165,2 +165,3 @@ import type { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from '@sentry/types';

on(hook: 'close', callback: () => void): () => void;
on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;
/** @inheritdoc */

@@ -208,2 +209,4 @@ emit(hook: 'beforeSampling', samplingData: {

emit(hook: 'close'): void;
/** @inheritdoc */
emit(hook: 'applyFrameMetadata', event: Event): void;
/**

@@ -210,0 +213,0 @@ * @inheritdoc

/**
* Adds module metadata to stack frames.
*
* Metadata can be injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.
* Metadata can be injected by the Sentry bundler plugins using the `moduleMetadata` config option.
*

@@ -6,0 +6,0 @@ * When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events

{
"name": "@sentry/core",
"version": "8.15.0",
"version": "8.16.0",
"description": "Base implementation for all Sentry JavaScript SDKs",

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

"dependencies": {
"@sentry/types": "8.15.0",
"@sentry/utils": "8.15.0"
"@sentry/types": "8.16.0",
"@sentry/utils": "8.16.0"
},

@@ -46,0 +46,0 @@ "scripts": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc