diff --git a/registry/src/db.ts b/registry/src/db.ts index 34a0b7b..6607d9a 100644 --- a/registry/src/db.ts +++ b/registry/src/db.ts @@ -4,7 +4,7 @@ await FS.ensureDir("./data"); export interface IPackage { name: string; - author: string; + owner: string; description: string; versions: string[]; deprecated: boolean; diff --git a/registry/src/http/api.ts b/registry/src/http/api.ts index ed6bfa1..d3a7f7d 100644 --- a/registry/src/http/api.ts +++ b/registry/src/http/api.ts @@ -110,7 +110,7 @@ async function uploadPackage(ctx: ABC.Context) { if (!packageMeta) { packageMeta = { name: packageName, - author: ctx.customContext.user, + owner: ctx.customContext.user, description: meta.description, deprecated: false, versions: [], @@ -157,7 +157,6 @@ async function uploadPackage(ctx: ABC.Context) { { $set: { versions: [...packageMeta.versions, packageVersion], - author: ctx.customContext.user, description: meta.description || packageMeta.description, deprecated: meta.deprecated === true, }, diff --git a/registry/src/views/_base.tsx b/registry/src/views/_base.tsx index 878fac3..751b185 100644 --- a/registry/src/views/_base.tsx +++ b/registry/src/views/_base.tsx @@ -20,7 +20,10 @@ export default function Base(p: any, children: any[]) { />