* Extract the plugin name from a PluginError, checking explicit fields first, * then falling back to the source field (format: "pluginName@marketplace").
(error: PluginError)
| 202 | * then falling back to the source field (format: "pluginName@marketplace"). |
| 203 | */ |
| 204 | function getPluginNameFromError(error: PluginError): string | undefined { |
| 205 | if ('pluginId' in error && error.pluginId) return error.pluginId; |
| 206 | if ('plugin' in error && error.plugin) return error.plugin; |
| 207 | // Fallback: source often contains "pluginName@marketplace" |
| 208 | if (error.source.includes('@')) return error.source.split('@')[0]; |
| 209 | return undefined; |
| 210 | } |
| 211 | function buildErrorRows(failedMarketplaces: Array<{ |
| 212 | name: string; |
| 213 | error?: string; |
no outgoing calls
no test coverage detected