import{t as e}from"./got-BBDj7u1e.mjs";import{t}from"./utils-BnJtwIk-.mjs";const n={path:`/build/:owner/:image/:tag?`,categories:[`program-update`],view:5,example:`/dockerhub/build/diygod/rsshub/latest`,parameters:{owner:`Image owner, the owner of the official image fills in the library, for example: /dockerhub/build/library/mysql`,image:`Image name`,tag:{description:`Image tag`,default:`latest`}},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Image New Build`,maintainers:[`HenryQW`],handler:r};async function r(n){let{owner:r,image:i,tag:a=`latest`}=n.req.param(),o=`${r}/${i}`,s=`https://hub.docker.com/r/${o}`,c=await e.get(`https://hub.docker.com/v2/repositories/${o}/tags/${a}`),l=await e.get(`https://hub.docker.com/v2/repositories/${o}/`),u=c.data;return{title:`${o}:${a} build history`,description:l.data.description,link:s,item:[{title:`${o}:${a} was built. ${(u.images[0].size/1e6).toFixed(2)} MB`,link:`https://hub.docker.com/layers/docker/${o}/${a}/images/${u.images[0].digest.replace(`:`,`-`)}`,author:r,pubDate:new Date(u.last_updated).toUTCString(),guid:t(u.images)}]}}export{n as route};