(plugin)
| 569 | } |
| 570 | |
| 571 | function normalizePluginAuthor(plugin) { |
| 572 | const { author } = plugin || {}; |
| 573 | if (!author) return ""; |
| 574 | if (typeof author === "string") return author; |
| 575 | if (typeof author === "object") { |
| 576 | return author.name || author.username || author.github || ""; |
| 577 | } |
| 578 | return ""; |
| 579 | } |
| 580 | |
| 581 | function normalizePluginKeywords(plugin) { |
| 582 | const { keywords } = plugin || {}; |