UNPKG

@fetch-impl/cross-fetch

Version:

User Configurable Fetch Implementation. cross-fetch adapter.

13 lines (12 loc) 291 B
// src/index.ts import fetch, { fetcher } from "@fetch-impl/fetcher"; import cfetch from "cross-fetch"; export * from "@fetch-impl/fetcher"; function useCrossFetch(instance = fetcher) { instance.set(cfetch); } var src_default = fetch; export { src_default as default, useCrossFetch };