( input: Parameters<typeof fetch>[0], init: Parameters<typeof fetch>[1], )
| 607 | } |
| 608 | |
| 609 | function requestForFetchReport( |
| 610 | input: Parameters<typeof fetch>[0], |
| 611 | init: Parameters<typeof fetch>[1], |
| 612 | ): { body?: unknown } { |
| 613 | if (init?.body !== undefined && init.body !== null) { |
| 614 | return { body: parseBodyForReport(init.body) }; |
| 615 | } |
| 616 | if (input instanceof Request) return {}; |
| 617 | return {}; |
| 618 | } |
| 619 | |
| 620 | function parseBodyForReport(body: NonNullable<RequestInit['body']>): unknown { |
| 621 | if (typeof body === 'string') { |
no test coverage detected