( url, options = {} )
| 186 | } |
| 187 | |
| 188 | export async function getJson ( url, options = {} ) { |
| 189 | const { data } = await request( url, { |
| 190 | ...options, |
| 191 | method: 'GET', |
| 192 | responseType: 'json' |
| 193 | } ) |
| 194 | |
| 195 | return data |
| 196 | } |
| 197 | |
| 198 | export async function getText ( url, options = {} ) { |
| 199 | const { data } = await request( url, { |
no test coverage detected