UNPKG

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