File tree Expand file tree Collapse file tree 6 files changed +22
-22
lines changed Expand file tree Collapse file tree 6 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ extension AuthClient {
7676 decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
7777 fetch: @escaping FetchHandler = { request, body in
7878 if let body {
79- try await URLSession . shared. upload ( for: request, from: body)
79+ return try await URLSession . shared. upload ( for: request, from: body)
8080 } else {
81- try await URLSession . shared. data ( for: request)
81+ return try await URLSession . shared. data ( for: request)
8282 }
8383 } ,
8484 autoRefreshToken: Bool = AuthClient . Configuration. defaultAutoRefreshToken
@@ -125,9 +125,9 @@ extension AuthClient {
125125 decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
126126 fetch: @escaping FetchHandler = { request, body in
127127 if let body {
128- try await URLSession . shared. upload ( for: request, from: body)
128+ return try await URLSession . shared. upload ( for: request, from: body)
129129 } else {
130- try await URLSession . shared. data ( for: request)
130+ return try await URLSession . shared. data ( for: request)
131131 }
132132 } ,
133133 autoRefreshToken: Bool = AuthClient . Configuration. defaultAutoRefreshToken
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ extension AuthClient.Configuration {
7878 decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
7979 fetch: @escaping AuthClient . FetchHandler = { request, body in
8080 if let body {
81- try await URLSession . shared. upload ( for: request, from: body)
81+ return try await URLSession . shared. upload ( for: request, from: body)
8282 } else {
83- try await URLSession . shared. data ( for: request)
83+ return try await URLSession . shared. data ( for: request)
8484 }
8585 } ) {
8686 self . init (
@@ -121,9 +121,9 @@ extension AuthClient {
121121 decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
122122 fetch: @escaping AuthClient . FetchHandler = { request, body in
123123 if let body {
124- try await URLSession . shared. upload ( for: request, from: body)
124+ return try await URLSession . shared. upload ( for: request, from: body)
125125 } else {
126- try await URLSession . shared. data ( for: request)
126+ return try await URLSession . shared. data ( for: request)
127127 }
128128 }
129129 ) {
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ public final class FunctionsClient: Sendable {
5252 logger: ( any SupabaseLogger ) ? = nil ,
5353 fetch: @escaping FetchHandler = { request, body in
5454 if let body {
55- try await URLSession . shared. upload ( for: request, from: body)
55+ return try await URLSession . shared. upload ( for: request, from: body)
5656 } else {
57- try await URLSession . shared. data ( for: request)
57+ return try await URLSession . shared. data ( for: request)
5858 }
5959 }
6060 ) {
@@ -101,9 +101,9 @@ public final class FunctionsClient: Sendable {
101101 logger: ( any SupabaseLogger ) ? = nil ,
102102 fetch: @escaping FetchHandler = { request, body in
103103 if let body {
104- try await URLSession . shared. upload ( for: request, from: body)
104+ return try await URLSession . shared. upload ( for: request, from: body)
105105 } else {
106- try await URLSession . shared. data ( for: request)
106+ return try await URLSession . shared. data ( for: request)
107107 }
108108 }
109109 ) {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ extension PostgrestClient.Configuration {
3333 headers: [ String : String ] = [ : ] ,
3434 fetch: @escaping PostgrestClient . FetchHandler = { request, body in
3535 if let body {
36- try await URLSession . shared. upload ( for: request, from: body)
36+ return try await URLSession . shared. upload ( for: request, from: body)
3737 } else {
38- try await URLSession . shared. data ( for: request)
38+ return try await URLSession . shared. data ( for: request)
3939 }
4040 } ,
4141 encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
@@ -73,9 +73,9 @@ extension PostgrestClient {
7373 headers: [ String : String ] = [ : ] ,
7474 fetch: @escaping FetchHandler = { request, body in
7575 if let body {
76- try await URLSession . shared. upload ( for: request, from: body)
76+ return try await URLSession . shared. upload ( for: request, from: body)
7777 } else {
78- try await URLSession . shared. data ( for: request)
78+ return try await URLSession . shared. data ( for: request)
7979 }
8080 } ,
8181 encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ public final class PostgrestClient: Sendable {
4646 logger: ( any SupabaseLogger ) ? = nil ,
4747 fetch: @escaping FetchHandler = { request, body in
4848 if let body {
49- try await URLSession . shared. upload ( for: request, from: body)
49+ return try await URLSession . shared. upload ( for: request, from: body)
5050 } else {
51- try await URLSession . shared. data ( for: request)
51+ return try await URLSession . shared. data ( for: request)
5252 }
5353 } ,
5454 encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
@@ -92,9 +92,9 @@ public final class PostgrestClient: Sendable {
9292 logger: ( any SupabaseLogger ) ? = nil ,
9393 fetch: @escaping FetchHandler = { request, body in
9494 if let body {
95- try await URLSession . shared. upload ( for: request, from: body)
95+ return try await URLSession . shared. upload ( for: request, from: body)
9696 } else {
97- try await URLSession . shared. data ( for: request)
97+ return try await URLSession . shared. data ( for: request)
9898 }
9999 } ,
100100 encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
Original file line number Diff line number Diff line change @@ -238,9 +238,9 @@ public class RealtimeClient: PhoenixTransportDelegate {
238238 http = HTTPClient (
239239 fetch: { request, body in
240240 if let body {
241- try await URLSession . shared. upload ( for: request, from: body)
241+ return try await URLSession . shared. upload ( for: request, from: body)
242242 } else {
243- try await URLSession . shared. data ( for: request)
243+ return try await URLSession . shared. data ( for: request)
244244 }
245245 } ,
246246 interceptors: [ ]
You can’t perform that action at this time.
0 commit comments