(response: Response)
| 84 | }; |
| 85 | |
| 86 | const parseJson = async (response: Response) => { |
| 87 | const text = await response.text(); |
| 88 | if (text.length === 0) return null; |
| 89 | try { |
| 90 | return JSON.parse(text) as unknown; |
| 91 | } catch { |
| 92 | return text; |
| 93 | } |
| 94 | }; |
| 95 | |
| 96 | export const createSessionRequestUrl = ( |
| 97 | baseUrl: string, |
no outgoing calls
no test coverage detected