@sentry/core
Advanced tools
Comparing version 8.19.0 to 8.20.0
@@ -690,2 +690,30 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* Sends client reports as an envelope. | ||
*/ | ||
_flushOutcomes() { | ||
debugBuild.DEBUG_BUILD && utils.logger.log('Flushing outcomes...'); | ||
const outcomes = this._clearOutcomes(); | ||
if (outcomes.length === 0) { | ||
debugBuild.DEBUG_BUILD && utils.logger.log('No outcomes to send'); | ||
return; | ||
} | ||
// This is really the only place where we want to check for a DSN and only send outcomes then | ||
if (!this._dsn) { | ||
debugBuild.DEBUG_BUILD && utils.logger.log('No dsn provided, will not send outcomes'); | ||
return; | ||
} | ||
debugBuild.DEBUG_BUILD && utils.logger.log('Sending outcomes:', outcomes); | ||
const envelope = utils.createClientReportEnvelope(outcomes, this._options.tunnel && utils.dsnToString(this._dsn)); | ||
// sendEnvelope should not throw | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.sendEnvelope(envelope); | ||
} | ||
/** | ||
* @inheritDoc | ||
@@ -692,0 +720,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { makeDsn, logger, uuid4, checkOrSetAlreadyCaught, isParameterizedString, isPrimitive, resolvedSyncPromise, addItemToEnvelope, createAttachmentEnvelopeItem, SyncPromise, dropUndefinedKeys, rejectedSyncPromise, SentryError, isThenable, isPlainObject } from '@sentry/utils'; | ||
import { makeDsn, logger, uuid4, checkOrSetAlreadyCaught, isParameterizedString, isPrimitive, resolvedSyncPromise, addItemToEnvelope, createAttachmentEnvelopeItem, SyncPromise, dropUndefinedKeys, rejectedSyncPromise, SentryError, createClientReportEnvelope, dsnToString, isThenable, isPlainObject } from '@sentry/utils'; | ||
import { getEnvelopeEndpointWithUrlEncodedAuth } from './api.js'; | ||
@@ -688,2 +688,30 @@ import { getIsolationScope } from './currentScopes.js'; | ||
/** | ||
* Sends client reports as an envelope. | ||
*/ | ||
_flushOutcomes() { | ||
DEBUG_BUILD && logger.log('Flushing outcomes...'); | ||
const outcomes = this._clearOutcomes(); | ||
if (outcomes.length === 0) { | ||
DEBUG_BUILD && logger.log('No outcomes to send'); | ||
return; | ||
} | ||
// This is really the only place where we want to check for a DSN and only send outcomes then | ||
if (!this._dsn) { | ||
DEBUG_BUILD && logger.log('No dsn provided, will not send outcomes'); | ||
return; | ||
} | ||
DEBUG_BUILD && logger.log('Sending outcomes:', outcomes); | ||
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn)); | ||
// sendEnvelope should not throw | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.sendEnvelope(envelope); | ||
} | ||
/** | ||
* @inheritDoc | ||
@@ -690,0 +718,0 @@ */ |
@@ -276,2 +276,6 @@ 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'; | ||
/** | ||
* Sends client reports as an envelope. | ||
*/ | ||
protected _flushOutcomes(): void; | ||
/** | ||
* @inheritDoc | ||
@@ -278,0 +282,0 @@ */ |
@@ -276,2 +276,6 @@ 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'; | ||
/** | ||
* Sends client reports as an envelope. | ||
*/ | ||
protected _flushOutcomes(): void; | ||
/** | ||
* @inheritDoc | ||
@@ -278,0 +282,0 @@ */ |
{ | ||
"name": "@sentry/core", | ||
"version": "8.19.0", | ||
"version": "8.20.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.19.0", | ||
"@sentry/utils": "8.19.0" | ||
"@sentry/types": "8.20.0", | ||
"@sentry/utils": "8.20.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1891990
20535
+ Added@sentry/types@8.20.0(transitive)
+ Added@sentry/utils@8.20.0(transitive)
- Removed@sentry/types@8.19.0(transitive)
- Removed@sentry/utils@8.19.0(transitive)
Updated@sentry/types@8.20.0
Updated@sentry/utils@8.20.0