Skip to content

Commit

Permalink
fix: ensure maintainers field in search result item
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed May 28, 2023
1 parent bb85fa8 commit 9233725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function mapManifestToSearchPackageBody(
// FIXME: not possible fill this out from a private package
publisher: {},
// FIXME: type
maintainers: version.maintainers as any,
maintainers: version.maintainers as any || [version.author].filter(Boolean),
links: {
npm: '',
homepage: version.homepage,
Expand Down

0 comments on commit 9233725

Please sign in to comment.