spb/earth-now Public License
earth-now.co — real-time planetary dashboard: live world metrics modeled, not streamed.
TypeScript 93%
Shell 2.3%
SQL 1.4%
JavaScript 1.3%
Dockerfile 1.2%
CSS 0.8%
1/**2 * earth-now.co3 * Author: Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 * File: apps/ingest/src/fetch-like.ts6 * Purpose: Minimal structural fetch interface so tests inject fixture-backed fakes and never hit the network7 */89export interface FetchResponseLike {10 ok: boolean;11 status: number;12 text(): Promise<string>;13}1415export type FetchLike = (url: string) => Promise<FetchResponseLike>;1617/** Default implementation: the global fetch (Node 20+). Response satisfies FetchResponseLike structurally. */18export const defaultFetch: FetchLike = (url) => fetch(url);19