export function createLoggedFetch(log) { return async (url, init) => { const method = (init?.method || 'GET').toUpperCase(); try { const response = await globalThis.fetch(url, init); log.http(`${method} ${url} ${response.status}`); return response; } catch (err) { log.http(`${method} ${url} FAILED`); throw err; } }; } //# sourceMappingURL=loggedFetch.js.map