@sentry/browser
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -69,2 +69,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.isInitialized = core.isInitialized; | ||
exports.lastEventId = core.lastEventId; | ||
exports.makeMultiplexedTransport = core.makeMultiplexedTransport; | ||
@@ -71,0 +72,0 @@ exports.moduleMetadataIntegration = core.moduleMetadataIntegration; |
@@ -162,3 +162,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
function showReportDialog(options) { | ||
function showReportDialog(options = {}) { | ||
// doesn't work without a document (React Native) | ||
@@ -186,2 +186,9 @@ if (!helpers.WINDOW.document) { | ||
if (!options.eventId) { | ||
const eventId = core.lastEventId(); | ||
if (eventId) { | ||
options.eventId = eventId; | ||
} | ||
} | ||
const script = helpers.WINDOW.document.createElement('script'); | ||
@@ -188,0 +195,0 @@ script.async = true; |
@@ -1,2 +0,2 @@ | ||
export { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, addTracingExtensions, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, continueTrace, createTransport, debugIntegration, dedupeIntegration, endSession, extraErrorDataIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, makeMultiplexedTransport, moduleMetadataIntegration, parameterize, registerSpanErrorInstrumentation, rewriteFramesIntegration, sessionTimingIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanToBaggageHeader, spanToJSON, spanToTraceHeader, startInactiveSpan, startSession, startSpan, startSpanManual, withActiveSpan, withIsolationScope, withScope, zodErrorsIntegration } from '@sentry/core'; | ||
export { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, addTracingExtensions, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, continueTrace, createTransport, debugIntegration, dedupeIntegration, endSession, extraErrorDataIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, lastEventId, makeMultiplexedTransport, moduleMetadataIntegration, parameterize, registerSpanErrorInstrumentation, rewriteFramesIntegration, sessionTimingIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanToBaggageHeader, spanToJSON, spanToTraceHeader, startInactiveSpan, startSession, startSpan, startSpanManual, withActiveSpan, withIsolationScope, withScope, zodErrorsIntegration } from '@sentry/core'; | ||
export { metrics } from './metrics.js'; | ||
@@ -3,0 +3,0 @@ export { WINDOW } from './helpers.js'; |
@@ -1,2 +0,2 @@ | ||
import { inboundFiltersIntegration, functionToStringIntegration, dedupeIntegration, getIntegrationsToSetup, initAndBind, getCurrentScope, getReportDialogEndpoint, startSession, captureSession, getClient } from '@sentry/core'; | ||
import { inboundFiltersIntegration, functionToStringIntegration, dedupeIntegration, getIntegrationsToSetup, initAndBind, getCurrentScope, lastEventId, getReportDialogEndpoint, startSession, captureSession, getClient } from '@sentry/core'; | ||
import { consoleSandbox, supportsFetch, logger, stackParserFromStackParserOptions } from '@sentry/utils'; | ||
@@ -160,3 +160,3 @@ import { addHistoryInstrumentationHandler } from '@sentry-internal/browser-utils'; | ||
*/ | ||
function showReportDialog(options) { | ||
function showReportDialog(options = {}) { | ||
// doesn't work without a document (React Native) | ||
@@ -184,2 +184,9 @@ if (!WINDOW.document) { | ||
if (!options.eventId) { | ||
const eventId = lastEventId(); | ||
if (eventId) { | ||
options.eventId = eventId; | ||
} | ||
} | ||
const script = WINDOW.document.createElement('script'); | ||
@@ -186,0 +193,0 @@ script.async = true; |
{ | ||
"name": "@sentry/browser", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "Official Sentry SDK for browsers", | ||
@@ -45,12 +45,12 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry-internal/browser-utils": "8.0.0", | ||
"@sentry-internal/feedback": "8.0.0", | ||
"@sentry-internal/replay": "8.0.0", | ||
"@sentry-internal/replay-canvas": "8.0.0", | ||
"@sentry/core": "8.0.0", | ||
"@sentry/types": "8.0.0", | ||
"@sentry/utils": "8.0.0" | ||
"@sentry-internal/browser-utils": "8.1.0", | ||
"@sentry-internal/feedback": "8.1.0", | ||
"@sentry-internal/replay": "8.1.0", | ||
"@sentry-internal/replay-canvas": "8.1.0", | ||
"@sentry/core": "8.1.0", | ||
"@sentry/types": "8.1.0", | ||
"@sentry/utils": "8.1.0" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/integration-shims": "8.0.0", | ||
"@sentry-internal/integration-shims": "8.1.0", | ||
"@types/md5": "2.1.33", | ||
@@ -57,0 +57,0 @@ "btoa": "^1.2.1", |
export { Breadcrumb, BreadcrumbHint, Request, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/types'; | ||
export { BrowserOptions } from './client'; | ||
export { ReportDialogOptions } from './sdk'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getCurrentHub, getClient, isInitialized, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, } from '@sentry/core'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, lastEventId, flush, getCurrentHub, getClient, isInitialized, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, } from '@sentry/core'; | ||
export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
@@ -6,0 +6,0 @@ export * from './metrics'; |
@@ -57,3 +57,3 @@ import { DsnLike, Integration, Options, UserFeedback } from '@sentry/types'; | ||
[key: string]: any; | ||
eventId: string; | ||
eventId?: string; | ||
dsn?: DsnLike; | ||
@@ -86,3 +86,3 @@ user?: { | ||
*/ | ||
export declare function showReportDialog(options: ReportDialogOptions): void; | ||
export declare function showReportDialog(options?: ReportDialogOptions): void; | ||
/** | ||
@@ -89,0 +89,0 @@ * This function is here to be API compatible with the loader. |
export type { Breadcrumb, BreadcrumbHint, Request, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/types'; | ||
export type { BrowserOptions } from './client'; | ||
export type { ReportDialogOptions } from './sdk'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getCurrentHub, getClient, isInitialized, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, } from '@sentry/core'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, lastEventId, flush, getCurrentHub, getClient, isInitialized, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, } from '@sentry/core'; | ||
export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
@@ -6,0 +6,0 @@ export * from './metrics'; |
@@ -57,3 +57,3 @@ import type { DsnLike, Integration, Options, UserFeedback } from '@sentry/types'; | ||
[key: string]: any; | ||
eventId: string; | ||
eventId?: string; | ||
dsn?: DsnLike; | ||
@@ -86,3 +86,3 @@ user?: { | ||
*/ | ||
export declare function showReportDialog(options: ReportDialogOptions): void; | ||
export declare function showReportDialog(options?: ReportDialogOptions): void; | ||
/** | ||
@@ -89,0 +89,0 @@ * This function is here to be API compatible with the loader. |
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
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
960510
9869
+ Added@sentry-internal/browser-utils@8.1.0(transitive)
+ Added@sentry-internal/feedback@8.1.0(transitive)
+ Added@sentry-internal/replay@8.1.0(transitive)
+ Added@sentry-internal/replay-canvas@8.1.0(transitive)
+ Added@sentry/core@8.1.0(transitive)
+ Added@sentry/types@8.1.0(transitive)
+ Added@sentry/utils@8.1.0(transitive)
- Removed@sentry-internal/browser-utils@8.0.0(transitive)
- Removed@sentry-internal/feedback@8.0.0(transitive)
- Removed@sentry-internal/replay@8.0.0(transitive)
- Removed@sentry-internal/replay-canvas@8.0.0(transitive)
- Removed@sentry/core@8.0.0(transitive)
- Removed@sentry/types@8.0.0(transitive)
- Removed@sentry/utils@8.0.0(transitive)
Updated@sentry/core@8.1.0
Updated@sentry/types@8.1.0
Updated@sentry/utils@8.1.0