()
| 5 | import BrasilAPI from './brasilapi.js' |
| 6 | |
| 7 | export function getAvailableServices () { |
| 8 | const isBrowser = typeof window !== 'undefined' |
| 9 | |
| 10 | if (isBrowser) { |
| 11 | return { |
| 12 | viacep: ViaCep, |
| 13 | widenet: WideNet, |
| 14 | brasilapi: BrasilAPI |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | return { |
| 19 | correios: Correios, |
| 20 | 'correios-alt': CorreiosAlt, |
| 21 | viacep: ViaCep, |
| 22 | widenet: WideNet, |
| 23 | brasilapi: BrasilAPI |
| 24 | } |
| 25 | } |
no outgoing calls
no test coverage detected