xapi
xapi copied to clipboard
✨ feature/adapters
Adds the option to specify the adapter used when making network requests. Supports axios
(default), fetch
or provide a custom fetcher method.
- [x] Add adapter structure
- [x] Add Axios adapter
- [x] Add Fetch adapter
- [x] Add custom adapter function
- [x] Update existing unit tests with adapter variants
- [x] Update existing integration tests with adapter variants
- [x] Add additional tests for adapters
- [x] Axios
- [x] Fetch
- [x] Custom
- [x] Add edge jest environment
- Blocked by https://github.com/vercel/edge-runtime/issues/250)
- [x] Support base64 conversion for
toBasicAuth
in edge environment