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

    Function networkError

    • A transport failure as a JobsucheNetworkError. The default transport rejects with one already (passed through, its text scrubbed); an injected one may throw anything (a TypeError from fetch, a string, null), which is wrapped naming the request, with the original as cause, so every failure stays a JobsucheError. scrub removes the caller's secrets from the message and the cause chain: fetch's "Request cannot be constructed from a URL that includes credentials: http://user:pw@…" carries them.

      Parameters

      • method: string
      • url: string
      • cause: unknown
      • scrub: (text: string) => string = ...

      Returns JobsucheError