(connection)
| 126 | } |
| 127 | |
| 128 | export function getSourceForConnection(connection) { |
| 129 | const source = findSourceForConnection(connection); |
| 130 | |
| 131 | if (!source) { |
| 132 | const sourceId = connection?.subType || connection?.type; |
| 133 | throw new Error(`Unsupported connection source: ${sourceId}`); |
| 134 | } |
| 135 | |
| 136 | return source; |
| 137 | } |
| 138 | |
| 139 | export function findSourceForConnection(connection) { |
| 140 | const sourceDefinition = findSourceDefinitionForConnection(connection); |
nothing calls this directly
no test coverage detected