mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
@@ -423,7 +423,7 @@ function handleSearchResult(item: INPMSearchResultObject) {
|
||||
return {
|
||||
name,
|
||||
fullName: item.package.name,
|
||||
author: item.package.author.name,
|
||||
author: item.package.author?.name || item.package.publisher?.username,
|
||||
description: item.package.description,
|
||||
logo: `https://cdn.jsdelivr.net/npm/${item.package.name}/logo.png`,
|
||||
config: {},
|
||||
|
||||
3
src/universal/types/types.d.ts
vendored
3
src/universal/types/types.d.ts
vendored
@@ -227,6 +227,9 @@ interface INPMSearchResultObject {
|
||||
author: {
|
||||
name: string
|
||||
}
|
||||
publisher: {
|
||||
username: string
|
||||
}
|
||||
links: {
|
||||
npm: string
|
||||
homepage: string
|
||||
|
||||
Reference in New Issue
Block a user