rsshub
Version:
Make RSS Great Again!
14 lines (12 loc) • 606 B
JavaScript
import { t as config } from "./config-C37vj7VH.mjs";
import { t as ofetch_default } from "./ofetch-BIyrKU3Y.mjs";
import { t as cache_default } from "./cache-Bo__VnGm.mjs";
import { load } from "cheerio";
//#region lib/routes/makerworld/utils.ts
const baseUrl = "https://makerworld.com";
const getNextBuildId = () => cache_default.tryGet("makerworld:nextBuildId", async () => {
const $ = load(await ofetch_default(`${baseUrl}/en`, { headers: { "User-Agent": config.trueUA } }));
return JSON.parse($("script#__NEXT_DATA__").text()).buildId;
});
//#endregion
export { getNextBuildId as n, baseUrl as t };