Releases: Newt-Inc/newt-client-js
Releases · Newt-Inc/newt-client-js
v3.3.7
v3.3.6
v3.3.5
v3.3.4
v3.3.3
v3.3.2
v3.3.1
v3.3.0
Features
A fetch
option has been added to createClient
.
- Add fetchImpl option to allow users to use fetch (#71 by @umireon)
- Fixed error handling when using fetch (#74 by @y-meguro)
You can choose to use axios or fetch for your request, whichever you prefer.
If you set a value for the fetch
option, the request will be made using fetch instead of axios.
Note that in that case, the adapter
option will not be taken into account and retries will not be performed.
const client = createClient({
spaceUid: 'YOUR_SPACE_UID',
token: 'YOUR_CDN_API_TOKEN',
apiType: 'cdn',
fetch: globalThis.fetch // Custom fetch implementation can be passed as an option.
})
Types
- Export the type of NewtError, ErrorRequest, and ErrorResponse. #74
Security Fixes
- bump follow-redirects from 1.15.3 to 1.15.4 #73