UNPKG

461 BJavaScriptView Raw
1import axios from './lib/axios.js';
2
3// Keep top-level export same with static properties
4// so that it can keep same with es module or cjs
5const {
6 Axios,
7 AxiosError,
8 CanceledError,
9 isCancel,
10 CancelToken,
11 VERSION,
12 all,
13 Cancel,
14 isAxiosError,
15 spread,
16 toFormData
17} = axios;
18
19export default axios;
20export {
21 Axios,
22 AxiosError,
23 CanceledError,
24 isCancel,
25 CancelToken,
26 VERSION,
27 all,
28 Cancel,
29 isAxiosError,
30 spread,
31 toFormData
32}