Skip to content

Commit 5327738

Browse files
authored
[dashboard] Update axios to ^1.18.0 (ray-project#65130)
## Description Re-opening of ray-project#63640 since GitHub closed it due to a force-push base change. Regenerated the `package-lock.json` using Node 14.21.3 as requested by @sampan-s-nayak. Bumped axios to `^1.18.0` to fully address GHSA-gcfj-64vw-6mp9. ## Related issues Closes ray-project#63640 ## Additional information Signed-off-by: RinZ27 <222222878+RinZ27@users.noreply.github.com> --- *Note: This is a replacement for PR ray-project#65106 which was automatically closed due to a git history issue.* Signed-off-by: RinZ27 <222222878+RinZ27@users.noreply.github.com>
1 parent 0243232 commit 5327738

3 files changed

Lines changed: 153 additions & 7 deletions

File tree

python/ray/dashboard/client/package-lock.json

Lines changed: 150 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/ray/dashboard/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@types/node": "13.9.5",
1414
"@types/react-redux": "^7.1.7",
1515
"@types/react-window": "^1.8.2",
16-
"axios": "^0.21.1",
16+
"axios": "~1.18.1",
1717
"copy-to-clipboard": "^3.3.2",
1818
"dayjs": "^1.9.4",
1919
"js-yaml": "^4.1.0",

python/ray/dashboard/client/src/service/requestHandlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* arises.
99
*/
1010

11-
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
11+
import { AxiosRequestConfig, AxiosResponse, create } from "axios";
1212
import { AUTHENTICATION_ERROR_EVENT } from "../authentication/constants";
1313
import { DASHBOARD_DATA_LOADED_EVENT } from "../common/constants";
1414

@@ -29,7 +29,7 @@ export const formatUrl = (url: string): string => {
2929
};
3030

3131
// Create axios instance with interceptors for authentication
32-
const axiosInstance = axios.create();
32+
const axiosInstance = create();
3333

3434
// Export the configured axios instance for direct use when needed
3535
export { axiosInstance };

0 commit comments

Comments
 (0)