Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: RN-1112: bump axios to ≥0.28 #5493

Merged
merged 11 commits into from
Apr 11, 2024
2 changes: 1 addition & 1 deletion packages/admin-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@tupaia/ui-components": "workspace:*",
"@tupaia/utils": "workspace:*",
"ace-builds": "^1.10.1",
"axios": "^0.21.1",
"axios": "^1.6.8",
"case": "^1.5.3",
"content-disposition-header": "^0.6.0",
"date-fns": "^2.29.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/datatrak-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@tupaia/ui-components": "workspace:*",
"@tupaia/ui-map-components": "workspace:*",
"@tupaia/utils": "workspace:*",
"axios": "^1.4.0",
"axios": "^1.6.8",
"bson-objectid": "^1.2.2",
"downloadjs": "1.4.7",
"leaflet": "^1.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/lesmis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@tupaia/ui-components": "workspace:*",
"@tupaia/ui-map-components": "workspace:*",
"@tupaia/utils": "workspace:*",
"axios": "^0.21.1",
"axios": "^1.6.8",
"camelcase": "^6.2.0",
"dom-to-image": "^2.6.0",
"downloadjs": "^1.4.7",
Expand Down
6 changes: 6 additions & 0 deletions packages/psss/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ const baseConfig = require('../../jest.config-js.json');
module.exports = async () => ({
...baseConfig,
rootDir: '.',
/**
* Since 1.0.0, Axios switched from emitting a CommonJS module to ECMAScript, which causes errors
* with Jest. This is a workaround.
* @see https://github.com/axios/axios/issues/5026
*/
transformIgnorePatterns: ['node_modules/(?!axios)'],
});
2 changes: 1 addition & 1 deletion packages/psss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@material-ui/styles": "^4.9.10",
"@tupaia/ui-components": "workspace:*",
"@tupaia/utils": "workspace:*",
"axios": "^0.21.0",
"axios": "^1.6.8",
"date-fns": "^2.16.1",
"faker": "^4.1.0",
"history": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/tupaia-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@tupaia/ui-components": "workspace:*",
"@tupaia/ui-map-components": "workspace:*",
"@tupaia/utils": "workspace:*",
"axios": "^1.4.0",
"axios": "^1.6.8",
"dom-to-image": "2.6.0",
"downloadjs": "1.4.7",
"moment": "^2.24.0",
Expand Down
37 changes: 14 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11720,7 +11720,7 @@ __metadata:
"@tupaia/ui-components": "workspace:*"
"@tupaia/utils": "workspace:*"
ace-builds: ^1.10.1
axios: ^0.21.1
axios: ^1.6.8
case: ^1.5.3
content-disposition-header: ^0.6.0
date-fns: ^2.29.2
Expand Down Expand Up @@ -12033,7 +12033,7 @@ __metadata:
"@types/material-ui": ^0.21.12
"@types/react": 16.8.6
"@vitejs/plugin-react": ^4.0.0
axios: ^1.4.0
axios: ^1.6.8
bson-objectid: ^1.2.2
downloadjs: 1.4.7
leaflet: ^1.7.1
Expand Down Expand Up @@ -12191,7 +12191,7 @@ __metadata:
"@tupaia/ui-components": "workspace:*"
"@tupaia/ui-map-components": "workspace:*"
"@tupaia/utils": "workspace:*"
axios: ^0.21.1
axios: ^1.6.8
camelcase: ^6.2.0
dom-to-image: ^2.6.0
downloadjs: ^1.4.7
Expand Down Expand Up @@ -12346,7 +12346,7 @@ __metadata:
"@tupaia/database": "workspace:*"
"@tupaia/ui-components": "workspace:*"
"@tupaia/utils": "workspace:*"
axios: ^0.21.0
axios: ^1.6.8
cross-env: ^7.0.2
date-fns: ^2.16.1
faker: ^4.1.0
Expand Down Expand Up @@ -12540,7 +12540,7 @@ __metadata:
"@types/material-ui": ^0.21.12
"@types/react": 16.8.6
"@vitejs/plugin-react": ^4.0.0
axios: ^1.4.0
axios: ^1.6.8
dom-to-image: 2.6.0
downloadjs: 1.4.7
moment: ^2.24.0
Expand Down Expand Up @@ -16134,23 +16134,14 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^0.21.1":
version: 0.21.1
resolution: "axios@npm:0.21.1"
dependencies:
follow-redirects: ^1.10.0
checksum: c87915fa0b18c15c63350112b6b3563a3e2ae524d7707de0a73d2e065e0d30c5d3da8563037bc29d4cc1b7424b5a350cb7274fa52525c6c04a615fe561c6ab11
languageName: node
linkType: hard

"axios@npm:^1.4.0":
version: 1.4.0
resolution: "axios@npm:1.4.0"
"axios@npm:^1.6.8":
version: 1.6.8
resolution: "axios@npm:1.6.8"
dependencies:
follow-redirects: ^1.15.0
follow-redirects: ^1.15.6
form-data: ^4.0.0
proxy-from-env: ^1.1.0
checksum: 7fb6a4313bae7f45e89d62c70a800913c303df653f19eafec88e56cea2e3821066b8409bc68be1930ecca80e861c52aa787659df0ffec6ad4d451c7816b9386b
checksum: bf007fa4b207d102459300698620b3b0873503c6d47bf5a8f6e43c0c64c90035a4f698b55027ca1958f61ab43723df2781c38a99711848d232cad7accbcdfcdd
languageName: node
linkType: hard

Expand Down Expand Up @@ -24072,13 +24063,13 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.0":
version: 1.15.2
resolution: "follow-redirects@npm:1.15.2"
"follow-redirects@npm:^1.15.6":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: faa66059b66358ba65c234c2f2a37fcec029dc22775f35d9ad6abac56003268baf41e55f9ee645957b32c7d9f62baf1f0b906e68267276f54ec4b4c597c2b190
checksum: a62c378dfc8c00f60b9c80cab158ba54e99ba0239a5dd7c81245e5a5b39d10f0c35e249c3379eae719ff0285fff88c365dd446fab19dee771f1d76252df1bbf5
languageName: node
linkType: hard

Expand Down