Skip to content

Commit

Permalink
fix: #2
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnieXu committed Sep 16, 2023
1 parent 8eacbbd commit 9199c08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
const cheerio = require('cheerio')
const fetch = require('node-fetch')
const _fetch = require('node-fetch')
const https = require('https')
const cliProgress = require('cli-progress')
const { writeFile, writeFileToHome, getHomeFileJson, isCacheOutDate } = require('./file')

const fetch = (...args) => _fetch(...args, {
agent: https.Agent({
keepAlive: true,
rejectUnauthorized: false,
})
})
const homeUrl = 'https://weekly.75.team'

const bar1 = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic)
Expand Down

0 comments on commit 9199c08

Please sign in to comment.