File tree 6 files changed +22
-22
lines changed
6 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ extension AuthClient {
76
76
decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
77
77
fetch: @escaping FetchHandler = { request, body in
78
78
if let body {
79
- try await URLSession . shared. upload ( for: request, from: body)
79
+ return try await URLSession . shared. upload ( for: request, from: body)
80
80
} else {
81
- try await URLSession . shared. data ( for: request)
81
+ return try await URLSession . shared. data ( for: request)
82
82
}
83
83
} ,
84
84
autoRefreshToken: Bool = AuthClient . Configuration. defaultAutoRefreshToken
@@ -125,9 +125,9 @@ extension AuthClient {
125
125
decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
126
126
fetch: @escaping FetchHandler = { request, body in
127
127
if let body {
128
- try await URLSession . shared. upload ( for: request, from: body)
128
+ return try await URLSession . shared. upload ( for: request, from: body)
129
129
} else {
130
- try await URLSession . shared. data ( for: request)
130
+ return try await URLSession . shared. data ( for: request)
131
131
}
132
132
} ,
133
133
autoRefreshToken: Bool = AuthClient . Configuration. defaultAutoRefreshToken
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ extension AuthClient.Configuration {
78
78
decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
79
79
fetch: @escaping AuthClient . FetchHandler = { request, body in
80
80
if let body {
81
- try await URLSession . shared. upload ( for: request, from: body)
81
+ return try await URLSession . shared. upload ( for: request, from: body)
82
82
} else {
83
- try await URLSession . shared. data ( for: request)
83
+ return try await URLSession . shared. data ( for: request)
84
84
}
85
85
} ) {
86
86
self . init (
@@ -121,9 +121,9 @@ extension AuthClient {
121
121
decoder: JSONDecoder = AuthClient . Configuration. jsonDecoder,
122
122
fetch: @escaping AuthClient . FetchHandler = { request, body in
123
123
if let body {
124
- try await URLSession . shared. upload ( for: request, from: body)
124
+ return try await URLSession . shared. upload ( for: request, from: body)
125
125
} else {
126
- try await URLSession . shared. data ( for: request)
126
+ return try await URLSession . shared. data ( for: request)
127
127
}
128
128
}
129
129
) {
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ public final class FunctionsClient: Sendable {
52
52
logger: ( any SupabaseLogger ) ? = nil ,
53
53
fetch: @escaping FetchHandler = { request, body in
54
54
if let body {
55
- try await URLSession . shared. upload ( for: request, from: body)
55
+ return try await URLSession . shared. upload ( for: request, from: body)
56
56
} else {
57
- try await URLSession . shared. data ( for: request)
57
+ return try await URLSession . shared. data ( for: request)
58
58
}
59
59
}
60
60
) {
@@ -101,9 +101,9 @@ public final class FunctionsClient: Sendable {
101
101
logger: ( any SupabaseLogger ) ? = nil ,
102
102
fetch: @escaping FetchHandler = { request, body in
103
103
if let body {
104
- try await URLSession . shared. upload ( for: request, from: body)
104
+ return try await URLSession . shared. upload ( for: request, from: body)
105
105
} else {
106
- try await URLSession . shared. data ( for: request)
106
+ return try await URLSession . shared. data ( for: request)
107
107
}
108
108
}
109
109
) {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ extension PostgrestClient.Configuration {
33
33
headers: [ String : String ] = [ : ] ,
34
34
fetch: @escaping PostgrestClient . FetchHandler = { request, body in
35
35
if let body {
36
- try await URLSession . shared. upload ( for: request, from: body)
36
+ return try await URLSession . shared. upload ( for: request, from: body)
37
37
} else {
38
- try await URLSession . shared. data ( for: request)
38
+ return try await URLSession . shared. data ( for: request)
39
39
}
40
40
} ,
41
41
encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
@@ -73,9 +73,9 @@ extension PostgrestClient {
73
73
headers: [ String : String ] = [ : ] ,
74
74
fetch: @escaping FetchHandler = { request, body in
75
75
if let body {
76
- try await URLSession . shared. upload ( for: request, from: body)
76
+ return try await URLSession . shared. upload ( for: request, from: body)
77
77
} else {
78
- try await URLSession . shared. data ( for: request)
78
+ return try await URLSession . shared. data ( for: request)
79
79
}
80
80
} ,
81
81
encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ public final class PostgrestClient: Sendable {
46
46
logger: ( any SupabaseLogger ) ? = nil ,
47
47
fetch: @escaping FetchHandler = { request, body in
48
48
if let body {
49
- try await URLSession . shared. upload ( for: request, from: body)
49
+ return try await URLSession . shared. upload ( for: request, from: body)
50
50
} else {
51
- try await URLSession . shared. data ( for: request)
51
+ return try await URLSession . shared. data ( for: request)
52
52
}
53
53
} ,
54
54
encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
@@ -92,9 +92,9 @@ public final class PostgrestClient: Sendable {
92
92
logger: ( any SupabaseLogger ) ? = nil ,
93
93
fetch: @escaping FetchHandler = { request, body in
94
94
if let body {
95
- try await URLSession . shared. upload ( for: request, from: body)
95
+ return try await URLSession . shared. upload ( for: request, from: body)
96
96
} else {
97
- try await URLSession . shared. data ( for: request)
97
+ return try await URLSession . shared. data ( for: request)
98
98
}
99
99
} ,
100
100
encoder: JSONEncoder = PostgrestClient . Configuration. jsonEncoder,
Original file line number Diff line number Diff line change @@ -238,9 +238,9 @@ public class RealtimeClient: PhoenixTransportDelegate {
238
238
http = HTTPClient (
239
239
fetch: { request, body in
240
240
if let body {
241
- try await URLSession . shared. upload ( for: request, from: body)
241
+ return try await URLSession . shared. upload ( for: request, from: body)
242
242
} else {
243
- try await URLSession . shared. data ( for: request)
243
+ return try await URLSession . shared. data ( for: request)
244
244
}
245
245
} ,
246
246
interceptors: [ ]
You can’t perform that action at this time.
0 commit comments