GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Publishes the declarations where the Service Worker can read them.

      ⚠️ An authenticated origin is published with cacheable: false, whatever the profile said. A credentialed response in a shared cache is served to the next reader, and no amount of declaring makes that acceptable — so the two fields are reconciled HERE rather than trusted to be consistent.

      Parameters

      • db:
            | { setPreference?: (key: string, value: unknown) => Promise<unknown> }
            | null
            | undefined

        The storage façade (GeoLeaf.Storage.DB).

      • origins: readonly DataOriginDeclaration[]

        Normalised declarations.

      Returns Promise<void>

      Resolves once written; a storage failure is logged, never thrown — a profile still has to load when persistence is unavailable.