UNPKG

rsshub

Version:
12 lines (11 loc) 484 B
import { t as cache_default } from "./cache-C1Y-9qDV.mjs"; import { t as got_default } from "./got-DUpa1V3-.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 () => { const detailResponse = await got_default.post(item.link); item.description = load(detailResponse.data)("div.xxy_text").html(); return item; }))); //#endregion export { processItems as t };