@sentry/types
Advanced tools
Comparing version 7.81.0 to 7.81.1
{ | ||
"name": "@sentry/types", | ||
"version": "7.81.0", | ||
"version": "7.81.1", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -9,2 +9,3 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import { EventProcessor } from './eventprocessor'; | ||
import { FeedbackEvent } from './feedback'; | ||
import { Integration, IntegrationClass } from './integration'; | ||
@@ -194,2 +195,10 @@ import { ClientOptions } from './options'; | ||
/** | ||
* Register a callback when a Feedback event has been prepared. | ||
* This should be used to mutate the event. The options argument can hint | ||
* about what kind of mutation it expects. | ||
*/ | ||
on?(hook: 'beforeSendFeedback', callback: (feedback: FeedbackEvent, options?: { | ||
includeReplay?: boolean; | ||
}) => void): void; | ||
/** | ||
* Fire a hook event for transaction start. | ||
@@ -233,3 +242,11 @@ * Expects to be given a transaction as the second argument. | ||
}): void; | ||
/** | ||
* Fire a hook event for after preparing a feedback event. Events to be given | ||
* a feedback event as the second argument, and an optional options object as | ||
* third argument. | ||
*/ | ||
emit?(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { | ||
includeReplay?: boolean; | ||
}): void; | ||
} | ||
//# sourceMappingURL=client.d.ts.map |
@@ -9,2 +9,3 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import type { EventProcessor } from './eventprocessor'; | ||
import type { FeedbackEvent } from './feedback'; | ||
import type { Integration, IntegrationClass } from './integration'; | ||
@@ -194,2 +195,10 @@ import type { ClientOptions } from './options'; | ||
/** | ||
* Register a callback when a Feedback event has been prepared. | ||
* This should be used to mutate the event. The options argument can hint | ||
* about what kind of mutation it expects. | ||
*/ | ||
on?(hook: 'beforeSendFeedback', callback: (feedback: FeedbackEvent, options?: { | ||
includeReplay?: boolean; | ||
}) => void): void; | ||
/** | ||
* Fire a hook event for transaction start. | ||
@@ -233,3 +242,11 @@ * Expects to be given a transaction as the second argument. | ||
}): void; | ||
/** | ||
* Fire a hook event for after preparing a feedback event. Events to be given | ||
* a feedback event as the second argument, and an optional options object as | ||
* third argument. | ||
*/ | ||
emit?(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { | ||
includeReplay?: boolean; | ||
}): void; | ||
} | ||
//# sourceMappingURL=client.d.ts.map |
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
245884
5089
12
19