Skip to content

Commit

Permalink
fix: update axios to fix security issue (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine authored Nov 27, 2023
1 parent 6d12216 commit b14203d
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 45 deletions.
6 changes: 3 additions & 3 deletions ui/packages/clinic-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.27.2"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.5.1",
"esm": "^3.2.25",
"gulp": "^4.0.2",
"gulp-shell": "^0.8.0",
"typescript": "^4.7.3"
},
"dependencies": {
"axios": "^1.6.2"
}
}
6 changes: 3 additions & 3 deletions ui/packages/tidb-dashboard-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.27.2"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.5.1",
"esm": "^3.2.25",
"gulp": "^4.0.2",
"gulp-shell": "^0.8.0",
"typescript": "^4.7.3"
},
"dependencies": {
"axios": "^1.6.2"
}
}
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-clinic-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@pingcap/tidb-dashboard-lib": "workspace:^1.0.0",
"ahooks": "^3.1.9",
"antd": "^4.18.7",
"axios": "^0.27.2",
"axios": "^1.6.2",
"bulma": "^0.9.4",
"classnames": "^2.3.1",
"compare-versions": "^5.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DataSource implements ISlowQueryDataSource {
statusText: 'ok',
headers: {},
config: {}
})
} as any)
} else {
return client.getInstance().slowQueryDetailGet(
{
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-clinic-op/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@pingcap/clinic-client": "workspace:^1.0.0",
"@pingcap/tidb-dashboard-lib": "workspace:^1.0.0",
"antd": "^4.18.7",
"axios": "^0.27.2",
"axios": "^1.6.2",
"i18next": "^23.2.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DataSource implements ISlowQueryDataSource {
statusText: 'ok',
headers: {},
config: {}
})
} as any)
}

slowQueryAvailableFieldsGet(options?: ReqConfig) {
Expand All @@ -38,7 +38,7 @@ class DataSource implements ISlowQueryDataSource {
statusText: 'ok',
headers: {},
config: {}
})
} as any)
}

slowQueryListGet(
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-dbaas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@pingcap/tidb-dashboard-client": "workspace:^1.0.0",
"@pingcap/tidb-dashboard-lib": "workspace:^1.0.0",
"antd": "^4.18.7",
"axios": "^0.27.2",
"axios": "^1.6.2",
"compare-versions": "^5.0.1",
"i18next": "^23.2.9",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-op/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@pingcap/tidb-dashboard-lib": "workspace:^1.0.0",
"ahooks": "^3.1.9",
"antd": "^4.18.7",
"axios": "^0.27.2",
"axios": "^1.6.2",
"bulma": "^0.9.4",
"classnames": "^2.3.1",
"compare-versions": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ace-builds": "^1.6.0",
"ahooks": "^3.1.9",
"antd": "^4.18.7",
"axios": "^0.27.2",
"axios": "^1.6.2",
"classnames": "^2.3.1",
"d3": "^5.16.0",
"d3-flextree": "2.1.2",
Expand Down
56 changes: 25 additions & 31 deletions ui/pnpm-lock.yaml

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

0 comments on commit b14203d

Please sign in to comment.