From e5d293aec62c322dcff16173751a12e88615d603 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Wed, 21 Sep 2022 14:45:39 +0100 Subject: [PATCH] Use `dl.depot.dev` to fetch CLI release information --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d4afe72..d6776a6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5472,7 +5472,7 @@ async function run() { } } async function resolveVersion(version) { - const res = await client.get(`https://depot.dev/api/cli/release/${process.platform}/${process.arch}/${version}`); + const res = await client.get(`https://dl.depot.dev/cli/release/${process.platform}/${process.arch}/${version}`); const body = await res.readBody(); const response = JSON.parse(body); if (!response.ok) diff --git a/src/index.ts b/src/index.ts index 3f228cb..b429d1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,7 @@ async function run() { } async function resolveVersion(version: string) { - const res = await client.get(`https://depot.dev/api/cli/release/${process.platform}/${process.arch}/${version}`) + const res = await client.get(`https://dl.depot.dev/cli/release/${process.platform}/${process.arch}/${version}`) const body = await res.readBody() const response: ApiResponse = JSON.parse(body)