From 7b9295699822fb29a698c7c741c43a0c5c93882b Mon Sep 17 00:00:00 2001 From: William Chong Date: Wed, 22 Nov 2023 17:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20axios=20from=200.21?= =?UTF-8?q?.4=20to=201.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/IscnRegisterForm.vue | 3 +-- package.json | 2 +- pages/nft/iscn/_iscnId.vue | 2 +- pages/nft/url/index.vue | 2 +- yarn.lock | 16 +++++++++++++++- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/components/IscnRegisterForm.vue b/components/IscnRegisterForm.vue index 3279a5d9..fac5cadf 100644 --- a/components/IscnRegisterForm.vue +++ b/components/IscnRegisterForm.vue @@ -713,7 +713,6 @@ import debounce from 'lodash.debounce' import { Vue, Component, Prop, Watch } from 'vue-property-decorator' import { namespace } from 'vuex-class' -import { AxiosResponse } from 'axios' import { Author } from '~/types/author' import { signISCNTx } from '~/utils/cosmos/iscn'; @@ -1259,7 +1258,7 @@ export default class IscnRegisterForm extends Vue { likerIdsAddresses = await Promise.all( this.likerIds.map((e) => this.$axios.get(getLikerIdMinApi(e as string)) - .then((element: AxiosResponse): string | undefined => element?.data?.likeWallet) + .then((element: any)=> element?.data?.likeWallet) .catch(()=>{}), ), ) diff --git a/package.json b/package.json index 7d57dbfc..28d479df 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@walletconnect/client": "^1.6.6", "@walletconnect/qrcode-modal": "^1.6.6", "@walletconnect/utils": "^1.6.6", - "axios": "^0.21.4", + "axios": "^1.6.0", "bignumber.js": "^9.0.1", "cheerio": "^1.0.0-rc.11", "core-js": "^3.15.1", diff --git a/pages/nft/iscn/_iscnId.vue b/pages/nft/iscn/_iscnId.vue index e9d51c81..15985314 100644 --- a/pages/nft/iscn/_iscnId.vue +++ b/pages/nft/iscn/_iscnId.vue @@ -1050,7 +1050,7 @@ export default class NFTTestMintPage extends Vue { // eslint-disable-next-line no-console console.error(err) if (axios.isAxiosError(err)) { - const message = (err as AxiosError).response?.data || (err as Error).toString(); + const message = ((err as AxiosError).response?.data || (err as Error) as any).toString(); this.errorMessage = message; this.toggleSnackbar(message) } else { diff --git a/pages/nft/url/index.vue b/pages/nft/url/index.vue index 98d25eb7..26812550 100644 --- a/pages/nft/url/index.vue +++ b/pages/nft/url/index.vue @@ -820,7 +820,7 @@ export default class FetchIndex extends Vue { console.error(err) if (axios.isAxiosError(err)) { this.toggleSnackbar( - (err as AxiosError).response?.data || (err as Error).toString(), + ((err as AxiosError).response?.data || (err as Error) as any).toString(), ) } else { this.toggleSnackbar((err as Error).toString()) diff --git a/yarn.lock b/yarn.lock index 736178b5..40315b1b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8094,7 +8094,7 @@ axios@0.27.2, axios@^0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" -axios@^0.21.2, axios@^0.21.4: +axios@^0.21.2: version "0.21.4" resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== @@ -8108,6 +8108,15 @@ axios@^0.25.0: dependencies: follow-redirects "^1.14.7" +axios@^1.6.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.2.tgz#de67d42c755b571d3e698df1b6504cde9b0ee9f2" + integrity sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A== + dependencies: + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" @@ -12015,6 +12024,11 @@ follow-redirects@^1.14.7, follow-redirects@^1.14.9: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== +follow-redirects@^1.15.0: + version "1.15.3" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a" + integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q== + for-each@^0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"