MCPcopy Index your code
hub / github.com/SchemaStore/schemastore / forEachCatalogUrl

Function forEachCatalogUrl

cli.js:200–209  ·  view source on GitHub ↗
(
  /** @type {((arg0: string) => (void | Promise<void>))} */ fn,
)

Source from the content-addressed store, hash-verified

198}
199
200async function forEachCatalogUrl(
201 /** @type {((arg0: string) => (void | Promise<void>))} */ fn,
202) {
203 for (const catalogEntry of Catalog.schemas) {
204 await fn(catalogEntry.url)
205 for (const url of Object.values(catalogEntry?.versions ?? {})) {
206 await fn(url)
207 }
208 }
209}
210
211/**
212 * @typedef {Object} ExtraParams

Callers 4

taskMaintenanceFunction · 0.85
schemaUrlsMustExistFunction · 0.85
printSimpleStatisticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected