Chore: read request stream line by line

This commit is contained in:
SukkaW
2023-06-14 23:15:21 +08:00
parent 8a77541ce7
commit bf4c92cc5d
6 changed files with 57 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
// @ts-check
const { fetch } = require('undici');
const fetchWithRetry = require('@vercel/fetch-retry')(fetch);
const fetchWithRetry = /** @type {fetch} */(require('@vercel/fetch-retry')(fetch));
module.exports.fetchWithRetry = fetchWithRetry;