Skip to content

Commit 0e8b43a

Browse files
committed
fix after rebase
1 parent 27f42d3 commit 0e8b43a

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

Sources/Auth/Internal/APIClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ struct APIClient: Sendable {
106106
}
107107
}
108108

109-
private func parseResponseAPIVersion(_ response: HTTPResponse) -> Date? {
109+
private func parseResponseAPIVersion(_ response: Helpers.HTTPResponse) -> Date? {
110110
guard let apiVersion = response.headers[.apiVersionHeaderName] else { return nil }
111111

112112
let formatter = ISO8601DateFormatter()

Sources/Auth/Internal/Contants.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ let autoRefreshTickDuration: TimeInterval = 30
1515
let autoRefreshTickThreshold = 3
1616

1717
let defaultStorageKey = "supabase.auth.token"
18-
let apiVersionHeaderName = "X-Supabase-Api-Version"
1918

2019
extension HTTPField.Name {
21-
static let apiVersionHeaderName = HTTPField.Name(apiVersionHeaderName)!
20+
static let apiVersionHeaderName = HTTPField.Name("X-Supabase-Api-Version")!
2221
}
2322

2423
let apiVersions: [APIVersion.Name: APIVersion] = [

Sources/Functions/FunctionsClient.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,6 @@ public final class FunctionsClient: Sendable {
3434
mutableState.headers
3535
}
3636

37-
init(
38-
url: URL,
39-
headers: [String: String],
40-
region: String?,
41-
http: any HTTPClientType
42-
) {
43-
self.url = url
44-
self.region = region
45-
self.http = http
46-
47-
mutableState.withValue {
48-
$0.headers = HTTPHeaders(headers)
49-
if $0.headers["X-Client-Info"] == nil {
50-
$0.headers["X-Client-Info"] = "functions-swift/\(version)"
51-
}
52-
}
53-
}
54-
5537
/// Initializes a new instance of `FunctionsClient`.
5638
///
5739
/// - Parameters:

Supabase.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)