refactor: trim unecessary server/client deps

This commit is contained in:
zkldi
2022-07-17 20:00:56 +01:00
parent daa73dd29c
commit 2d6e5a8acf
6 changed files with 683 additions and 2461 deletions
+1
View File
@@ -0,0 +1 @@
strict-peer-dependencies=false
+1 -26
View File
@@ -28,29 +28,18 @@
"@babel/core": "7.1.0",
"@fortawesome/fontawesome-free": "5.13.0",
"@material-ui/core": "4.9.14",
"@material-ui/icons": "4.9.1",
"@material-ui/lab": "4.0.0-alpha.53",
"@material-ui/pickers": "3.2.10",
"@material-ui/styles": "4.9.14",
"@nivo/bar": "0.79.1",
"@nivo/core": "0.79.0",
"@nivo/line": "0.79.1",
"@svgr/webpack": "4.3.2",
"@tanem/svg-injector": "8.0.50",
"@types/aes-js": "3.1.1",
"@nivo/tooltip": "0.79.0",
"@types/react-google-recaptcha": "2.1.2",
"apexcharts": "3.19.2",
"babel-loader": "8.0.6",
"babel-plugin-named-asset-import": "0.3.7",
"babel-preset-react-app": "9.1.2",
"bootstrap": "4.6.0",
"case-sensitive-paths-webpack-plugin": "2.2.0",
"crypto-js": "4.1.1",
"css-loader": "2.1.1",
"deepmerge": "4.2.2",
"dotenv": "6.2.0",
"dotenv-expand": "5.1.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"file-loader": "3.0.1",
"formik": "2.2.9",
"fs-extra": "7.0.1",
@@ -62,7 +51,6 @@
"mini-css-extract-plugin": "0.8.0",
"nanoid": "3.1.23",
"optimize-css-assets-webpack-plugin": "5.0.3",
"perfect-scrollbar": "1.5.0",
"pnp-webpack-plugin": "1.5.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
@@ -78,9 +66,7 @@
"react-google-recaptcha": "2.1.0",
"react-hot-toast": "2.0.0",
"react-markdown": "7.0.1",
"react-perfect-scrollbar": "1.5.8",
"react-query": "3.18.1",
"react-router": "5.2.0",
"react-router-dom": "5.1.2",
"resolve": "1.12.0",
"resolve-url-loader": "3.1.0",
@@ -92,20 +78,12 @@
"@types/luxon": "1.27.1",
"@types/react": "17.0.13",
"@types/react-dom": "17.0.8",
"@types/react-router": "5.1.15",
"@types/react-router-dom": "5.1.7",
"@types/react-table": "7.7.2",
"@types/history": "4.7.11",
"copyfiles": "2.1.1",
"esbuild-loader": "2.13.1",
"eslint-plugin-react": "7.14.3",
"eslint-plugin-react-hooks": "1.7.0",
"is-wsl": "1.1.0",
"prettier": "1.19.1",
"react-dev-utils": "9.1.0",
"sass": "1.32.8",
"sass-loader": "7.2.0",
"serve": "11.2.0",
"style-loader": "1.0.0",
"terser-webpack-plugin": "1.4.1",
"ts-pnp": "1.1.4",
@@ -113,11 +91,8 @@
"typescript": "4.3.5",
"url-loader": "2.1.0",
"webpack": "4.41.0",
"webpack-cli": "3.3.11",
"webpack-dev-server": "3.2.1",
"webpack-manifest-plugin": "2.1.1",
"webpack-messages": "2.0.4",
"webpack-rtl-plugin": "2.0.0",
"workbox-webpack-plugin": "4.3.1"
},
"babel": {
+2 -1
View File
@@ -39,7 +39,8 @@
"overrides": {
"@types/mongodb": "3.6.18",
"@types/bson": "1.0.11",
"@types/node": "16.11.7"
"@types/node": "16.11.7",
"@types/express-serve-static-core": "4.17.29"
}
}
}
+672 -2418
View File
File diff suppressed because it is too large Load Diff
+5 -7
View File
@@ -19,29 +19,28 @@
"author": "zkldi",
"license": "AGPL3",
"devDependencies": {
"@types/bcrypt": "5.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/bunyan": "^1.8.8",
"@types/connect-redis": "0.0.18",
"@types/express": "4.17.13",
"@types/express-rate-limit": "5.1.3",
"@types/express-serve-static-core": "4.17.29",
"@types/express-session": "1.17.4",
"@types/mkdirp": "1.0.2",
"@types/mongodb": "3.6.18",
"@types/multer": "1.4.7",
"@types/node-fetch": "2.5.12",
"@types/nodemailer": "^6.4.4",
"@types/range-parser": "1.2.4",
"@types/rate-limit-redis": "1.7.4",
"@types/redis": "2.8.32",
"@types/rimraf": "3.0.2",
"@types/safe-json-stringify": "1.1.2",
"@types/supertest": "2.0.11",
"@types/tap": "15.0.5",
"@types/uuid": "8.3.4",
"express-request-mock": "3.1.0",
"node-mocks-http": "1.11.0",
"prettier": "2.5.1",
"supertest": "6.2.2",
"tap": "15.1.6",
"why-is-node-running": "2.2.1"
"tap": "15.1.6"
},
"dependencies": {
"@aws-sdk/client-s3": "3.49.0",
@@ -54,7 +53,6 @@
"bunyan": "1.8.15",
"commander": "9.0.0",
"connect-redis": "6.1.1",
"csv-parse": "5.0.4",
"deepmerge": "4.2.2",
"dotenv": "16.0.0",
"express": "4.17.2",
+2 -9
View File
@@ -11,6 +11,7 @@ logger.verbose("Instantiated Redis Store", { bootInfo: true });
export const RedisClient = redis.createClient({
url: `redis://${Environment.redisUrl}`,
});
const startConnect = process.hrtime.bigint();
logger.verbose("Instantiated Redis Client", { bootInfo: true });
@@ -35,13 +36,5 @@ RedisClient.on("connect", () => {
});
export function CloseRedisConnection() {
return new Promise((resolve, reject) => {
RedisClient.quit((err, reply) => {
if (err) {
reject(err);
} else {
resolve(reply);
}
});
});
return RedisClient.quit();
}