(url, options)
| 1 | const fetchJSON = async (url, options) => { |
| 2 | const response = await fetch(url, options); |
| 3 | if (!response.ok) throw new Error(await response.text()); |
| 4 | return response.json(); |
| 5 | }; |
| 6 | |
| 7 | const userAgent = 'Flagsmith-Docs <support@flagsmith.com>'; |
| 8 |
no test coverage detected