Skip to content

Commit

Permalink
fix(deoendencies): axios (#1083)
Browse files Browse the repository at this point in the history
Bumping axios to it's latest version [requires](axios/axios#4407) to not send empty strings as url.
Therefore we had to adjust the internal execution of `getSpace`
  • Loading branch information
marcolink committed Feb 11, 2022
1 parent 205d3db commit 10d762f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/create-contentful-api.js
Expand Up @@ -107,7 +107,7 @@ export default function createContentfulApi ({ http, getGlobalOptions }) {
async function getSpace () {
switchToSpace(http)
try {
const response = await http.get('')
const response = await http.get('/')
return wrapSpace(response.data)
} catch (error) {
errorHandler(error)
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -60,7 +60,7 @@
"dist"
],
"dependencies": {
"axios": "^0.24.0",
"axios": "^0.25.0",
"contentful-resolve-response": "^1.3.0",
"contentful-sdk-core": "^7.0.1",
"fast-copy": "^2.1.0",
Expand All @@ -82,7 +82,7 @@
"babel-plugin-inline-replace-variables": "^1.3.1",
"babel-plugin-rewire": "^1.0.0",
"blue-tape": "^1.0.0",
"bundlesize": "^0.18.0",
"bundlesize": "^0.18.1",
"contentful-sdk-jsdoc": "^2.2.0",
"core-js": "^3.2.1",
"cz-conventional-changelog": "^3.0.2",
Expand Down

0 comments on commit 10d762f

Please sign in to comment.