We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387ce48 commit 392110cCopy full SHA for 392110c
packages/replay/src/coreHandlers/util/networkUtils.ts
@@ -110,21 +110,6 @@ export function makeNetworkReplayBreadcrumb(
110
return result;
111
}
112
113
-/** Get either a JSON network body, or a text representation. */
114
-export function getNetworkBody(bodyText: string | undefined): NetworkBody | undefined {
115
- if (!bodyText) {
116
- return;
117
- }
118
-
119
- try {
120
- return JSON.parse(bodyText);
121
- } catch {
122
- // return text
123
124
125
- return bodyText;
126
-}
127
128
/** Build the request or response part of a replay network breadcrumb that was skipped. */
129
export function buildSkippedNetworkRequestOrResponse(bodySize: number | undefined): ReplayNetworkRequestOrResponse {
130
return {
0 commit comments