@maschinenlesbar.org/reisewarnungen-cli
    Preparing search index...

    Class ReisewarnungenClient

    Index
    • One country's full travel warning (the HTML content is populated here).

      Throws ReiseNotFoundError when the (2xx) response contains no entry for contentId, so an absent country is observable rather than masked as an empty success. The single-warning endpoint keys its one entry under the content id; as a tolerance for that key ever differing, a sole non- lastModified object entry is accepted as the result, but an ambiguous (multi-entry) response is treated as not-found rather than risk returning a different country than requested.

      Parameters

      • contentId: string

      Returns Promise<TravelWarning>