Skip to content

Commit

Permalink
Update loader_portable.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandeia authored Jun 11, 2024
1 parent 6c824f8 commit 9058a48
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/loader_portable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ interface Module {
data: Uint8Array;
}

const JSR_REGISTRY_URL = Deno.env.get("DENO_REGISTRY_URL") ?? Deno.env.get("JSR_URL") ?? "https://jsr.io";
const DENO_REGISTRY_URL = Deno.env.get("DENO_REGISTRY_URL");

if (typeof DENO_REGISTRY_URL !== "undefined") {
console.warn(`DENO_REGISTRY_URL is deprecated use JSR_URL instead`);
}

const JSR_REGISTRY_URL = DENO_REGISTRY_URL ?? Deno.env.get("JSR_URL") ?? "https://jsr.io";

async function readLockfile(path: string): Promise<deno.Lockfile | null> {
try {
Expand Down

0 comments on commit 9058a48

Please sign in to comment.