Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
11
Versions
523
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 8.19.0 to 8.20.0

26

build/npm/cjs/client.js

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

}
/**
* Sends client reports as an envelope.
*/
_flushOutcomes() {
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);
}
}

@@ -122,0 +96,0 @@

28

build/npm/esm/client.js
import { BaseClient, applySdkMetadata } from '@sentry/core';
import { getSDKSource, logger, createClientReportEnvelope, dsnToString } from '@sentry/utils';
import { getSDKSource, logger } from '@sentry/utils';
import { DEBUG_BUILD } from './debug-build.js';

@@ -92,28 +92,2 @@ import { eventFromException, eventFromMessage } from './eventbuilder.js';

}
/**
* Sends client reports as an envelope.
*/
_flushOutcomes() {
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);
}
}

@@ -120,0 +94,0 @@

@@ -49,7 +49,3 @@ import { Scope } from '@sentry/core';

protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike<Event | null>;
/**
* Sends client reports as an envelope.
*/
private _flushOutcomes;
}
//# sourceMappingURL=client.d.ts.map

@@ -49,7 +49,3 @@ import type { Scope } from '@sentry/core';

protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike<Event | null>;
/**
* Sends client reports as an envelope.
*/
private _flushOutcomes;
}
//# sourceMappingURL=client.d.ts.map

18

package.json
{
"name": "@sentry/browser",
"version": "8.19.0",
"version": "8.20.0",
"description": "Official Sentry SDK for browsers",

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

"dependencies": {
"@sentry-internal/browser-utils": "8.19.0",
"@sentry-internal/feedback": "8.19.0",
"@sentry-internal/replay": "8.19.0",
"@sentry-internal/replay-canvas": "8.19.0",
"@sentry/core": "8.19.0",
"@sentry/types": "8.19.0",
"@sentry/utils": "8.19.0"
"@sentry-internal/browser-utils": "8.20.0",
"@sentry-internal/feedback": "8.20.0",
"@sentry-internal/replay": "8.20.0",
"@sentry-internal/replay-canvas": "8.20.0",
"@sentry/core": "8.20.0",
"@sentry/types": "8.20.0",
"@sentry/utils": "8.20.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "8.19.0",
"@sentry-internal/integration-shims": "8.20.0",
"fake-indexeddb": "^4.0.1"

@@ -54,0 +54,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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