UNPKG

653 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 HttpStatusCode,
20 formToJSON,
21 mergeConfig
22} = axios;
23
24export {
25 axios as default,
26 Axios,
27 AxiosError,
28 CanceledError,
29 isCancel,
30 CancelToken,
31 VERSION,
32 all,
33 Cancel,
34 isAxiosError,
35 spread,
36 toFormData,
37 AxiosHeaders,
38 HttpStatusCode,
39 formToJSON,
40 mergeConfig
41}