diff --git a/api/Fuck b/api/Fuck deleted file mode 100644 index 8b13789..0000000 --- a/api/Fuck +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/functions/genMap.ts b/src/functions/genMap.ts index ccd1aae..235b9e6 100644 --- a/src/functions/genMap.ts +++ b/src/functions/genMap.ts @@ -10,7 +10,7 @@ export async function genMap(eggs: string[], branch: string, repository: string) for (const egg of eggs) { const file = readFileSync(egg, 'utf8') const { size } = statSync(egg) - const { name, description, author } = JSON.parse(file) as EggConfig + const { name, description, author, exported_at } = JSON.parse(file) as EggConfig const link = `https://raw.githubusercontent.com/${repository}/${branch}/${egg.replace(`${egg.split('/')[0]}/`, '')}` const language = await cld.detect(description) .then(({ languages }) => { @@ -27,9 +27,10 @@ export async function genMap(eggs: string[], branch: string, repository: string) }) EggsMapping.push({ + author, name, description, - author, + exported_at, link, size: formatBytes(size), language diff --git a/src/types/EggMapping.ts b/src/types/EggMapping.ts index 0192ba1..dc27fc7 100644 --- a/src/types/EggMapping.ts +++ b/src/types/EggMapping.ts @@ -1,7 +1,8 @@ export interface EggMap { + author: string, name: string, description: string, - author: string, + exported_at: Date | string link: string, size: string, language: string