Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
import { Breadcrumb, XhrBreadcrumbData } from '@sentry/core';
|
|
import { NetworkMetaWarning, XhrHint } from '@sentry-internal/browser-utils';
|
|
import { ReplayContainer, ReplayNetworkOptions } from '../../types';
|
|
/**
|
|
* Capture an XHR breadcrumb to a replay.
|
|
* This adds additional data (where appropriate).
|
|
*/
|
|
export declare function captureXhrBreadcrumbToReplay(breadcrumb: Breadcrumb & {
|
|
data: XhrBreadcrumbData;
|
|
}, hint: Partial<XhrHint>, options: ReplayNetworkOptions & {
|
|
replay: ReplayContainer;
|
|
}): Promise<void>;
|
|
/**
|
|
* Enrich a breadcrumb with additional data.
|
|
* This has to be sync & mutate the given breadcrumb,
|
|
* as the breadcrumb is afterwards consumed by other handlers.
|
|
*/
|
|
export declare function enrichXhrBreadcrumb(breadcrumb: Breadcrumb & {
|
|
data: XhrBreadcrumbData;
|
|
}, hint: Partial<XhrHint>): void;
|
|
/**
|
|
* Get the string representation of the XHR response.
|
|
* Based on MDN, these are the possible types of the response:
|
|
* string
|
|
* ArrayBuffer
|
|
* Blob
|
|
* Document
|
|
* POJO
|
|
*
|
|
* Exported only for tests.
|
|
*/
|
|
export declare function _parseXhrResponse(body: XMLHttpRequest['response'], responseType: XMLHttpRequest['responseType']): [
|
|
string | undefined,
|
|
NetworkMetaWarning?
|
|
];
|
|
//# sourceMappingURL=xhrUtils.d.ts.map
|