diff --git a/deps.test.ts b/deps.test.ts index ec12513..6922058 100644 --- a/deps.test.ts +++ b/deps.test.ts @@ -1,3 +1,3 @@ -export {assertEquals} from "https://deno.land/std@0.209.0/assert/mod.ts"; -export {dirname, fromFileUrl} from "https://deno.land/std@0.209.0/path/mod.ts"; -export {exists} from "https://deno.land/std@0.209.0/fs/mod.ts"; \ No newline at end of file +export {assertEquals} from "https://deno.land/std@0.210.0/assert/mod.ts"; +export {dirname, fromFileUrl} from "https://deno.land/std@0.210.0/path/mod.ts"; +export {exists} from "https://deno.land/std@0.210.0/fs/mod.ts"; \ No newline at end of file diff --git a/deps.ts b/deps.ts index 30e0684..debf70c 100644 --- a/deps.ts +++ b/deps.ts @@ -1,3 +1,3 @@ -export {dirname, fromFileUrl} from "https://deno.land/std@0.209.0/path/mod.ts"; -export {Logger, handlers} from "https://deno.land/std@0.209.0/log/mod.ts"; -export {format} from "https://deno.land/std@0.209.0/datetime/mod.ts"; \ No newline at end of file +export {dirname, fromFileUrl} from "https://deno.land/std@0.210.0/path/mod.ts"; +export {Logger, handlers} from "https://deno.land/std@0.210.0/log/mod.ts"; +export {format} from "https://deno.land/std@0.210.0/datetime/mod.ts"; \ No newline at end of file diff --git a/src/fetch.ts b/src/fetch.ts index 3c5d7a9..a302a37 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -57,8 +57,7 @@ export async function fetchExtend(path:string, typ h.set("Authorization", `Bearer ${option.secret.key}`); } else if(option?.secret?.id){ - u.username = option.secret.id; - u.password = option.secret.pw; + h.set("Authorization", `Basic ${btoa(`${option.secret.id}:${option.secret.pw}`)}`); } const response = await fetch(u.href, {