Skip to content

Commit 29d4046

Browse files
committedNov 4, 2021
Bump axios to v0.24.0
1 parent 8c7b8f8 commit 29d4046

File tree

5 files changed

+68
-69
lines changed

5 files changed

+68
-69
lines changed
 

‎web/package.json

+56-56
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
{
2-
"name": "dct-notary-admin-web",
3-
"version": "0.1.0",
4-
"private": true,
5-
"proxy": "https://localhost:8443",
6-
"dependencies": {
7-
"@fortawesome/fontawesome-svg-core": "^1.2.36",
8-
"@fortawesome/free-solid-svg-icons": "^5.15.4",
9-
"@fortawesome/react-fontawesome": "^0.1.15",
10-
"@testing-library/jest-dom": "^5.14.1",
11-
"@testing-library/react": "^12.0.0",
12-
"@testing-library/user-event": "^13.2.1",
13-
"@types/jest": "^26.0.24",
14-
"@types/node": "^16.4.12",
15-
"@types/react": "^17.0.34",
16-
"@types/react-dom": "^17.0.9",
17-
"@types/react-router-dom": "^5.1.8",
18-
"axios": "^0.21.2",
19-
"classnames": "^2.3.1",
20-
"polished": "^4.1.3",
21-
"react": "^17.0.2",
22-
"react-dom": "^17.0.2",
23-
"react-router-dom": "^5.2.0",
24-
"react-scripts": "^4.0.3",
25-
"typescript": "^4.3.5"
26-
},
27-
"scripts": {
28-
"start": "craco start",
29-
"build": "craco build",
30-
"test": "craco test",
31-
"eject": "react-scripts eject"
32-
},
33-
"eslintConfig": {
34-
"extends": "react-app"
35-
},
36-
"browserslist": {
37-
"production": [
38-
">0.2%",
39-
"not dead",
40-
"not op_mini all"
41-
],
42-
"development": [
43-
"last 1 chrome version",
44-
"last 1 firefox version",
45-
"last 1 safari version"
46-
]
47-
},
48-
"devDependencies": {
49-
"@craco/craco": "^6.2.0",
50-
"@tailwindcss/forms": "^0.3.3",
51-
"@tailwindcss/postcss7-compat": "^2.2.4",
52-
"@types/classnames": "^2.3.1",
53-
"autoprefixer": "^9",
54-
"postcss": "^7",
55-
"prettier": "^2.3.2",
56-
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
57-
}
2+
"name": "dct-notary-admin-web",
3+
"version": "0.1.0",
4+
"private": true,
5+
"proxy": "https://localhost:8443",
6+
"dependencies": {
7+
"@fortawesome/fontawesome-svg-core": "^1.2.36",
8+
"@fortawesome/free-solid-svg-icons": "^5.15.4",
9+
"@fortawesome/react-fontawesome": "^0.1.15",
10+
"@testing-library/jest-dom": "^5.14.1",
11+
"@testing-library/react": "^12.0.0",
12+
"@testing-library/user-event": "^13.2.1",
13+
"@types/jest": "^26.0.24",
14+
"@types/node": "^16.4.12",
15+
"@types/react": "^17.0.34",
16+
"@types/react-dom": "^17.0.9",
17+
"@types/react-router-dom": "^5.1.8",
18+
"axios": "^0.24.0",
19+
"classnames": "^2.3.1",
20+
"polished": "^4.1.3",
21+
"react": "^17.0.2",
22+
"react-dom": "^17.0.2",
23+
"react-router-dom": "^5.2.0",
24+
"react-scripts": "^4.0.3",
25+
"typescript": "^4.3.5"
26+
},
27+
"scripts": {
28+
"start": "craco start",
29+
"build": "craco build",
30+
"test": "craco test",
31+
"eject": "react-scripts eject"
32+
},
33+
"eslintConfig": {
34+
"extends": "react-app"
35+
},
36+
"browserslist": {
37+
"production": [
38+
">0.2%",
39+
"not dead",
40+
"not op_mini all"
41+
],
42+
"development": [
43+
"last 1 chrome version",
44+
"last 1 firefox version",
45+
"last 1 safari version"
46+
]
47+
},
48+
"devDependencies": {
49+
"@craco/craco": "^6.2.0",
50+
"@tailwindcss/forms": "^0.3.3",
51+
"@tailwindcss/postcss7-compat": "^2.2.4",
52+
"@types/classnames": "^2.3.1",
53+
"autoprefixer": "^9",
54+
"postcss": "^7",
55+
"prettier": "^2.3.2",
56+
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
57+
}
5858
}

‎web/src/components/Delegations/RegisterDelegationKey.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export const RegisterDelegationKey: FC<TargetParams> = ({ targetId }) => {
2727
try {
2828
const { errorMessage, ...requestBody } = value;
2929
await axios.post(`/api/targets/${targetId}/delegations`, JSON.stringify(requestBody), {
30-
headers: new Headers({
30+
headers: {
3131
'Content-Type': 'application/json',
3232
Accept: 'application/json',
33-
}),
33+
},
3434
});
3535
setValue(defaultFormValue);
3636
refresh();

‎web/src/components/Targets/CreateTarget.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export const CreateTarget: FC = () => {
1414
try {
1515
const { errorMessage, ...requestBody } = value;
1616
await axios.post(`/api/targets`, JSON.stringify(requestBody), {
17-
headers: new Headers({
17+
headers: {
1818
'Content-Type': 'application/json',
1919
Accept: 'application/json',
20-
}),
20+
},
2121
});
2222
setValue(defaultFormValue);
2323
refresh();

‎web/src/components/Targets/Targets.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ export const Targets: FC = () => {
4848
<li
4949
key={i}
5050
className={cn('flex flex-row justify-between px-6 py-3 align-middle', {
51-
'border-gray-300 border-t border-b hover:bg-gray-50': !history.location.pathname.endsWith(
52-
item.id.substr(0, 7),
53-
),
51+
'border-gray-300 border-t border-b hover:bg-gray-50':
52+
!history.location.pathname.endsWith(item.id.substr(0, 7)),
5453
'bg-blue-200 border-blue-400 border-2': history.location.pathname.endsWith(
5554
item.id.substr(0, 7),
5655
),

‎web/yarn.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -3491,12 +3491,12 @@ axe-core@^4.0.2:
34913491
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.0.2.tgz#c7cf7378378a51fcd272d3c09668002a4990b1cb"
34923492
integrity sha512-arU1h31OGFu+LPrOLGZ7nB45v940NMDMEJeNmbutu57P+UFDVnkZg3e+J1I2HJRZ9hT7gO8J91dn/PMrAiKakA==
34933493

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

35013501
axobject-query@^2.2.0:
35023502
version "2.2.0"
@@ -6128,7 +6128,7 @@ flush-write-stream@^1.0.0:
61286128
inherits "^2.0.3"
61296129
readable-stream "^2.3.6"
61306130

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

0 commit comments

Comments
 (0)