Remove axios and detox from package.json in the root folder (#8219)

* Remove axios and detox from package.json in the root folder

* fix ts
This commit is contained in:
Elias Nahum 2024-09-16 10:51:43 +08:00 committed by GitHub
parent 991cecdeb3
commit c0f3cff531
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 780 additions and 1699 deletions

View file

@ -12,7 +12,7 @@ export const getCookiesFromConfig = (config: AxiosRequestConfig<any>) => {
let mmAuthToken = '';
let mmUserId = '';
let mmCsrf = '';
config.jar?.toJSON().cookies.forEach((cookie: any) => {
config.jar?.toJSON()?.cookies.forEach((cookie: any) => {
if (cookie.key === 'MMAUTHTOKEN') {
mmAuthToken = cookie.value;
} else if (cookie.key === 'MMUSERID') {

1505
detox/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,24 +4,24 @@
"repository": "git@github.com:mattermost/mattermost-mobile.git",
"author": "Mattermost, Inc.",
"devDependencies": {
"@aws-sdk/client-s3": "3.624.0",
"@aws-sdk/lib-storage": "3.624.0",
"@aws-sdk/client-s3": "3.650.0",
"@aws-sdk/lib-storage": "3.650.0",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-modules-commonjs": "7.24.8",
"@babel/plugin-transform-runtime": "7.24.7",
"@babel/preset-env": "7.25.3",
"@babel/plugin-transform-runtime": "7.25.4",
"@babel/preset-env": "7.25.4",
"@jest/test-sequencer": "29.7.0",
"@types/jest": "29.5.12",
"@types/tough-cookie": "4.0.5",
"@types/uuid": "10.0.0",
"async": "3.2.5",
"axios": "1.7.3",
"async": "3.2.6",
"axios": "1.7.7",
"axios-cookiejar-support": "5.0.2",
"babel-jest": "29.7.0",
"babel-plugin-module-resolver": "5.0.2",
"client-oauth2": "4.3.3",
"deepmerge": "4.3.1",
"detox": "20.25.2",
"detox": "20.26.2",
"form-data": "4.0.0",
"jest": "29.7.0",
"jest-circus": "29.7.0",
@ -34,10 +34,10 @@
"recursive-readdir": "2.2.3",
"sanitize-filename": "1.6.3",
"shelljs": "0.8.5",
"tough-cookie": "4.1.4",
"ts-jest": "29.2.4",
"tslib": "2.6.3",
"typescript": "5.5.4",
"tough-cookie": "5.0.0",
"ts-jest": "29.2.5",
"tslib": "2.7.0",
"typescript": "5.6.2",
"uuid": "10.0.0",
"xml2js": "0.6.2"
},

947
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -140,12 +140,9 @@
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "7.13.1",
"@typescript-eslint/parser": "7.13.1",
"axios": "1.7.5",
"axios-cookiejar-support": "5.0.2",
"babel-jest": "29.7.0",
"babel-loader": "9.1.3",
"babel-plugin-module-resolver": "5.0.2",
"detox": "20.25.2",
"eslint": "8.57.0",
"eslint-plugin-header": "3.1.1",
"eslint-plugin-import": "2.29.1",