Commit 627989f
committed
Refactor proxy support to match Firebase Admin SDK capabilities
Based on research and feedback from issue #220:
- Remove httpsAgent support (Firebase only supports httpAgent in AppOptions)
- Pass httpAgent to credential factory for proper authentication proxy support
- Single httpAgent parameter handles both HTTP and HTTPS connections
- Update documentation to clarify httpAgent usage with HttpsProxyAgent for HTTPS proxies
- Update tests to reflect httpAgent-only configuration
- Maintain legacyHttpTransport support for HTTP/1.1 transport
All 88 tests passing (87 existing + 1 legacyHttpTransport test)
Simplify credential assignment using || operator
Replace if/else block with more concise || operator for getting or creating
credential with httpAgent support. Maintains same functionality while improving
readability.1 parent 894bee1 commit 627989f
File tree
4 files changed
+15
-54
lines changed- .github
- src
- test/send
4 files changed
+15
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
478 | | - | |
479 | | - | |
| 477 | + | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | | - | |
72 | | - | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
78 | | - | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 157 | + | |
196 | 158 | | |
197 | | - | |
198 | 159 | | |
199 | 160 | | |
200 | 161 | | |
| |||
208 | 169 | | |
209 | 170 | | |
210 | 171 | | |
211 | | - | |
| 172 | + | |
212 | 173 | | |
213 | 174 | | |
214 | | - | |
215 | 175 | | |
216 | 176 | | |
217 | 177 | | |
| |||
220 | 180 | | |
221 | 181 | | |
222 | 182 | | |
223 | | - | |
| 183 | + | |
| 184 | + | |
224 | 185 | | |
225 | 186 | | |
226 | | - | |
227 | 187 | | |
228 | 188 | | |
229 | 189 | | |
| |||
0 commit comments