Skip to content

Commit

Permalink
diable proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
huxulm committed Sep 3, 2024
1 parent e6ae026 commit 8af15c6
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 @@ -3,7 +3,7 @@ const pkg4js = require("../app/js/pkg.json");
const pkg4viz = require("../app/viz/pkg.json");
const pkg4build = require("../app/build/pkg.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 @@ -45,9 +45,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 8af15c6

Please sign in to comment.