import { crossFetch } from '../deps.ts'; /** * A simple method for requesting data via standard `fetch`. Should work * across multiple runtimes. */ export function fetch(url: string): Promise { return _fetchInternals.stubThis(url); } // Make it possible to stub the return value during testing export const _fetchInternals = { stubThis: (url: string) => crossFetch(url), };