@sentry/browser
Advanced tools
Comparing version 7.91.0 to 7.92.0
@@ -153,2 +153,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
* All properties the report dialog supports | ||
* | ||
* @deprecated This type will be removed in the next major version of the Sentry SDK. `showReportDialog` will still be around, however the `eventId` option will now be required. | ||
*/ | ||
@@ -155,0 +157,0 @@ |
@@ -126,8 +126,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
function showReportDialog(options = {}, hub = core.getCurrentHub()) { | ||
const showReportDialog = ( | ||
// eslint-disable-next-line deprecation/deprecation | ||
options = {}, | ||
hub = core.getCurrentHub(), | ||
) => { | ||
// doesn't work without a document (React Native) | ||
@@ -153,3 +152,6 @@ if (!helpers.WINDOW.document) { | ||
// TODO(v8): Remove this entire if statement. `eventId` will be a required option. | ||
// eslint-disable-next-line deprecation/deprecation | ||
if (!options.eventId) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
options.eventId = hub.lastEventId(); | ||
@@ -187,3 +189,3 @@ } | ||
} | ||
} | ||
}; | ||
@@ -190,0 +192,0 @@ /** |
@@ -151,2 +151,4 @@ import { withScope, captureException } from '@sentry/core'; | ||
* All properties the report dialog supports | ||
* | ||
* @deprecated This type will be removed in the next major version of the Sentry SDK. `showReportDialog` will still be around, however the `eventId` option will now be required. | ||
*/ | ||
@@ -153,0 +155,0 @@ |
@@ -124,8 +124,7 @@ import { Integrations, getIntegrationsToSetup, initAndBind, getReportDialogEndpoint, getCurrentHub, getClient } from '@sentry/core'; | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
function showReportDialog(options = {}, hub = getCurrentHub()) { | ||
const showReportDialog = ( | ||
// eslint-disable-next-line deprecation/deprecation | ||
options = {}, | ||
hub = getCurrentHub(), | ||
) => { | ||
// doesn't work without a document (React Native) | ||
@@ -151,3 +150,6 @@ if (!WINDOW.document) { | ||
// TODO(v8): Remove this entire if statement. `eventId` will be a required option. | ||
// eslint-disable-next-line deprecation/deprecation | ||
if (!options.eventId) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
options.eventId = hub.lastEventId(); | ||
@@ -185,3 +187,3 @@ } | ||
} | ||
} | ||
}; | ||
@@ -188,0 +190,0 @@ /** |
{ | ||
"name": "@sentry/browser", | ||
"version": "7.91.0", | ||
"version": "7.92.0", | ||
"description": "Official Sentry SDK for browsers", | ||
@@ -12,2 +12,8 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
}, | ||
"files": [ | ||
"cjs", | ||
"esm", | ||
"types", | ||
"types-ts3.8" | ||
], | ||
"main": "cjs/index.js", | ||
@@ -27,11 +33,11 @@ "module": "esm/index.js", | ||
"dependencies": { | ||
"@sentry-internal/feedback": "7.91.0", | ||
"@sentry-internal/tracing": "7.91.0", | ||
"@sentry/core": "7.91.0", | ||
"@sentry/replay": "7.91.0", | ||
"@sentry/types": "7.91.0", | ||
"@sentry/utils": "7.91.0" | ||
"@sentry-internal/feedback": "7.92.0", | ||
"@sentry-internal/tracing": "7.92.0", | ||
"@sentry/core": "7.92.0", | ||
"@sentry/replay": "7.92.0", | ||
"@sentry/types": "7.92.0", | ||
"@sentry/utils": "7.92.0" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/integration-shims": "7.91.0", | ||
"@sentry-internal/integration-shims": "7.92.0", | ||
"@types/md5": "2.1.33", | ||
@@ -38,0 +44,0 @@ "btoa": "^1.2.1", |
@@ -25,2 +25,4 @@ import { DsnLike, Mechanism, WrappedFunction } from '@sentry/types'; | ||
* All properties the report dialog supports | ||
* | ||
* @deprecated This type will be removed in the next major version of the Sentry SDK. `showReportDialog` will still be around, however the `eventId` option will now be required. | ||
*/ | ||
@@ -27,0 +29,0 @@ export interface ReportDialogOptions { |
export * from './exports'; | ||
declare const INTEGRATIONS: { | ||
GlobalHandlers: { | ||
GlobalHandlers: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -9,3 +9,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
TryCatch: { | ||
TryCatch: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -16,3 +16,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
Breadcrumbs: { | ||
Breadcrumbs: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -23,3 +23,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
LinkedErrors: { | ||
LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -30,3 +30,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
HttpContext: { | ||
HttpContext: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -37,3 +37,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
Dedupe: { | ||
Dedupe: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -44,3 +44,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
FunctionToString: { | ||
FunctionToString: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -51,3 +51,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
InboundFilters: { | ||
InboundFilters: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -54,0 +54,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** | ||
* Default Breadcrumbs instrumentations | ||
*/ | ||
export declare const Breadcrumbs: { | ||
export declare const Breadcrumbs: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -6,0 +6,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Deduplication filter */ | ||
export declare const Dedupe: { | ||
export declare const Dedupe: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Global handlers */ | ||
export declare const GlobalHandlers: { | ||
export declare const GlobalHandlers: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** HttpContext integration collects information about HTTP request headers */ | ||
export declare const HttpContext: { | ||
export declare const HttpContext: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Aggregrate linked errors in an event. */ | ||
export declare const LinkedErrors: { | ||
export declare const LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Wrap timer functions and event targets to catch errors and provide better meta data */ | ||
export declare const TryCatch: { | ||
export declare const TryCatch: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare const BrowserProfilingIntegration: { | ||
export declare const BrowserProfilingIntegration: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -13,0 +13,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
@@ -66,9 +66,23 @@ import { Hub } from '@sentry/core'; | ||
export declare function init(options?: BrowserOptions): void; | ||
type NewReportDialogOptions = ReportDialogOptions & { | ||
eventId: string; | ||
}; | ||
interface ShowReportDialogFunction { | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
(options: NewReportDialogOptions): void; | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
* | ||
* @deprecated Please always pass an `options` argument with `eventId`. The `hub` argument will not be used in the next version of the SDK. | ||
*/ | ||
(options?: ReportDialogOptions, hub?: Hub): void; | ||
} | ||
export declare const showReportDialog: ShowReportDialogFunction; | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
export declare function showReportDialog(options?: ReportDialogOptions, hub?: Hub): void; | ||
/** | ||
* This function is here to be API compatible with the loader. | ||
@@ -99,2 +113,3 @@ * @hidden | ||
export declare function captureUserFeedback(feedback: UserFeedback): void; | ||
export {}; | ||
//# sourceMappingURL=sdk.d.ts.map |
@@ -25,2 +25,4 @@ import type { DsnLike, Mechanism, WrappedFunction } from '@sentry/types'; | ||
* All properties the report dialog supports | ||
* | ||
* @deprecated This type will be removed in the next major version of the Sentry SDK. `showReportDialog` will still be around, however the `eventId` option will now be required. | ||
*/ | ||
@@ -27,0 +29,0 @@ export interface ReportDialogOptions { |
export * from './exports'; | ||
declare const INTEGRATIONS: { | ||
GlobalHandlers: { | ||
GlobalHandlers: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -9,3 +9,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
TryCatch: { | ||
TryCatch: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -16,3 +16,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
Breadcrumbs: { | ||
Breadcrumbs: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -23,3 +23,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
LinkedErrors: { | ||
LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -30,3 +30,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
HttpContext: { | ||
HttpContext: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -37,3 +37,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
Dedupe: { | ||
Dedupe: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -44,3 +44,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
FunctionToString: { | ||
FunctionToString: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -51,3 +51,3 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
InboundFilters: { | ||
InboundFilters: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -54,0 +54,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** | ||
* Default Breadcrumbs instrumentations | ||
*/ | ||
export declare const Breadcrumbs: { | ||
export declare const Breadcrumbs: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -6,0 +6,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Deduplication filter */ | ||
export declare const Dedupe: { | ||
export declare const Dedupe: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Global handlers */ | ||
export declare const GlobalHandlers: { | ||
export declare const GlobalHandlers: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** HttpContext integration collects information about HTTP request headers */ | ||
export declare const HttpContext: { | ||
export declare const HttpContext: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Aggregrate linked errors in an event. */ | ||
export declare const LinkedErrors: { | ||
export declare const LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
/** Wrap timer functions and event targets to catch errors and provide better meta data */ | ||
export declare const TryCatch: { | ||
export declare const TryCatch: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -4,0 +4,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare const BrowserProfilingIntegration: { | ||
export declare const BrowserProfilingIntegration: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
@@ -13,0 +13,0 @@ setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; |
@@ -66,9 +66,23 @@ import type { Hub } from '@sentry/core'; | ||
export declare function init(options?: BrowserOptions): void; | ||
type NewReportDialogOptions = ReportDialogOptions & { | ||
eventId: string; | ||
}; | ||
interface ShowReportDialogFunction { | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
(options: NewReportDialogOptions): void; | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
* | ||
* @deprecated Please always pass an `options` argument with `eventId`. The `hub` argument will not be used in the next version of the SDK. | ||
*/ | ||
(options?: ReportDialogOptions, hub?: Hub): void; | ||
} | ||
export declare const showReportDialog: ShowReportDialogFunction; | ||
/** | ||
* Present the user with a report dialog. | ||
* | ||
* @param options Everything is optional, we try to fetch all info need from the global scope. | ||
*/ | ||
export declare function showReportDialog(options?: ReportDialogOptions, hub?: Hub): void; | ||
/** | ||
* This function is here to be API compatible with the loader. | ||
@@ -99,2 +113,3 @@ * @hidden | ||
export declare function captureUserFeedback(feedback: UserFeedback): void; | ||
export {}; | ||
//# sourceMappingURL=sdk.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
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
701293
7376
+ Added@sentry-internal/feedback@7.92.0(transitive)
+ Added@sentry-internal/tracing@7.92.0(transitive)
+ Added@sentry/core@7.92.0(transitive)
+ Added@sentry/replay@7.92.0(transitive)
+ Added@sentry/types@7.92.0(transitive)
+ Added@sentry/utils@7.92.0(transitive)
- Removed@sentry-internal/feedback@7.91.0(transitive)
- Removed@sentry-internal/tracing@7.91.0(transitive)
- Removed@sentry/core@7.91.0(transitive)
- Removed@sentry/replay@7.91.0(transitive)
- Removed@sentry/types@7.91.0(transitive)
- Removed@sentry/utils@7.91.0(transitive)
Updated@sentry/core@7.92.0
Updated@sentry/replay@7.92.0
Updated@sentry/types@7.92.0
Updated@sentry/utils@7.92.0