Skip to content

Commit

Permalink
update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
huxulm committed Sep 12, 2024
1 parent 10f2abf commit 0cd0114
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 0cd0114

Please sign in to comment.