(url, signal)
| 8 | |
| 9 | // Server-side fetch, no-cors so providers don't reject Sec-Fetch-Mode: cors |
| 10 | const getJson = async (url, signal) => { |
| 11 | const r = await fetch(url, { mode: 'no-cors', signal }); |
| 12 | if (!r.ok) throw new Error(`status ${r.status}`); |
| 13 | return r.json(); |
| 14 | }; |
| 15 | |
| 16 | // Geo providers, each parser normalises to a shared field shape |
| 17 | const providers = [ |
no outgoing calls
no test coverage detected