Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
2
Maintainers
11
Versions
486
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.82.0 to 7.83.0

cjs/debug-build.js

19

cjs/baseclient.js

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

const api = require('./api.js');
const debugBuild = require('./debug-build.js');
const envelope = require('./envelope.js');

@@ -77,3 +78,3 @@ const integration = require('./integration.js');

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('No DSN provided, client will not send events.');
debugBuild.DEBUG_BUILD && utils.logger.warn('No DSN provided, client will not send events.');
}

@@ -98,3 +99,3 @@

if (utils.checkOrSetAlreadyCaught(exception)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(ALREADY_SEEN_ERROR);
debugBuild.DEBUG_BUILD && utils.logger.log(ALREADY_SEEN_ERROR);
return;

@@ -149,3 +150,3 @@ }

if (hint && hint.originalException && utils.checkOrSetAlreadyCaught(hint.originalException)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(ALREADY_SEEN_ERROR);
debugBuild.DEBUG_BUILD && utils.logger.log(ALREADY_SEEN_ERROR);
return;

@@ -170,3 +171,3 @@ }

if (!(typeof session$1.release === 'string')) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Discarded session because of missing or non-string release');
debugBuild.DEBUG_BUILD && utils.logger.warn('Discarded session because of missing or non-string release');
} else {

@@ -269,3 +270,3 @@ this.sendSession(session$1);

} catch (_oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
return null;

@@ -328,3 +329,3 @@ }

const key = `${reason}:${category}`;
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`Adding outcome: "${key}"`);
debugBuild.DEBUG_BUILD && utils.logger.log(`Adding outcome: "${key}"`);

@@ -497,3 +498,3 @@ // The following works because undefined + 1 === NaN and NaN is falsy

reason => {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (debugBuild.DEBUG_BUILD) {
// If something's gone wrong, log the error as a warning. If it's just us having used a `SentryError` for

@@ -633,6 +634,6 @@ // control flow, log just the message (no stack) as a log-level log.

return this._transport.send(envelope).then(null, reason => {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Error while sending event:', reason);
debugBuild.DEBUG_BUILD && utils.logger.error('Error while sending event:', reason);
});
} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Transport disabled');
debugBuild.DEBUG_BUILD && utils.logger.error('Transport disabled');
}

@@ -639,0 +640,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('./debug-build.js');

@@ -36,6 +37,3 @@ /**

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
processor.id &&
result === null &&
utils.logger.log(`Event processor "${processor.id}" dropped event`);
debugBuild.DEBUG_BUILD && processor.id && result === null && utils.logger.log(`Event processor "${processor.id}" dropped event`);

@@ -42,0 +40,0 @@ if (utils.isThenable(result)) {

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('./debug-build.js');
const hub = require('./hub.js');

@@ -188,5 +189,5 @@ const prepareEvent = require('./utils/prepareEvent.js');

if (!client) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Cannot capture check-in. No client defined.');
debugBuild.DEBUG_BUILD && utils.logger.warn('Cannot capture check-in. No client defined.');
} else if (!client.captureCheckIn) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Cannot capture check-in. Client does not support sending check-ins.');
debugBuild.DEBUG_BUILD && utils.logger.warn('Cannot capture check-in. Client does not support sending check-ins.');
} else {

@@ -255,3 +256,3 @@ return client.captureCheckIn(checkIn, upsertMonitorConfig, scope);

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Cannot flush events. No client defined.');
debugBuild.DEBUG_BUILD && utils.logger.warn('Cannot flush events. No client defined.');
return Promise.resolve(false);

@@ -273,3 +274,3 @@ }

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Cannot flush events and disable SDK. No client defined.');
debugBuild.DEBUG_BUILD && utils.logger.warn('Cannot flush events and disable SDK. No client defined.');
return Promise.resolve(false);

@@ -276,0 +277,0 @@ }

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

const constants = require('./constants.js');
const debugBuild = require('./debug-build.js');
const scope = require('./scope.js');

@@ -293,3 +294,3 @@ const session = require('./session.js');

} catch (_oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
return null;

@@ -305,12 +306,10 @@ }

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && !result) {
if (debugBuild.DEBUG_BUILD && !result) {
const client = this.getClient();
if (!client) {
// eslint-disable-next-line no-console
console.warn(
utils.logger.warn(
"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'",
);
} else {
// eslint-disable-next-line no-console
console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
utils.logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();

@@ -438,3 +437,3 @@ Sentry.init({...});

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
}

@@ -441,0 +440,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('./debug-build.js');
const eventProcessors = require('./eventProcessors.js');

@@ -122,3 +123,3 @@ const exports$1 = require('./exports.js');

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`Integration installed: ${integration.name}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`Integration installed: ${integration.name}`);
}

@@ -131,3 +132,3 @@

if (!client || !client.addIntegration) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`);
return;

@@ -134,0 +135,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');

@@ -77,3 +78,3 @@ // "Script error." is hard coded into browsers for errors that it can't read.

if (options.ignoreInternal && _isSentryError(event)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${utils.getEventDescription(event)}`);

@@ -83,3 +84,3 @@ return true;

if (_isIgnoredError(event, options.ignoreErrors)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -91,3 +92,3 @@ `Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${utils.getEventDescription(event)}`,

if (_isIgnoredTransaction(event, options.ignoreTransactions)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -99,3 +100,3 @@ `Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${utils.getEventDescription(event)}`,

if (_isDeniedUrl(event, options.denyUrls)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -109,3 +110,3 @@ `Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${utils.getEventDescription(

if (!_isAllowedUrl(event, options.allowUrls)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -182,3 +183,3 @@ `Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${utils.getEventDescription(

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && possibleMessages.length === 0) {
if (debugBuild.DEBUG_BUILD && possibleMessages.length === 0) {
utils.logger.error(`Could not extract message for event ${utils.getEventDescription(event)}`);

@@ -224,3 +225,3 @@ }

} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error(`Cannot extract url for event ${utils.getEventDescription(event)}`);
debugBuild.DEBUG_BUILD && utils.logger.error(`Cannot extract url for event ${utils.getEventDescription(event)}`);
return null;

@@ -227,0 +228,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('./debug-build.js');
const hub = require('./hub.js');

@@ -20,8 +21,10 @@

if (options.debug === true) {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (debugBuild.DEBUG_BUILD) {
utils.logger.enable();
} else {
// use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped
// eslint-disable-next-line no-console
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
utils.consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
});
}

@@ -28,0 +31,0 @@ }

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

const checkin = require('./checkin.js');
const debugBuild = require('./debug-build.js');
const hub = require('./hub.js');

@@ -115,3 +116,3 @@ const sessionflusher = require('./sessionflusher.js');

if (!release) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');
debugBuild.DEBUG_BUILD && utils.logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');
} else {

@@ -135,3 +136,3 @@ this._sessionFlusher = new sessionflusher.SessionFlusher(this, {

if (!this._isEnabled()) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('SDK not enabled, will not capture checkin.');
debugBuild.DEBUG_BUILD && utils.logger.warn('SDK not enabled, will not capture checkin.');
return id;

@@ -179,3 +180,3 @@ }

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.info('Sending checkin:', checkIn.monitorSlug, checkIn.status);
debugBuild.DEBUG_BUILD && utils.logger.info('Sending checkin:', checkIn.monitorSlug, checkIn.status);
void this._sendEnvelope(envelope);

@@ -191,3 +192,3 @@ return id;

if (!this._sessionFlusher) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Discarded request mode session because autoSessionTracking option was disabled');
debugBuild.DEBUG_BUILD && utils.logger.warn('Discarded request mode session because autoSessionTracking option was disabled');
} else {

@@ -194,0 +195,0 @@ this._sessionFlusher.incrementSessionStatusCount();

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const utils$1 = require('./utils.js');

@@ -28,3 +29,3 @@

const status = 'internal_error';
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);
activeTransaction.setStatus(status);

@@ -31,0 +32,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const hub = require('../hub.js');

@@ -49,3 +50,3 @@ const errors = require('./errors.js');

if (configInstrumenter !== transactionInstrumenter) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.error(

@@ -52,0 +53,0 @@ `A transaction was started with instrumenter=\`${transactionInstrumenter}\`, but the SDK is configured with the \`${configInstrumenter}\` instrumenter.

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const span = require('./span.js');

@@ -106,3 +107,3 @@ const transaction = require('./transaction.js');

// context and attach it to the error.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);
_idleHub.configureScope(scope => scope.setSpan(this));

@@ -131,3 +132,3 @@ }

if (this.spanRecorder) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestamp * 1000).toISOString(), this.op);

@@ -149,3 +150,3 @@

span.setStatus('cancelled');
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));

@@ -160,3 +161,3 @@ }

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (debugBuild.DEBUG_BUILD) {
const stringifiedSpan = JSON.stringify(span, undefined, 2);

@@ -173,5 +174,5 @@ if (!spanStartedBeforeTransactionFinish) {

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] flushing IdleTransaction');
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] flushing IdleTransaction');
} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] No active IdleTransaction');
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] No active IdleTransaction');
}

@@ -222,3 +223,3 @@

// Start heartbeat so that transactions do not run forever.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Starting heartbeat');
debugBuild.DEBUG_BUILD && utils.logger.log('Starting heartbeat');
this._pingHeartbeat();

@@ -289,5 +290,5 @@ }

this.cancelIdleTimeout(undefined, { restartOnChildSpanChange: !this._idleTimeoutCanceledPermanently });
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] pushActivity: ${spanId}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] pushActivity: ${spanId}`);
this.activities[spanId] = true;
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
}

@@ -301,6 +302,6 @@

if (this.activities[spanId]) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] popActivity ${spanId}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] popActivity ${spanId}`);
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
delete this.activities[spanId];
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
}

@@ -342,3 +343,3 @@

if (this._heartbeatCounter >= 3) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] Transaction finished because of no change for 3 heart beats');
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] Transaction finished because of no change for 3 heart beats');
this.setStatus('deadline_exceeded');

@@ -356,3 +357,3 @@ this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[0];

_pingHeartbeat() {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
setTimeout(() => {

@@ -359,0 +360,0 @@ this._beat();

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const hasTracingEnabled = require('../utils/hasTracingEnabled.js');

@@ -60,3 +61,3 @@

if (!isValidSampleRate(sampleRate)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('[Tracing] Discarding transaction because of invalid sample rate.');
debugBuild.DEBUG_BUILD && utils.logger.warn('[Tracing] Discarding transaction because of invalid sample rate.');
transaction.sampled = false;

@@ -68,3 +69,3 @@ return transaction;

if (!sampleRate) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log(

@@ -87,3 +88,3 @@ `[Tracing] Discarding transaction because ${

if (!transaction.sampled) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log(

@@ -97,3 +98,3 @@ `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] starting ${transaction.op} transaction - ${transaction.name}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] starting ${transaction.op} transaction - ${transaction.name}`);
return transaction;

@@ -109,3 +110,3 @@ }

if (utils.isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -121,3 +122,3 @@ `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(

if (rate < 0 || rate > 1) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);

@@ -124,0 +125,0 @@ return false;

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');

@@ -167,3 +168,3 @@ /**

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && childSpan.transaction) {
if (debugBuild.DEBUG_BUILD && childSpan.transaction) {
const opStr = (spanContext && spanContext.op) || '< unknown op >';

@@ -238,3 +239,3 @@ const nameStr = childSpan.transaction.name || '< unknown name >';

if (
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
// Don't call this for transactions

@@ -241,0 +242,0 @@ this.transaction &&

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const hub = require('../hub.js');

@@ -231,3 +232,3 @@ const hasTracingEnabled = require('../utils/hasTracingEnabled.js');

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && traceparentData) {
if (debugBuild.DEBUG_BUILD && traceparentData) {
utils.logger.log(`[Tracing] Continuing trace ${traceparentData.traceId}.`);

@@ -234,0 +235,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');
const hub = require('../hub.js');

@@ -206,3 +207,3 @@ const dynamicSamplingContext = require('./dynamicSamplingContext.js');

if (!this.name) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Transaction has no name, falling back to `<unlabeled transaction>`.');
debugBuild.DEBUG_BUILD && utils.logger.warn('Transaction has no name, falling back to `<unlabeled transaction>`.');
this.name = '<unlabeled transaction>';

@@ -221,3 +222,3 @@ }

// At this point if `sampled !== true` we want to discard the transaction.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');

@@ -270,3 +271,3 @@ if (client) {

if (hasMeasurements) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log(

@@ -279,3 +280,3 @@ '[Measurements] Adding measurements to transaction',

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`);

@@ -282,0 +283,0 @@ return transaction;

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');

@@ -58,3 +59,3 @@ const DEFAULT_TRANSPORT_BUFFER_SIZE = 30;

if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
}

@@ -75,3 +76,3 @@

if (error instanceof utils.SentryError) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Skipped sending event because buffer is full.');
debugBuild.DEBUG_BUILD && utils.logger.error('Skipped sending event because buffer is full.');
recordEnvelopeLoss('queue_overflow');

@@ -78,0 +79,0 @@ return utils.resolvedSyncPromise();

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../debug-build.js');

@@ -10,3 +11,3 @@ const MIN_DELAY = 100; // 100 ms

function log(msg, error) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.info(`[Offline]: ${msg}`, error);
debugBuild.DEBUG_BUILD && utils.logger.info(`[Offline]: ${msg}`, error);
}

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

Object.defineProperty(exports, '__esModule', { value: true });
const SDK_VERSION = '7.82.0';
const SDK_VERSION = '7.83.0';
exports.SDK_VERSION = SDK_VERSION;
//# sourceMappingURL=version.js.map
import { makeDsn, logger, checkOrSetAlreadyCaught, isPrimitive, resolvedSyncPromise, addItemToEnvelope, createAttachmentEnvelopeItem, SyncPromise, rejectedSyncPromise, SentryError, isThenable, isPlainObject } from '@sentry/utils';
import { getEnvelopeEndpointWithUrlEncodedAuth } from './api.js';
import { DEBUG_BUILD } from './debug-build.js';
import { createEventEnvelope, createSessionEnvelope } from './envelope.js';

@@ -74,3 +75,3 @@ import { setupIntegrations, setupIntegration } from './integration.js';

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('No DSN provided, client will not send events.');
DEBUG_BUILD && logger.warn('No DSN provided, client will not send events.');
}

@@ -95,3 +96,3 @@

if (checkOrSetAlreadyCaught(exception)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(ALREADY_SEEN_ERROR);
DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);
return;

@@ -146,3 +147,3 @@ }

if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(ALREADY_SEEN_ERROR);
DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);
return;

@@ -167,3 +168,3 @@ }

if (!(typeof session.release === 'string')) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Discarded session because of missing or non-string release');
DEBUG_BUILD && logger.warn('Discarded session because of missing or non-string release');
} else {

@@ -266,3 +267,3 @@ this.sendSession(session);

} catch (_oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
return null;

@@ -325,3 +326,3 @@ }

const key = `${reason}:${category}`;
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Adding outcome: "${key}"`);
DEBUG_BUILD && logger.log(`Adding outcome: "${key}"`);

@@ -494,3 +495,3 @@ // The following works because undefined + 1 === NaN and NaN is falsy

reason => {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (DEBUG_BUILD) {
// If something's gone wrong, log the error as a warning. If it's just us having used a `SentryError` for

@@ -630,6 +631,6 @@ // control flow, log just the message (no stack) as a log-level log.

return this._transport.send(envelope).then(null, reason => {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Error while sending event:', reason);
DEBUG_BUILD && logger.error('Error while sending event:', reason);
});
} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Transport disabled');
DEBUG_BUILD && logger.error('Transport disabled');
}

@@ -636,0 +637,0 @@ }

import { getGlobalSingleton, SyncPromise, logger, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';

@@ -34,6 +35,3 @@ /**

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
processor.id &&
result === null &&
logger.log(`Event processor "${processor.id}" dropped event`);
DEBUG_BUILD && processor.id && result === null && logger.log(`Event processor "${processor.id}" dropped event`);

@@ -40,0 +38,0 @@ if (isThenable(result)) {

import { logger, uuid4, timestampInSeconds, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';
import { getCurrentHub } from './hub.js';

@@ -186,5 +187,5 @@ import { parseEventHintOrCaptureContext } from './utils/prepareEvent.js';

if (!client) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot capture check-in. No client defined.');
DEBUG_BUILD && logger.warn('Cannot capture check-in. No client defined.');
} else if (!client.captureCheckIn) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot capture check-in. Client does not support sending check-ins.');
DEBUG_BUILD && logger.warn('Cannot capture check-in. Client does not support sending check-ins.');
} else {

@@ -253,3 +254,3 @@ return client.captureCheckIn(checkIn, upsertMonitorConfig, scope);

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events. No client defined.');
DEBUG_BUILD && logger.warn('Cannot flush events. No client defined.');
return Promise.resolve(false);

@@ -271,3 +272,3 @@ }

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events and disable SDK. No client defined.');
DEBUG_BUILD && logger.warn('Cannot flush events and disable SDK. No client defined.');
return Promise.resolve(false);

@@ -274,0 +275,0 @@ }

import { uuid4, dateTimestampInSeconds, consoleSandbox, logger, GLOBAL_OBJ, getGlobalSingleton } from '@sentry/utils';
import { DEFAULT_ENVIRONMENT } from './constants.js';
import { DEBUG_BUILD } from './debug-build.js';
import { Scope } from './scope.js';

@@ -290,3 +291,3 @@ import { closeSession, makeSession, updateSession } from './session.js';

} catch (_oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
return null;

@@ -302,12 +303,10 @@ }

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && !result) {
if (DEBUG_BUILD && !result) {
const client = this.getClient();
if (!client) {
// eslint-disable-next-line no-console
console.warn(
logger.warn(
"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'",
);
} else {
// eslint-disable-next-line no-console
console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();

@@ -435,3 +434,3 @@ Sentry.init({...});

}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
DEBUG_BUILD && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
}

@@ -438,0 +437,0 @@ }

import { arrayify, logger } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';
import { addGlobalEventProcessor } from './eventProcessors.js';

@@ -120,3 +121,3 @@ import { getClient } from './exports.js';

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Integration installed: ${integration.name}`);
DEBUG_BUILD && logger.log(`Integration installed: ${integration.name}`);
}

@@ -129,3 +130,3 @@

if (!client || !client.addIntegration) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`);
DEBUG_BUILD && logger.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`);
return;

@@ -132,0 +133,0 @@ }

import { logger, getEventDescription, stringMatchesSomePattern } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -75,3 +76,3 @@ // "Script error." is hard coded into browsers for errors that it can't read.

if (options.ignoreInternal && _isSentryError(event)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(event)}`);

@@ -81,3 +82,3 @@ return true;

if (_isIgnoredError(event, options.ignoreErrors)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -89,3 +90,3 @@ `Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(event)}`,

if (_isIgnoredTransaction(event, options.ignoreTransactions)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -97,3 +98,3 @@ `Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${getEventDescription(event)}`,

if (_isDeniedUrl(event, options.denyUrls)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -107,3 +108,3 @@ `Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(

if (!_isAllowedUrl(event, options.allowUrls)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -180,3 +181,3 @@ `Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && possibleMessages.length === 0) {
if (DEBUG_BUILD && possibleMessages.length === 0) {
logger.error(`Could not extract message for event ${getEventDescription(event)}`);

@@ -222,3 +223,3 @@ }

} catch (oO) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);
DEBUG_BUILD && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);
return null;

@@ -225,0 +226,0 @@ }

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

import { logger } from '@sentry/utils';
import { logger, consoleSandbox } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';
import { getCurrentHub } from './hub.js';

@@ -18,8 +19,10 @@

if (options.debug === true) {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (DEBUG_BUILD) {
logger.enable();
} else {
// use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped
// eslint-disable-next-line no-console
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
});
}

@@ -26,0 +29,0 @@ }

import { resolvedSyncPromise, eventFromUnknownInput, eventFromMessage, logger, uuid4 } from '@sentry/utils';
import { BaseClient } from './baseclient.js';
import { createCheckInEnvelope } from './checkin.js';
import { DEBUG_BUILD } from './debug-build.js';
import { getCurrentHub } from './hub.js';

@@ -112,3 +113,3 @@ import { SessionFlusher } from './sessionflusher.js';

if (!release) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');
DEBUG_BUILD && logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');
} else {

@@ -132,3 +133,3 @@ this._sessionFlusher = new SessionFlusher(this, {

if (!this._isEnabled()) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('SDK not enabled, will not capture checkin.');
DEBUG_BUILD && logger.warn('SDK not enabled, will not capture checkin.');
return id;

@@ -176,3 +177,3 @@ }

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.info('Sending checkin:', checkIn.monitorSlug, checkIn.status);
DEBUG_BUILD && logger.info('Sending checkin:', checkIn.monitorSlug, checkIn.status);
void this._sendEnvelope(envelope);

@@ -188,3 +189,3 @@ return id;

if (!this._sessionFlusher) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Discarded request mode session because autoSessionTracking option was disabled');
DEBUG_BUILD && logger.warn('Discarded request mode session because autoSessionTracking option was disabled');
} else {

@@ -191,0 +192,0 @@ this._sessionFlusher.incrementSessionStatusCount();

import { addGlobalErrorInstrumentationHandler, addGlobalUnhandledRejectionInstrumentationHandler, logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { getActiveTransaction } from './utils.js';

@@ -26,3 +27,3 @@

const status = 'internal_error';
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);
DEBUG_BUILD && logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);
activeTransaction.setStatus(status);

@@ -29,0 +30,0 @@ }

import { logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { getMainCarrier } from '../hub.js';

@@ -47,3 +48,3 @@ import { registerErrorInstrumentation } from './errors.js';

if (configInstrumenter !== transactionInstrumenter) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.error(

@@ -50,0 +51,0 @@ `A transaction was started with instrumenter=\`${transactionInstrumenter}\`, but the SDK is configured with the \`${configInstrumenter}\` instrumenter.

import { logger, timestampInSeconds } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { SpanRecorder } from './span.js';

@@ -104,3 +105,3 @@ import { Transaction } from './transaction.js';

// context and attach it to the error.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);
DEBUG_BUILD && logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);
_idleHub.configureScope(scope => scope.setSpan(this));

@@ -129,3 +130,3 @@ }

if (this.spanRecorder) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestamp * 1000).toISOString(), this.op);

@@ -147,3 +148,3 @@

span.setStatus('cancelled');
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));

@@ -158,3 +159,3 @@ }

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (DEBUG_BUILD) {
const stringifiedSpan = JSON.stringify(span, undefined, 2);

@@ -171,5 +172,5 @@ if (!spanStartedBeforeTransactionFinish) {

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] flushing IdleTransaction');
DEBUG_BUILD && logger.log('[Tracing] flushing IdleTransaction');
} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] No active IdleTransaction');
DEBUG_BUILD && logger.log('[Tracing] No active IdleTransaction');
}

@@ -220,3 +221,3 @@

// Start heartbeat so that transactions do not run forever.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Starting heartbeat');
DEBUG_BUILD && logger.log('Starting heartbeat');
this._pingHeartbeat();

@@ -287,5 +288,5 @@ }

this.cancelIdleTimeout(undefined, { restartOnChildSpanChange: !this._idleTimeoutCanceledPermanently });
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] pushActivity: ${spanId}`);
DEBUG_BUILD && logger.log(`[Tracing] pushActivity: ${spanId}`);
this.activities[spanId] = true;
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
DEBUG_BUILD && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
}

@@ -299,6 +300,6 @@

if (this.activities[spanId]) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] popActivity ${spanId}`);
DEBUG_BUILD && logger.log(`[Tracing] popActivity ${spanId}`);
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
delete this.activities[spanId];
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
DEBUG_BUILD && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);
}

@@ -340,3 +341,3 @@

if (this._heartbeatCounter >= 3) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] Transaction finished because of no change for 3 heart beats');
DEBUG_BUILD && logger.log('[Tracing] Transaction finished because of no change for 3 heart beats');
this.setStatus('deadline_exceeded');

@@ -354,3 +355,3 @@ this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[0];

_pingHeartbeat() {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
DEBUG_BUILD && logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
setTimeout(() => {

@@ -357,0 +358,0 @@ this._beat();

import { logger, isNaN } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { hasTracingEnabled } from '../utils/hasTracingEnabled.js';

@@ -58,3 +59,3 @@

if (!isValidSampleRate(sampleRate)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('[Tracing] Discarding transaction because of invalid sample rate.');
DEBUG_BUILD && logger.warn('[Tracing] Discarding transaction because of invalid sample rate.');
transaction.sampled = false;

@@ -66,3 +67,3 @@ return transaction;

if (!sampleRate) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log(

@@ -85,3 +86,3 @@ `[Tracing] Discarding transaction because ${

if (!transaction.sampled) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log(

@@ -95,3 +96,3 @@ `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] starting ${transaction.op} transaction - ${transaction.name}`);
DEBUG_BUILD && logger.log(`[Tracing] starting ${transaction.op} transaction - ${transaction.name}`);
return transaction;

@@ -107,3 +108,3 @@ }

if (isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -119,3 +120,3 @@ `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(

if (rate < 0 || rate > 1) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);

@@ -122,0 +123,0 @@ return false;

import { uuid4, timestampInSeconds, logger, generateSentryTraceHeader, dropUndefinedKeys } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -165,3 +166,3 @@ /**

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && childSpan.transaction) {
if (DEBUG_BUILD && childSpan.transaction) {
const opStr = (spanContext && spanContext.op) || '< unknown op >';

@@ -236,3 +237,3 @@ const nameStr = childSpan.transaction.name || '< unknown name >';

if (
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
// Don't call this for transactions

@@ -239,0 +240,0 @@ this.transaction &&

import { isThenable, tracingContextFromHeaders, logger, dropUndefinedKeys } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { getCurrentHub } from '../hub.js';

@@ -229,3 +230,3 @@ import { hasTracingEnabled } from '../utils/hasTracingEnabled.js';

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && traceparentData) {
if (DEBUG_BUILD && traceparentData) {
logger.log(`[Tracing] Continuing trace ${traceparentData.traceId}.`);

@@ -232,0 +233,0 @@ }

import { dropUndefinedKeys, logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';
import { getCurrentHub } from '../hub.js';

@@ -204,3 +205,3 @@ import { getDynamicSamplingContextFromClient } from './dynamicSamplingContext.js';

if (!this.name) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Transaction has no name, falling back to `<unlabeled transaction>`.');
DEBUG_BUILD && logger.warn('Transaction has no name, falling back to `<unlabeled transaction>`.');
this.name = '<unlabeled transaction>';

@@ -219,3 +220,3 @@ }

// At this point if `sampled !== true` we want to discard the transaction.
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');
DEBUG_BUILD && logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');

@@ -268,3 +269,3 @@ if (client) {

if (hasMeasurements) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log(

@@ -277,3 +278,3 @@ '[Measurements] Adding measurements to transaction',

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`);
DEBUG_BUILD && logger.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`);

@@ -280,0 +281,0 @@ return transaction;

import { makePromiseBuffer, forEachEnvelopeItem, envelopeItemTypeToDataCategory, isRateLimited, resolvedSyncPromise, createEnvelope, SentryError, logger, serializeEnvelope, updateRateLimits } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -56,3 +57,3 @@ const DEFAULT_TRANSPORT_BUFFER_SIZE = 30;

if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
DEBUG_BUILD && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
}

@@ -73,3 +74,3 @@

if (error instanceof SentryError) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Skipped sending event because buffer is full.');
DEBUG_BUILD && logger.error('Skipped sending event because buffer is full.');
recordEnvelopeLoss('queue_overflow');

@@ -76,0 +77,0 @@ return resolvedSyncPromise();

import { parseRetryAfterHeader, logger, envelopeContainsItemType } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -8,3 +9,3 @@ const MIN_DELAY = 100; // 100 ms

function log(msg, error) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.info(`[Offline]: ${msg}`, error);
DEBUG_BUILD && logger.info(`[Offline]: ${msg}`, error);
}

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

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

const SDK_VERSION = '7.82.0';
const SDK_VERSION = '7.83.0';
export { SDK_VERSION };
//# sourceMappingURL=version.js.map
{
"name": "@sentry/core",
"version": "7.82.0",
"version": "7.83.0",
"description": "Base implementation for all Sentry JavaScript SDKs",

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

"dependencies": {
"@sentry/types": "7.82.0",
"@sentry/utils": "7.82.0"
"@sentry/types": "7.83.0",
"@sentry/utils": "7.83.0"
},
"sideEffects": false
}

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

export declare const SDK_VERSION = "7.82.0";
export declare const SDK_VERSION = "7.83.0";
//# sourceMappingURL=version.d.ts.map

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

export declare const SDK_VERSION = "7.82.0";
export declare const SDK_VERSION = "7.83.0";
//# sourceMappingURL=version.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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc