| 51 | }; |
| 52 | |
| 53 | export class InsertPluginError extends Error { |
| 54 | constructor( |
| 55 | message: string, |
| 56 | public readonly code: |
| 57 | | "duplicate_name" |
| 58 | | "duplicate_repo" |
| 59 | | "components_failed" |
| 60 | | "insert_failed", |
| 61 | ) { |
| 62 | super(message); |
| 63 | this.name = "InsertPluginError"; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | export async function insertPlugin( |
| 68 | input: InsertPluginInput, |
nothing calls this directly
no outgoing calls
no test coverage detected