( dep: string, declaringPluginId: string, )
| 36 | * verifyAndDemote handles bare deps via name-only matching. |
| 37 | */ |
| 38 | export function qualifyDependency( |
| 39 | dep: string, |
| 40 | declaringPluginId: string, |
| 41 | ): string { |
| 42 | if (parsePluginIdentifier(dep).marketplace) return dep |
| 43 | const mkt = parsePluginIdentifier(declaringPluginId).marketplace |
| 44 | if (!mkt || mkt === INLINE_MARKETPLACE) return dep |
| 45 | return `${dep}@${mkt}` |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Minimal shape the resolver needs from a marketplace lookup. Keeping this |
no test coverage detected