From 668f53be768bd706af50b736726304fd612e5849 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 8 Mar 2024 17:40:58 +0800 Subject: [PATCH] Sunsetting UNPKG --- Build/build-speedtest-domainset.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/build-speedtest-domainset.ts b/Build/build-speedtest-domainset.ts index d29b4eec..07aaef4b 100644 --- a/Build/build-speedtest-domainset.ts +++ b/Build/build-speedtest-domainset.ts @@ -20,8 +20,8 @@ import * as SetHelpers from 'mnemonist/set'; const s = new Sema(2); const latestTopUserAgentsPromise = fsFetchCache.apply( - 'https://unpkg.com/top-user-agents@latest/src/desktop.json', - () => fetchWithRetry('https://unpkg.com/top-user-agents@latest/src/desktop.json') + 'https://cdn.jsdelivr.net/npm/top-user-agents@latest/src/desktop.json', + () => fetchWithRetry('https://cdn.jsdelivr.net/npm/top-user-agents@latest/src/desktop.json') .then(res => res.json()) .then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 '))), {