(auth)
| 5 | const DEFAULT_TIMEOUT = 60000; |
| 6 | |
| 7 | const buildAuth = (auth) => { |
| 8 | if (!auth?.username) return null; |
| 9 | return 'Basic ' + Buffer.from(`${auth.username}:${auth.password}`).toString('base64'); |
| 10 | }; |
| 11 | |
| 12 | const appendParams = (url, params) => { |
| 13 | if (!params) return url; |