From 0cd0114f2265174f87a0c20035b4e0a30a2da90e Mon Sep 17 00:00:00 2001 From: Huxulm Date: Thu, 12 Sep 2024 13:53:27 +0800 Subject: [PATCH] update layout --- scrap/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrap/index.js b/scrap/index.js index a797347..4e7e49c 100644 --- a/scrap/index.js +++ b/scrap/index.js @@ -4,7 +4,7 @@ const pkg4viz = require("../components/pkgs/viz.json"); const pkg4build = require("../components/pkgs/build.json"); const pkg4d3 = require("../components/pkgs/d3.json"); const fs = require("fs"); -const { ProxyAgent } = require("undici"); +// const { ProxyAgent } = require("undici"); // nodejs delete directory // https://stackoverflow.com/questions/18052762/remove-directory-which-is-not-empty const rimraf = require("rimraf"); @@ -46,9 +46,9 @@ function scrapPkg(pkg) { const [from, to] = getTimeRange(d); fetch( `https://npm-trends-proxy.uidotdev.workers.dev/npm/downloads/range/${from}:${to}/${p}`, - { - dispatcher: new ProxyAgent("http://127.0.0.1:8889"), - } + // { + // dispatcher: new ProxyAgent("http://127.0.0.1:8889"), + // } ).then((res) => { res.json().then((data) => { const downloads =