Skip to content

Commit

Permalink
Bump axios to v0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Nov 4, 2021
1 parent 8c7b8f8 commit 29d4046
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 69 deletions.
112 changes: 56 additions & 56 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{
"name": "dct-notary-admin-web",
"version": "0.1.0",
"private": true,
"proxy": "https://localhost:8443",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.15",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^26.0.24",
"@types/node": "^16.4.12",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"axios": "^0.21.2",
"classnames": "^2.3.1",
"polished": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "^4.0.3",
"typescript": "^4.3.5"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "^6.2.0",
"@tailwindcss/forms": "^0.3.3",
"@tailwindcss/postcss7-compat": "^2.2.4",
"@types/classnames": "^2.3.1",
"autoprefixer": "^9",
"postcss": "^7",
"prettier": "^2.3.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
}
"name": "dct-notary-admin-web",
"version": "0.1.0",
"private": true,
"proxy": "https://localhost:8443",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.15",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^26.0.24",
"@types/node": "^16.4.12",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"axios": "^0.24.0",
"classnames": "^2.3.1",
"polished": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "^4.0.3",
"typescript": "^4.3.5"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "^6.2.0",
"@tailwindcss/forms": "^0.3.3",
"@tailwindcss/postcss7-compat": "^2.2.4",
"@types/classnames": "^2.3.1",
"autoprefixer": "^9",
"postcss": "^7",
"prettier": "^2.3.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
}
}
4 changes: 2 additions & 2 deletions web/src/components/Delegations/RegisterDelegationKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export const RegisterDelegationKey: FC<TargetParams> = ({ targetId }) => {
try {
const { errorMessage, ...requestBody } = value;
await axios.post(`/api/targets/${targetId}/delegations`, JSON.stringify(requestBody), {
headers: new Headers({
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
}),
},
});
setValue(defaultFormValue);
refresh();
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Targets/CreateTarget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const CreateTarget: FC = () => {
try {
const { errorMessage, ...requestBody } = value;
await axios.post(`/api/targets`, JSON.stringify(requestBody), {
headers: new Headers({
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
}),
},
});
setValue(defaultFormValue);
refresh();
Expand Down
5 changes: 2 additions & 3 deletions web/src/components/Targets/Targets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export const Targets: FC = () => {
<li
key={i}
className={cn('flex flex-row justify-between px-6 py-3 align-middle', {
'border-gray-300 border-t border-b hover:bg-gray-50': !history.location.pathname.endsWith(
item.id.substr(0, 7),
),
'border-gray-300 border-t border-b hover:bg-gray-50':
!history.location.pathname.endsWith(item.id.substr(0, 7)),
'bg-blue-200 border-blue-400 border-2': history.location.pathname.endsWith(
item.id.substr(0, 7),
),
Expand Down
12 changes: 6 additions & 6 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3491,12 +3491,12 @@ axe-core@^4.0.2:
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.0.2.tgz#c7cf7378378a51fcd272d3c09668002a4990b1cb"
integrity sha512-arU1h31OGFu+LPrOLGZ7nB45v940NMDMEJeNmbutu57P+UFDVnkZg3e+J1I2HJRZ9hT7gO8J91dn/PMrAiKakA==

axios@^0.21.2:
version "0.21.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.2.tgz#21297d5084b2aeeb422f5d38e7be4fbb82239017"
integrity sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==
axios@^0.24.0:
version "0.24.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.24.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6"
integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==
dependencies:
follow-redirects "^1.14.0"
follow-redirects "^1.14.4"

axobject-query@^2.2.0:
version "2.2.0"
Expand Down Expand Up @@ -6128,7 +6128,7 @@ flush-write-stream@^1.0.0:
inherits "^2.0.3"
readable-stream "^2.3.6"

follow-redirects@^1.0.0, follow-redirects@^1.14.0:
follow-redirects@^1.0.0, follow-redirects@^1.14.4:
version "1.14.5"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.5.tgz#f09a5848981d3c772b5392309778523f8d85c381"
integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==
Expand Down

0 comments on commit 29d4046

Please # to comment.