Skip to content

Commit

Permalink
⬆️ Bump axios from 0.21.4 to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 22, 2023
1 parent 0547703 commit 7b92956
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 1 addition & 2 deletions components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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(()=>{}),
),
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pages/nft/url/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
16 changes: 15 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7b92956

Please sign in to comment.