export const isDeno = typeof Deno !== "undefined";
import debug from "https://cdn.skypack.dev/debug@4.3.4";export { debug };const DEBUG = "DEBUG";if (isDeno) { debug.useColors = () => !Deno.noColor; const env = { name: "env", variable: DEBUG } as const; const res = await Deno.permissions.query(env); let namespace: string | undefined = undefined; if (res.state === "granted") namespace = Deno.env.get(DEBUG); if (namespace) debug.enable(namespace); else debug.disable();}
export const itrToStream = (itr: AsyncIterable<Uint8Array>) => ReadableStream.from(itr);
export const baseFetchConfig = (_apiRoot: string) => ({});
export const defaultAdapter = "oak";