@maschinenlesbar.org/dip-bundestag-cli
    Preparing search index...

    Function normaliseApiKey

    • The key the client sends: trimmed, a blank one counts as none (undefined). Throws DipValidationError (Invalid apiKey: ..., never echoing the key) for a key apiKeyProblem rejects. The CLI's --api-key and DIP_API_KEY paths go through the same function, so all three send the same header.

      Parameters

      • value: string | undefined

      Returns string | undefined