diff --git a/Sources/Networking/Publisher+Result.swift b/Sources/Networking/Publisher+Result.swift index 2df52e6..af9724e 100644 --- a/Sources/Networking/Publisher+Result.swift +++ b/Sources/Networking/Publisher+Result.swift @@ -14,7 +14,7 @@ extension Publisher { /// Maps the chain of `Output`/`Failure` responses into a `Result` type that contains the `. /// - Returns: A `Publisher` that has converted the `Output` or `Failure` into a `Result`. - func mapAsResult() -> AnyPublisher, Never> { + public func mapAsResult() -> AnyPublisher, Never> { map(Result.success) .catch { Just(.failure($0)) } .eraseToAnyPublisher()