33 lines
461 B
JavaScript
33 lines
461 B
JavaScript
|
import axios from './lib/axios.js';
|
||
|
|
||
|
// Keep top-level export same with static properties
|
||
|
// so that it can keep same with es module or cjs
|
||
|
const {
|
||
|
Axios,
|
||
|
AxiosError,
|
||
|
CanceledError,
|
||
|
isCancel,
|
||
|
CancelToken,
|
||
|
VERSION,
|
||
|
all,
|
||
|
Cancel,
|
||
|
isAxiosError,
|
||
|
spread,
|
||
|
toFormData
|
||
|
} = axios;
|
||
|
|
||
|
export default axios;
|
||
|
export {
|
||
|
Axios,
|
||
|
AxiosError,
|
||
|
CanceledError,
|
||
|
isCancel,
|
||
|
CancelToken,
|
||
|
VERSION,
|
||
|
all,
|
||
|
Cancel,
|
||
|
isAxiosError,
|
||
|
spread,
|
||
|
toFormData
|
||
|
}
|