diff --git a/src/platform.deno.ts b/src/platform.deno.ts index 0d2feb6b..dcbbea17 100644 --- a/src/platform.deno.ts +++ b/src/platform.deno.ts @@ -2,17 +2,16 @@ export const isDeno = typeof Deno !== "undefined"; // === Export debug -import d from "https://cdn.skypack.dev/debug@4.3.4"; -export { d as debug }; +import debug from "https://cdn.skypack.dev/debug@4.3.4"; const DEBUG = "DEBUG"; if (isDeno) { - d.useColors = () => !Deno.noColor; + 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) d.enable(namespace); - else d.disable(); + if (namespace) debug.enable(namespace); + else debug.disable(); } // === Export system-specific operations