MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / getSourceForConnection

Function getSourceForConnection

client/src/sources/index.js:128–137  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

126}
127
128export 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
139export function findSourceForConnection(connection) {
140 const sourceDefinition = findSourceDefinitionForConnection(connection);

Callers

nothing calls this directly

Calls 1

findSourceForConnectionFunction · 0.70

Tested by

no test coverage detected