mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-07 00:17:03 +08:00
@@ -423,7 +423,7 @@ function handleSearchResult(item: INPMSearchResultObject) {
|
|||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
fullName: item.package.name,
|
fullName: item.package.name,
|
||||||
author: item.package.author.name,
|
author: item.package.author?.name || item.package.publisher?.username,
|
||||||
description: item.package.description,
|
description: item.package.description,
|
||||||
logo: `https://cdn.jsdelivr.net/npm/${item.package.name}/logo.png`,
|
logo: `https://cdn.jsdelivr.net/npm/${item.package.name}/logo.png`,
|
||||||
config: {},
|
config: {},
|
||||||
|
|||||||
Vendored
+3
@@ -227,6 +227,9 @@ interface INPMSearchResultObject {
|
|||||||
author: {
|
author: {
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
publisher: {
|
||||||
|
username: string
|
||||||
|
}
|
||||||
links: {
|
links: {
|
||||||
npm: string
|
npm: string
|
||||||
homepage: string
|
homepage: string
|
||||||
|
|||||||
Reference in New Issue
Block a user