Skip to content

Commit

Permalink
1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Apr 10, 2024
1 parent d34ae1b commit 26bdc6a
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.6.5")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.6.6")
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/APIClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@_exported @preconcurrency import FoundationNetworking
@_exported import FoundationNetworking
#endif

/// A network client for handling url requests with configurable request and configuration handling.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/APIClientConfigs.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import Logging
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// A struct representing an HTTP client capable of performing network requests.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPDownloadClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public struct HTTPDownloadClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/HTTPUploadClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient.Configs {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/NetworkClientCaller.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import Logging
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// A generic structure for handling network requests and their responses.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Clients/URLSession+Client.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import Logging
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension HTTPClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Extensions/URLResponse++.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import HTTPTypes

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/AuthModifier.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient.Configs {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/CodersModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// A struct for validating HTTP responses.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/MockResponses.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestCompression.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@preconcurrency import Foundation
import zlib
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

// MARK: - Path modifiers
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RequestValidator.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// A struct for validating URL request instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/RetryModifier.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension APIClient.Configs {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/HTTPFields.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

public extension HTTPField {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/LoggingComponent.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// The components to be logged.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftAPIClient/Types/RedirectBehaviour.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

/// Defines a redirect behaviour.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@preconcurrency import Foundation
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@testable import SwiftAPIClient
import XCTest
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

final class AuthModifierTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import XCTest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Logging
@testable import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import XCTest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
@testable import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@preconcurrency import Foundation
@testable import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@testable import SwiftAPIClient
import XCTest
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

final class RequestModifiersTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftAPIClientTests/NetworkClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Logging
@testable import SwiftAPIClient
import XCTest
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

final class APIClientTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftAPIClientTests/TestUtils/Client+Ext.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

extension APIClient {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftAPIClientTests/TestUtils/TestHTTPClient.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@preconcurrency import Foundation
import SwiftAPIClient
#if canImport(FoundationNetworking)
@preconcurrency import FoundationNetworking
import FoundationNetworking
#endif

extension HTTPClient {
Expand Down

0 comments on commit 26bdc6a

Please sign in to comment.