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.25.0 to 8.26.0

build/npm/types-ts3.8/integrations/spotlight.d.ts

2

build/npm/cjs/sdk.js

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

const extensionProtocols = ['chrome-extension:', 'moz-extension:', 'ms-browser-extension:'];
const extensionProtocols = ['chrome-extension:', 'moz-extension:', 'ms-browser-extension:', 'safari-web-extension:'];

@@ -76,0 +76,0 @@ // Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage

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

enableLongTask: true,
enableLongAnimationFrame: false,
enableLongAnimationFrame: true,
enableInp: true,

@@ -44,3 +44,3 @@ _experiments: {},

enableLongAnimationFrame,
_experiments: { enableInteractions },
_experiments: { enableInteractions, enableStandaloneClsSpans },
beforeStartSpan,

@@ -62,3 +62,3 @@ idleTimeout,

const _collectWebVitals = browserUtils.startTrackingWebVitals();
const _collectWebVitals = browserUtils.startTrackingWebVitals({ recordClsStandaloneSpans: enableStandaloneClsSpans || false });

@@ -69,3 +69,7 @@ if (enableInp) {

if (enableLongAnimationFrame && PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')) {
if (
enableLongAnimationFrame &&
utils.GLOBAL_OBJ.PerformanceObserver &&
PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')
) {
browserUtils.startTrackingLongAnimationFrames();

@@ -113,3 +117,3 @@ } else if (enableLongTask) {

_collectWebVitals();
browserUtils.addPerformanceEntries(span);
browserUtils.addPerformanceEntries(span, { recordClsOnPageloadSpan: !enableStandaloneClsSpans });
},

@@ -151,2 +155,3 @@ });

}
activeSpan = _createRouteSpan(client, {

@@ -153,0 +158,0 @@ op: 'navigation',

@@ -71,3 +71,3 @@ import { inboundFiltersIntegration, functionToStringIntegration, dedupeIntegration, getIntegrationsToSetup, initAndBind, getCurrentScope, lastEventId, getReportDialogEndpoint, startSession, captureSession, getClient } from '@sentry/core';

const extensionProtocols = ['chrome-extension:', 'moz-extension:', 'ms-browser-extension:'];
const extensionProtocols = ['chrome-extension:', 'moz-extension:', 'ms-browser-extension:', 'safari-web-extension:'];

@@ -74,0 +74,0 @@ // Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage

import { startTrackingWebVitals, startTrackingINP, startTrackingLongAnimationFrames, startTrackingLongTasks, startTrackingInteractions, addHistoryInstrumentationHandler, registerInpInteractionListener, addPerformanceEntries } from '@sentry-internal/browser-utils';
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, getClient, spanToJSON, getCurrentScope, getRootSpan, spanIsSampled, getDynamicSamplingContextFromSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getActiveSpan, getIsolationScope, startIdleSpan, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core';
import { logger, propagationContextFromHeaders, browserPerformanceTimeOrigin, generatePropagationContext, getDomElement } from '@sentry/utils';
import { GLOBAL_OBJ, logger, propagationContextFromHeaders, browserPerformanceTimeOrigin, generatePropagationContext, getDomElement } from '@sentry/utils';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -19,3 +19,3 @@ import { WINDOW } from '../helpers.js';

enableLongTask: true,
enableLongAnimationFrame: false,
enableLongAnimationFrame: true,
enableInp: true,

@@ -42,3 +42,3 @@ _experiments: {},

enableLongAnimationFrame,
_experiments: { enableInteractions },
_experiments: { enableInteractions, enableStandaloneClsSpans },
beforeStartSpan,

@@ -60,3 +60,3 @@ idleTimeout,

const _collectWebVitals = startTrackingWebVitals();
const _collectWebVitals = startTrackingWebVitals({ recordClsStandaloneSpans: enableStandaloneClsSpans || false });

@@ -67,3 +67,7 @@ if (enableInp) {

if (enableLongAnimationFrame && PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')) {
if (
enableLongAnimationFrame &&
GLOBAL_OBJ.PerformanceObserver &&
PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')
) {
startTrackingLongAnimationFrames();

@@ -111,3 +115,3 @@ } else if (enableLongTask) {

_collectWebVitals();
addPerformanceEntries(span);
addPerformanceEntries(span, { recordClsOnPageloadSpan: !enableStandaloneClsSpans });
},

@@ -149,2 +153,3 @@ });

}
activeSpan = _createRouteSpan(client, {

@@ -151,0 +156,0 @@ op: 'navigation',

export { debugIntegration } from '@sentry/core';
export { spotlightBrowserIntegration } from '../integrations/spotlight';
//# sourceMappingURL=index.debug.d.ts.map

@@ -90,2 +90,3 @@ import { Client, StartSpanOptions } from '@sentry/types';

enableInteractions: boolean;
enableStandaloneClsSpans: boolean;
}>;

@@ -92,0 +93,0 @@ /**

export { debugIntegration } from '@sentry/core';
export { spotlightBrowserIntegration } from '../integrations/spotlight';
//# sourceMappingURL=index.debug.d.ts.map

@@ -90,2 +90,3 @@ import type { Client, StartSpanOptions } from '@sentry/types';

enableInteractions: boolean;
enableStandaloneClsSpans: boolean;
}>;

@@ -92,0 +93,0 @@ /**

{
"name": "@sentry/browser",
"version": "8.25.0",
"version": "8.26.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.25.0",
"@sentry-internal/feedback": "8.25.0",
"@sentry-internal/replay": "8.25.0",
"@sentry-internal/replay-canvas": "8.25.0",
"@sentry/core": "8.25.0",
"@sentry/types": "8.25.0",
"@sentry/utils": "8.25.0"
"@sentry-internal/browser-utils": "8.26.0",
"@sentry-internal/feedback": "8.26.0",
"@sentry-internal/replay": "8.26.0",
"@sentry-internal/replay-canvas": "8.26.0",
"@sentry/core": "8.26.0",
"@sentry/types": "8.26.0",
"@sentry/utils": "8.26.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "8.25.0",
"@sentry-internal/integration-shims": "8.26.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

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