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

Function sourceMatchesList

server/sources/sourceAvailability.js:25–29  ·  view source on GitHub ↗
(source, sourceIds)

Source from the content-addressed store, hash-verified

23}
24
25function sourceMatchesList(source, sourceIds) {
26 return [source?.id, source?.type, source?.subType]
27 .filter(Boolean)
28 .some((id) => sourceIds.has(id));
29}
30
31function applySourceAvailability(source, env = process.env) {
32 const disabledServerSources = parseSourceList(env.CB_DISABLED_SERVER_SOURCES);

Callers 2

applySourceAvailabilityFunction · 0.70
isSourceServerEnabledFunction · 0.70

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected