Skip to content

Commit c02659f

Browse files
authored
Merge pull request #2916 from RedisInsight/be/bugfix/dependabot-fixes-2023-11
Dependabot fixes
2 parents 02b856d + 7e13135 commit c02659f

File tree

11 files changed

+315
-679
lines changed

11 files changed

+315
-679
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@
117117
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
118118
"@svgr/webpack": "^8.1.0",
119119
"@teamsupercell/typings-for-css-modules-loader": "^2.4.0",
120-
"@testing-library/jest-dom": "^5.16.4",
120+
"@testing-library/jest-dom": "^6.2.0",
121121
"@testing-library/react": "^13.3.0",
122122
"@testing-library/user-event": "^14.4.3",
123-
"@types/axios": "^0.14.0",
124123
"@types/classnames": "^2.2.11",
125124
"@types/d3": "^7.4.0",
126125
"@types/date-fns": "^2.6.0",
@@ -240,7 +239,7 @@
240239
"@elastic/eui": "34.6.0",
241240
"@reduxjs/toolkit": "^1.6.2",
242241
"@stablelib/snappy": "^1.0.2",
243-
"axios": "^0.25.0",
242+
"axios": "^1.6.0",
244243
"brotli-unicode": "^1.0.2",
245244
"buffer": "^6.0.3",
246245
"classnames": "^2.3.1",
@@ -263,7 +262,7 @@
263262
"jsonpath": "^1.1.1",
264263
"lodash": "^4.17.21",
265264
"lz4js": "^0.2.0",
266-
"msgpackr": "^1.9.7",
265+
"msgpackr": "^1.10.1",
267266
"pako": "^2.1.0",
268267
"php-serialize": "^4.0.2",
269268
"pickleparser": "^0.2.1",

redisinsight/api/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@okta/okta-auth-js": "^7.3.0",
5959
"adm-zip": "^0.5.9",
6060
"analytics-node": "^4.0.1",
61-
"axios": "^0.25.0",
61+
"axios": "^1.6.0",
6262
"body-parser": "^1.19.0",
6363
"busboy": "^1.6.0",
6464
"class-transformer": "^0.2.3",
@@ -158,7 +158,8 @@
158158
"moduleNameMapper": {
159159
"src/(.*)": "<rootDir>/$1",
160160
"apiSrc/(.*)": "<rootDir>/$1",
161-
"tests/(.*)": "<rootDir>/__tests__/$1"
161+
"tests/(.*)": "<rootDir>/__tests__/$1",
162+
"axios": "axios/dist/node/axios.cjs"
162163
}
163164
}
164165
}

redisinsight/api/src/modules/cloud/common/exceptions/cloud-api.error.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const wrapCloudApiError = (error: AxiosError, message?: string): HttpExce
1616
const { response } = error;
1717

1818
if (response) {
19-
const errorOptions = { cause: response?.data };
19+
const errorOptions = { cause: new Error(response?.data as string) };
2020
switch (response?.status) {
2121
case 401:
2222
return new CloudApiUnauthorizedException(message, errorOptions);

redisinsight/api/src/modules/cloud/common/exceptions/cloud-capi.error.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const wrapCloudCapiError = (error: AxiosError, message?: string): HttpExc
99
}
1010

1111
if (error.response?.status === 401) {
12-
return new CloudCapiUnauthorizedException(message, { cause: error.response?.data });
12+
return new CloudCapiUnauthorizedException(message, { cause: new Error(error.response?.data as string) });
1313
}
1414

1515
return wrapCloudApiError(error, message);

redisinsight/api/yarn.lock

Lines changed: 144 additions & 292 deletions
Large diffs are not rendered by default.

redisinsight/ui/src/services/apiService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const apiPrefix = process.env.RI_API_PREFIX
1010
const isDevelopment = process.env.NODE_ENV === 'development'
1111
const isWebApp = process.env.RI_APP_TYPE === 'web'
1212

13-
axios.defaults.adapter = require('axios/lib/adapters/http')
14-
1513
const axiosInstance = axios.create({
1614
baseURL:
1715
!isDevelopment && isWebApp

redisinsight/ui/src/services/resourcesService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const isDevelopment = process.env.NODE_ENV === 'development'
77
const isWebApp = process.env.RI_APP_TYPE === 'web'
88

99
export const RESOURCES_BASE_URL = !isDevelopment && isWebApp ? '/' : `${baseApiUrl}:${apiPort}/`
10-
axios.defaults.adapter = require('axios/lib/adapters/http')
1110

1211
const resourcesService = axios.create({
1312
baseURL: RESOURCES_BASE_URL,

redisinsight/ui/src/setup-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@testing-library/jest-dom/extend-expect'
1+
import '@testing-library/jest-dom'
22
import 'whatwg-fetch'
33

44
import { mswServer } from 'uiSrc/mocks/server'

tests/e2e/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
},
3535
"devDependencies": {
3636
"@types/archiver": "^5.3.2",
37-
"@types/axios": "^0.14.0",
3837
"@types/chance": "1.1.3",
3938
"@types/edit-json-file": "1.7.0",
4039
"@types/fs-extra": "9.0.11",
@@ -43,7 +42,7 @@
4342
"@typescript-eslint/eslint-plugin": "4.28.2",
4443
"@typescript-eslint/parser": "4.28.2",
4544
"archiver": "^5.3.1",
46-
"axios": "^0.25.0",
45+
"axios": "^1.6.0",
4746
"chance": "1.1.8",
4847
"cross-env": "^7.0.3",
4948
"dotenv-cli": "^5.0.0",

0 commit comments

Comments
 (0)