CatalogLoader
Defined in: packages/core/src/capture/catalog/load.ts:11
Reads catalogs; one per app, so the cache is shared by every request.
Methods
Section titled “Methods”load()
Section titled “load()”load(
projectId,buildId):Promise<Catalog|null>
Defined in: packages/core/src/capture/catalog/load.ts:13
The build’s catalog, or null when it has no catalog and no readable index.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
buildId
Section titled “buildId”string
Returns
Section titled “Returns”Promise<Catalog | null>
refresh()
Section titled “refresh()”refresh(
projectId,buildId):Promise<Catalog|null>
Defined in: packages/core/src/capture/catalog/load.ts:15
Catalogue the build again from its statics (a publish ended) and cache the result.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
buildId
Section titled “buildId”string
Returns
Section titled “Returns”Promise<Catalog | null>