MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / assertSourceServerEnabled

Function assertSourceServerEnabled

server/sources/sourceAvailability.js:57–61  ·  view source on GitHub ↗
(source, env = process.env)

Source from the content-addressed store, hash-verified

55}
56
57function assertSourceServerEnabled(source, env = process.env) {
58 if (!isSourceServerEnabled(source, env)) {
59 throw new SourceDisabledError(source);
60 }
61}
62
63function isSourceDisabledError(error) {
64 return error?.code === SOURCE_DISABLED_ERROR_CODE;

Callers 8

getBuilderMetadataMethod · 0.85
askAiMethod · 0.85
testQueryMethod · 0.85
getPreviewDataMethod · 0.85
testQuery.jsFile · 0.85
runSourceDataRequestFunction · 0.85
ConnectionRoute.jsFile · 0.85

Calls 1

isSourceServerEnabledFunction · 0.85

Tested by

no test coverage detected