├── .eslintrc.cjs ├── .gitignore ├── .prettierrc.json ├── README.md ├── docs ├── .vitepress │ └── config.ts ├── api-examples.md ├── index.md └── markdown-examples.md ├── example ├── index.html ├── mockServiceWorker.js └── vite.config.ts ├── index.d.ts ├── lib ├── adapters │ ├── fetch.ts │ ├── http.ts │ ├── index.ts │ └── xhr.ts ├── axios.ts ├── cancel │ ├── CancelError.ts │ ├── CancelToken.ts │ └── isCancel.ts ├── core │ ├── Axios.ts │ ├── AxiosError.ts │ ├── InterceptorManager.ts │ ├── dispatchRequest.ts │ ├── mergeConfig.ts │ ├── settle.ts │ └── transform.ts ├── defaults.ts ├── helpers │ ├── cookie.ts │ ├── data.ts │ ├── headers.ts │ └── url.ts ├── index.ts ├── types │ └── index.ts └── utils.ts ├── package.json ├── release.sh ├── test ├── helpers │ ├── cookie.spec.ts │ ├── data.spec.ts │ ├── headers.spec.ts │ └── url.spec.ts ├── requests.spec.ts ├── tsconfig.json └── utils.spec.ts ├── tsconfig.json ├── tslint.json ├── vite.config.ts └── vitest.config.ts /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/README.md -------------------------------------------------------------------------------- /docs/.vitepress/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/docs/.vitepress/config.ts -------------------------------------------------------------------------------- /docs/api-examples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/docs/api-examples.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/markdown-examples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/docs/markdown-examples.md -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/example/index.html -------------------------------------------------------------------------------- /example/mockServiceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/example/mockServiceWorker.js -------------------------------------------------------------------------------- /example/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/example/vite.config.ts -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/index.d.ts -------------------------------------------------------------------------------- /lib/adapters/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/adapters/fetch.ts -------------------------------------------------------------------------------- /lib/adapters/http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/adapters/http.ts -------------------------------------------------------------------------------- /lib/adapters/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/adapters/index.ts -------------------------------------------------------------------------------- /lib/adapters/xhr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/adapters/xhr.ts -------------------------------------------------------------------------------- /lib/axios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/axios.ts -------------------------------------------------------------------------------- /lib/cancel/CancelError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/cancel/CancelError.ts -------------------------------------------------------------------------------- /lib/cancel/CancelToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/cancel/CancelToken.ts -------------------------------------------------------------------------------- /lib/cancel/isCancel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/cancel/isCancel.ts -------------------------------------------------------------------------------- /lib/core/Axios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/Axios.ts -------------------------------------------------------------------------------- /lib/core/AxiosError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/AxiosError.ts -------------------------------------------------------------------------------- /lib/core/InterceptorManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/InterceptorManager.ts -------------------------------------------------------------------------------- /lib/core/dispatchRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/dispatchRequest.ts -------------------------------------------------------------------------------- /lib/core/mergeConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/mergeConfig.ts -------------------------------------------------------------------------------- /lib/core/settle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/settle.ts -------------------------------------------------------------------------------- /lib/core/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/core/transform.ts -------------------------------------------------------------------------------- /lib/defaults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/defaults.ts -------------------------------------------------------------------------------- /lib/helpers/cookie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/helpers/cookie.ts -------------------------------------------------------------------------------- /lib/helpers/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/helpers/data.ts -------------------------------------------------------------------------------- /lib/helpers/headers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/helpers/headers.ts -------------------------------------------------------------------------------- /lib/helpers/url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/helpers/url.ts -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/types/index.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/package.json -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/release.sh -------------------------------------------------------------------------------- /test/helpers/cookie.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/helpers/cookie.spec.ts -------------------------------------------------------------------------------- /test/helpers/data.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/helpers/data.spec.ts -------------------------------------------------------------------------------- /test/helpers/headers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/helpers/headers.spec.ts -------------------------------------------------------------------------------- /test/helpers/url.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/helpers/url.spec.ts -------------------------------------------------------------------------------- /test/requests.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/requests.spec.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /test/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/test/utils.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/tslint.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/vite.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EricWXY/toy-axios/HEAD/vitest.config.ts --------------------------------------------------------------------------------