UNPKG

rsshub

Version:
11 lines (10 loc) 446 B
import { t as cache_default } from "./cache-BkqOokyU.mjs"; import { t as got_default } from "./got-BTowW50G.mjs"; import { load } from "cheerio"; //#region lib/routes/gov/pbc/utils.ts const processItems = (list) => Promise.all(list.map((item) => cache_default.tryGet(item.link, async () => { item.description = load((await got_default.post(item.link)).data)("div.xxy_text").html(); return item; }))); //#endregion export { processItems as t };