mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
dependencies: bump (minor)
This commit is contained in:
2
.babelrc
2
.babelrc
@@ -7,8 +7,6 @@
|
||||
"plugins": [
|
||||
["@babel/plugin-proposal-decorators", {"legacy": true}],
|
||||
["@babel/plugin-proposal-class-properties", {"loose": false}],
|
||||
"@babel/proposal-object-rest-spread",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
"@emotion/babel-plugin"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -17,6 +17,12 @@
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"import/no-anonymous-default-export": [
|
||||
"error",
|
||||
{
|
||||
"allowNew": true
|
||||
}
|
||||
],
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
|
||||
@@ -52,6 +52,6 @@ export function compute(bytes: number, precision = 2): {value: number; unit: Uni
|
||||
};
|
||||
}
|
||||
|
||||
export function getTranslationString(unit: Unit): typeof UNIT_TO_STRING_ID[Unit] {
|
||||
export function getTranslationString(unit: Unit): (typeof UNIT_TO_STRING_ID)[Unit] {
|
||||
return UNIT_TO_STRING_ID[unit] || UNIT_TO_STRING_ID.B;
|
||||
}
|
||||
|
||||
18732
package-lock.json
generated
18732
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
142
package.json
142
package.json
@@ -64,26 +64,26 @@
|
||||
"test:client": "FLOOD_OPTION_port=4200 start-server-and-test start 4200 'cypress run'"
|
||||
},
|
||||
"dependencies": {
|
||||
"geoip-country": "^4.1.21"
|
||||
"geoip-country": "^4.1.60"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.19.0",
|
||||
"@babel/eslint-parser": "^7.18.9",
|
||||
"@babel/core": "^7.22.5",
|
||||
"@babel/eslint-parser": "^7.22.5",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-decorators": "^7.19.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
||||
"@babel/preset-env": "^7.19.0",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@babel/preset-typescript": "^7.18.6",
|
||||
"@dnd-kit/core": "^6.0.5",
|
||||
"@dnd-kit/modifiers": "^6.0.0",
|
||||
"@dnd-kit/sortable": "^7.0.1",
|
||||
"@emotion/babel-plugin": "^11.10.2",
|
||||
"@emotion/css": "^11.10.0",
|
||||
"@emotion/react": "^11.10.4",
|
||||
"@lingui/loader": "^3.14.0",
|
||||
"@lingui/react": "^3.14.0",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
||||
"@babel/plugin-proposal-decorators": "^7.22.5",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
||||
"@babel/preset-env": "^7.22.5",
|
||||
"@babel/preset-react": "^7.22.5",
|
||||
"@babel/preset-typescript": "^7.22.5",
|
||||
"@dnd-kit/core": "^6.0.8",
|
||||
"@dnd-kit/modifiers": "^6.0.1",
|
||||
"@dnd-kit/sortable": "^7.0.2",
|
||||
"@emotion/babel-plugin": "^11.11.0",
|
||||
"@emotion/css": "^11.11.0",
|
||||
"@emotion/react": "^11.11.1",
|
||||
"@lingui/loader": "^3.17.2",
|
||||
"@lingui/react": "^3.17.2",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
||||
"@seald-io/nedb": "^3.1.0",
|
||||
"@types/bencode": "^2.0.1",
|
||||
"@types/body-parser": "^1.19.2",
|
||||
@@ -92,63 +92,63 @@
|
||||
"@types/cookie-parser": "^1.4.3",
|
||||
"@types/create-torrent": "^5.0.0",
|
||||
"@types/d3": "^7.4.0",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/debug": "^4.1.8",
|
||||
"@types/express": "^4.17.17",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/geoip-country": "^4.0.0",
|
||||
"@types/http-errors": "^1.8.2",
|
||||
"@types/jest": "^28.1.8",
|
||||
"@types/jsonwebtoken": "^8.5.9",
|
||||
"@types/lodash": "^4.14.185",
|
||||
"@types/morgan": "^1.9.3",
|
||||
"@types/lodash": "^4.14.195",
|
||||
"@types/morgan": "^1.9.4",
|
||||
"@types/node": "^12.20.55",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"@types/parse-torrent": "^5.8.4",
|
||||
"@types/passport": "^1.0.11",
|
||||
"@types/passport-jwt": "^3.0.6",
|
||||
"@types/react": "^18.0.19",
|
||||
"@types/react-dom": "^18.0.6",
|
||||
"@types/passport": "^1.0.12",
|
||||
"@types/passport-jwt": "^3.0.8",
|
||||
"@types/react": "^18.2.11",
|
||||
"@types/react-dom": "^18.2.4",
|
||||
"@types/react-measure": "^2.0.8",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-transition-group": "^4.4.5",
|
||||
"@types/react-transition-group": "^4.4.6",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@types/supertest": "^2.0.12",
|
||||
"@types/tar-fs": "^2.0.1",
|
||||
"@types/yargs": "^17.0.12",
|
||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
||||
"@typescript-eslint/parser": "^5.37.0",
|
||||
"@types/yargs": "^17.0.24",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
||||
"@typescript-eslint/parser": "^5.59.9",
|
||||
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
|
||||
"autoprefixer": "^10.4.9",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"axios": "^0.27.2",
|
||||
"axios-mock-adapter": "^1.21.2",
|
||||
"babel-loader": "^8.2.5",
|
||||
"axios-mock-adapter": "^1.21.4",
|
||||
"babel-loader": "^8.3.0",
|
||||
"bencode": "^2.0.3",
|
||||
"body-parser": "^1.20.0",
|
||||
"body-parser": "^1.20.2",
|
||||
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
||||
"chalk": "^4.1.2",
|
||||
"classnames": "^2.3.1",
|
||||
"classnames": "^2.3.2",
|
||||
"compression": "^1.7.4",
|
||||
"content-disposition": "^0.5.4",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"create-torrent": "^5.0.6",
|
||||
"css-loader": "^6.7.1",
|
||||
"css-minimizer-webpack-plugin": "^4.1.0",
|
||||
"d3-array": "^3.2.0",
|
||||
"create-torrent": "^5.0.9",
|
||||
"css-loader": "^6.8.1",
|
||||
"css-minimizer-webpack-plugin": "^4.2.2",
|
||||
"d3-array": "^3.2.4",
|
||||
"d3-scale": "^4.0.2",
|
||||
"d3-selection": "^3.0.0",
|
||||
"d3-shape": "^3.1.0",
|
||||
"d3-shape": "^3.2.0",
|
||||
"debug": "^4.3.4",
|
||||
"eslint": "^8.23.1",
|
||||
"eslint": "^8.42.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"eslint-import-resolver-webpack": "^0.13.2",
|
||||
"eslint-webpack-plugin": "^3.2.0",
|
||||
"express": "^4.18.1",
|
||||
"express-rate-limit": "^6.6.0",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^6.7.0",
|
||||
"fast-json-patch": "^3.1.1",
|
||||
"fast-sort": "^3.2.0",
|
||||
"fast-sort": "^3.4.0",
|
||||
"feedsub": "^0.7.8",
|
||||
"file-loader": "^6.2.0",
|
||||
"form-data": "^4.0.0",
|
||||
@@ -156,60 +156,60 @@
|
||||
"fs-extra": "^10.1.0",
|
||||
"get-user-locale": "^1.5.1",
|
||||
"hash-wasm": "^4.9.0",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
"html-webpack-plugin": "^5.5.3",
|
||||
"http-errors": "^2.0.0",
|
||||
"jest": "^28.1.3",
|
||||
"js-file-download": "^0.4.12",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"lodash": "^4.17.21",
|
||||
"mini-css-extract-plugin": "^2.6.1",
|
||||
"mobx": "^6.6.2",
|
||||
"mobx-react": "^7.5.3",
|
||||
"mini-css-extract-plugin": "^2.7.6",
|
||||
"mobx": "^6.9.0",
|
||||
"mobx-react": "^7.6.0",
|
||||
"morgan": "^1.10.0",
|
||||
"overlayscrollbars": "^1.13.3",
|
||||
"overlayscrollbars-react": "^0.3.0",
|
||||
"parse-torrent": "^9.1.5",
|
||||
"passport": "^0.6.0",
|
||||
"passport-jwt": "^4.0.0",
|
||||
"passport-jwt": "^4.0.1",
|
||||
"polished": "^4.2.2",
|
||||
"postcss": "^8.4.16",
|
||||
"postcss-loader": "^7.0.1",
|
||||
"prettier": "^2.7.1",
|
||||
"promise": "^8.2.0",
|
||||
"postcss": "^8.4.24",
|
||||
"postcss-loader": "^7.3.3",
|
||||
"prettier": "^2.8.8",
|
||||
"promise": "^8.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dev-utils": "^12.0.1",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-dropzone": "^14.2.2",
|
||||
"react-dropzone": "^14.2.3",
|
||||
"react-measure": "^2.5.2",
|
||||
"react-refresh": "^0.14.0",
|
||||
"react-router": "^6.3.0",
|
||||
"react-router-dom": "^6.3.0",
|
||||
"react-router": "^6.12.1",
|
||||
"react-router-dom": "^6.12.1",
|
||||
"react-transition-group": "^4.4.5",
|
||||
"react-use": "^17.4.0",
|
||||
"react-window": "^1.8.7",
|
||||
"react-window": "^1.8.9",
|
||||
"ress": "^4.0.0",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"sass": "^1.54.9",
|
||||
"sass-loader": "^13.0.2",
|
||||
"sass": "^1.63.3",
|
||||
"sass-loader": "^13.3.2",
|
||||
"saxen": "^8.1.2",
|
||||
"source-map-loader": "^4.0.0",
|
||||
"style-loader": "^3.3.1",
|
||||
"supertest": "^6.2.4",
|
||||
"source-map-loader": "^4.0.1",
|
||||
"style-loader": "^3.3.3",
|
||||
"supertest": "^6.3.3",
|
||||
"tar-fs": "^2.1.1",
|
||||
"terser-webpack-plugin": "^5.3.6",
|
||||
"tldts": "^5.7.91",
|
||||
"terser-webpack-plugin": "^5.3.9",
|
||||
"tldts": "^5.7.112",
|
||||
"ts-jest": "^28.0.8",
|
||||
"ts-loader": "^9.3.1",
|
||||
"ts-loader": "^9.4.3",
|
||||
"ts-node-dev": "^2.0.0",
|
||||
"tsconfig-paths": "^4.1.0",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"typed-emitter": "^2.1.0",
|
||||
"typescript": "~4.8.3",
|
||||
"webpack": "^5.74.0",
|
||||
"webpack-dev-server": "^4.11.0",
|
||||
"typescript": "~4.9.5",
|
||||
"webpack": "^5.86.0",
|
||||
"webpack-dev-server": "^4.15.1",
|
||||
"webpack-shebang-plugin": "^1.1.8",
|
||||
"webpackbar": "^5.0.2",
|
||||
"yargs": "^17.5.1",
|
||||
"zod": "^3.19.1"
|
||||
"yargs": "^17.7.2",
|
||||
"zod": "^3.21.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0",
|
||||
|
||||
@@ -106,7 +106,7 @@ router.use('/register', (req, res, next) => {
|
||||
next();
|
||||
},
|
||||
handleSubsequentUser: () => {
|
||||
passport.authenticate('jwt', {session: false}, (err, user: UserInDatabase) => {
|
||||
passport.authenticate('jwt', {session: false}, (err: unknown, user: UserInDatabase) => {
|
||||
if (err || !user) {
|
||||
return res.status(401).send('Unauthorized');
|
||||
}
|
||||
@@ -193,7 +193,7 @@ router.use('/verify', (req, res, next) => {
|
||||
res.json(response);
|
||||
},
|
||||
handleSubsequentUser: () => {
|
||||
passport.authenticate('jwt', {session: false}, (err, user: UserInDatabase) => {
|
||||
passport.authenticate('jwt', {session: false}, (err: unknown, user: UserInDatabase) => {
|
||||
if (err || !user) {
|
||||
res.status(401).json({
|
||||
configs: preloadConfigs,
|
||||
|
||||
@@ -39,7 +39,7 @@ const spawnAsync = (cmd: string, args: string[], options: SpawnOptions, maxBuffe
|
||||
});
|
||||
|
||||
const PLATFORMS_SUPPORTED = ['darwin', 'linux', 'freebsd', 'win32'] as const;
|
||||
export type SupportedPlatform = Extract<NodeJS.Platform, typeof PLATFORMS_SUPPORTED[number]>;
|
||||
export type SupportedPlatform = Extract<NodeJS.Platform, (typeof PLATFORMS_SUPPORTED)[number]>;
|
||||
|
||||
export const isPlatformSupported = (): boolean => {
|
||||
return PLATFORMS_SUPPORTED.includes(process.platform as SupportedPlatform);
|
||||
|
||||
@@ -9,5 +9,5 @@ const torrentStatusMap = [
|
||||
'error',
|
||||
] as const;
|
||||
|
||||
export type TorrentStatus = typeof torrentStatusMap[number];
|
||||
export type TorrentStatus = (typeof torrentStatusMap)[number];
|
||||
export default torrentStatusMap;
|
||||
|
||||
Reference in New Issue
Block a user