axios icon indicating copy to clipboard operation
axios copied to clipboard

Dependency Dashboard

Open renovate[bot] opened this issue 4 years ago • 3 comments

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
View this repository on the Mend.io Web Portal.

Config Migration Needed

  • [ ] Select this checkbox to let Renovate create an automated Config Migration PR.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • [ ] chore(deps): update node.js to v22.17.0

Detected dependencies

circleci
.circleci/config.yml
  • cimg/node 22.14.0
npm
package.json
  • @eslint/eslintrc 3.3.1
  • @eslint/js 9.30.0
  • @commitlint/cli 19.8.1
  • @commitlint/config-angular 19.8.1
  • @nestjs/common 11.1.3
  • @nestjs/core 11.1.3
  • @nestjs/platform-express 11.1.3
  • @nestjs/testing 11.1.3
  • @types/jest 30.0.0
  • @types/node 22.15.33
  • axios 1.10.0
  • eslint 9.30.0
  • eslint-config-prettier 10.1.5
  • eslint-plugin-prettier 5.5.1
  • globals 16.2.0
  • husky 9.1.7
  • jest 30.0.3
  • lint-staged 16.1.2
  • prettier 3.6.2
  • reflect-metadata 0.2.2
  • release-it 19.0.3
  • rimraf 6.0.1
  • rxjs 7.8.2
  • ts-jest 29.4.0
  • typescript 5.8.3
  • typescript-eslint 8.35.0
  • @nestjs/common ^10.0.0 || ^11.0.0
  • axios ^1.3.1
  • rxjs ^7.0.0

  • [ ] Check this box to trigger a request for Renovate to run again on this repository

renovate[bot] avatar Aug 30 '21 09:08 renovate[bot]

Is there anything blocking to upgrade Axios to 1.0.0?

thgh avatar Aug 24 '22 13:08 thgh

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();
        }
      }
    });
  }
}

FahriDevZ avatar Dec 15 '23 21:12 FahriDevZ