@playlive/tiltify-search
    Preparing search index...

    Variable translateIndexSearchToMultiSearchConst

    translateIndexSearchToMultiSearch: (fetchImpl: FetchLike) => FetchLike = createTiltifyFetchAdapter

    Type Declaration

      • (fetchImpl: FetchLike): FetchLike
      • Internal

        Wrap a base fetch with Tiltify's three search-host quirks (URL rewrite, Origin injection, filter-shape normalization). See the package documentation at the top of this file for the full story.

        The adapter only touches POST requests whose URL path either ends in /multi-search or matches the per-index search suffix; every other call (GET, admin endpoints, arbitrary POSTs, non-Tiltify hosts) passes through untouched.

        Exported for testability; not part of the public barrel.

        Parameters

        • fetchImpl: FetchLike

        Returns FetchLike

    Renamed to createTiltifyFetchAdapter in 0.4.3 — the adapter now also injects the Origin header and normalizes the filter shape (both required by Tiltify's post-migration host). This re-export is kept temporarily so any downstream code referring to the old name during the 0.4.x cycle still resolves; remove in 0.5.0.