Skip to content

Commit f4db4eb

Browse files
committed
fix: fix a breaking change introduced by axios v1.1.0
1 parent 9d3ddcf commit f4db4eb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "cross-env NODE_ENV=test jest"
3737
},
3838
"dependencies": {
39-
"axios": "^1.0.0",
39+
"axios": "^1.1.0",
4040
"fast-glob": "^3.2.12",
4141
"ignore": "^5.2.0",
4242
"ramda": "^0.28.0"

src/utils/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const axios = require('axios')
3+
const axios = require('axios').default
44

55
const getContentFile = async ({
66
owner,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,10 +1490,10 @@ asynckit@^0.4.0:
14901490
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
14911491
integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
14921492

1493-
axios@^1.0.0:
1494-
version "1.0.0"
1495-
resolved "https://registry.yarnpkg.com/axios/-/axios-1.0.0.tgz#16ded6096c1d37650db9f6a8d48a2f7c1bb58622"
1496-
integrity sha512-SsHsGFN1qNPFT5QhSoSD37SHDfGyLSW5AESmyLk2JeCMHv5g0I9g0Hz/zQHx2KNe0jGXh2q2hAm7OdkXm360CA==
1493+
axios@^1.1.0:
1494+
version "1.1.0"
1495+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.0.tgz#94d25e6524743c7fc33954dd536687bbb957793a"
1496+
integrity sha512-hsJgcqz4JY7f+HZ4cWTrPZ6tZNCNFPTRx1MjRqu/hbpgpHdSCUpLVuplc+jE/h7dOvyANtw/ERA3HC2Rz/QoMg==
14971497
dependencies:
14981498
follow-redirects "^1.15.0"
14991499
form-data "^4.0.0"

0 commit comments

Comments
 (0)