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

Function parseSourceList

server/sources/sourceAvailability.js:14–23  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

12}
13
14function parseSourceList(value) {
15 if (!value) return new Set();
16
17 return new Set(
18 String(value)
19 .split(",")
20 .map((item) => item.trim())
21 .filter(Boolean)
22 );
23}
24
25function sourceMatchesList(source, sourceIds) {
26 return [source?.id, source?.type, source?.subType]

Callers 2

applySourceAvailabilityFunction · 0.70
isSourceServerEnabledFunction · 0.70

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected