Open renovate[bot] opened 3 years ago
Is there anything blocking to upgrade Axios to 1.0.0?
Is there anything blocking to upgrade Axios to 1.0.0?
axios v1 use AbortController
instead of Axios.CancelToken.source
maybe HttpService like
export class HttpService {
// ...
protected makeObservable<T>(
axios: (...args: any[]) => AxiosPromise<T>,
...args: any[]
) {
return new Observable<AxiosResponse<T>>(subsriber => {
const config: AxiosRequestConfig = { ...(args[args.length - 1] || {}) };
let controller: AbortController;
if (!config.signal) {
controller = new AbortController();
config.signal = controller.signal;
}
axios(...args)
.then(res => {
subsriber.next(res);
subsriber.complete();
}).catch(err => {
subsriber.error(err);
});
return () => {
if (config.responseType === 'stream') {
return;
}
if (controller) {
controller.abort();
}
}
});
}
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Config Migration Needed
This repository currently has no open or pending branches.
Detected dependencies
npm