dependencies: bump (major)

This commit is contained in:
Jesse Chan
2021-04-18 18:40:08 +08:00
parent eeba7f7fc0
commit 6f957480d0
7 changed files with 402 additions and 403 deletions

View File

@@ -87,6 +87,11 @@ module.exports = {
name: 'static/media/[name].[hash:8].[ext]',
},
},
// https://github.com/lingui/js-lingui/issues/1048
{
resourceQuery: /raw-lingui/,
type: 'javascript/auto',
},
],
},
entry: paths.appIndex,

View File

@@ -105,6 +105,11 @@ module.exports = {
name: 'static/media/[name].[hash:8].[ext]',
},
},
// https://github.com/lingui/js-lingui/issues/1048
{
resourceQuery: /raw-lingui/,
type: 'javascript/auto',
},
],
},
entry: paths.appIndex,

View File

@@ -12,7 +12,7 @@ import type {Language} from '@client/constants/Languages';
import type {LocaleConfig} from '@client/util/detectLocale';
// eslint-disable-next-line import/no-webpack-loader-syntax
import {messages as EN} from '@lingui/loader!./strings/en.json';
import {messages as EN} from '@lingui/loader!./strings/en.json?raw-lingui';
const messagesCache: Partial<Record<Exclude<Language, 'auto'>, Record<string, string[]>>> = {en: EN};
@@ -23,7 +23,7 @@ i18n.activate('en');
async function loadMessages(locale: Exclude<Language, 'auto'>) {
const {messages} = await import(
/* webpackChunkName: 'i18n' */
`@lingui/loader!./strings/${locale}.json`
`@lingui/loader!./strings/${locale}.json?raw-lingui`
);
messagesCache[locale] = messages;

View File

@@ -4,6 +4,6 @@ declare module '*.md' {
export default value;
}
declare module '@lingui/loader!*.json' {
declare module '@lingui/loader!*.json?raw-lingui' {
export const messages: Record<string, string[]>;
}

View File

@@ -3,7 +3,7 @@ import crypto from 'crypto';
import fs from 'fs';
import os from 'os';
import path from 'path';
import yargs from 'yargs';
import yargs from 'yargs/yargs';
import {configSchema} from '@shared/schema/Config';
@@ -12,7 +12,7 @@ import type {ClientConnectionSettings} from '@shared/schema/ClientConnectionSett
import {version} from './package.json';
const {argv} = yargs
const {argv} = yargs()
.env('FLOOD_OPTION_')
.option('baseuri', {
default: '/',

753
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -65,10 +65,10 @@
"test:client": "FLOOD_OPTION_port=4200 start-server-and-test start 4200 'cypress run'"
},
"dependencies": {
"geoip-country": "^4.0.64"
"geoip-country": "^4.0.65"
},
"devDependencies": {
"@babel/core": "^7.13.15",
"@babel/core": "^7.13.16",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.13.15",
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
@@ -78,12 +78,12 @@
"@emotion/babel-plugin": "^11.3.0",
"@emotion/css": "^11.1.3",
"@emotion/react": "^11.1.5",
"@lingui/loader": "^3.8.9",
"@lingui/react": "^3.8.9",
"@lingui/loader": "^3.8.10",
"@lingui/react": "^3.8.10",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@types/bencode": "^2.0.0",
"@types/body-parser": "^1.19.0",
"@types/classnames": "^2.2.11",
"@types/classnames": "^2.3.0",
"@types/compression": "^1.7.0",
"@types/content-disposition": "^0.5.3",
"@types/cookie-parser": "^1.4.2",
@@ -100,7 +100,7 @@
"@types/lodash": "^4.14.168",
"@types/morgan": "^1.9.2",
"@types/nedb": "^1.8.11",
"@types/node": "^12.20.9",
"@types/node": "^12.20.10",
"@types/overlayscrollbars": "^1.12.0",
"@types/parse-torrent": "^5.8.3",
"@types/passport": "^1.0.6",
@@ -117,7 +117,7 @@
"@types/tar-stream": "^2.2.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@vercel/ncc": "^0.27.0",
"@vercel/ncc": "^0.28.3",
"autoprefixer": "^10.2.5",
"axios": "^0.21.1",
"babel-eslint": "^10.1.0",
@@ -125,13 +125,13 @@
"bencode": "^2.0.1",
"body-parser": "^1.19.0",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"chalk": "^4.1.0",
"chalk": "^4.1.1",
"classnames": "^2.3.1",
"compression": "^1.7.4",
"content-disposition": "^0.5.3",
"cookie-parser": "^1.4.5",
"create-torrent": "^4.7.0",
"css-loader": "^5.2.1",
"css-loader": "^5.2.4",
"css-minimizer-webpack-plugin": "^2.0.0",
"d3-array": "^2.12.1",
"d3-scale": "^3.3.0",
@@ -144,13 +144,13 @@
"eslint-config-prettier": "^8.2.0",
"eslint-config-react-app": "^6.0.0",
"eslint-import-resolver-webpack": "^0.13.0",
"eslint-plugin-flowtype": "5.7.0",
"eslint-plugin-flowtype": "5.7.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.5",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^2.5.3",
"eslint-webpack-plugin": "^2.5.4",
"express": "^4.17.1",
"express-rate-limit": "^5.2.6",
"fast-json-patch": "^3.0.0-1",
@@ -168,7 +168,7 @@
"js-file-download": "^0.4.12",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^1.4.1",
"mini-css-extract-plugin": "^1.5.0",
"mobx": "^6.2.0",
"mobx-react": "^7.1.0",
"morgan": "^1.10.0",
@@ -201,9 +201,9 @@
"react-transition-group": "^4.4.1",
"react-use": "^17.2.3",
"react-window": "^1.8.6",
"ress": "^3.0.0",
"ress": "^4.0.0",
"sanitize-filename": "^1.6.3",
"sass": "^1.32.8",
"sass": "^1.32.11",
"sass-loader": "^11.0.1",
"saxen": "^8.1.2",
"source-map-loader": "^2.0.1",
@@ -213,7 +213,7 @@
"tar-fs": "^2.1.1",
"tar-stream": "^2.2.0",
"terser-webpack-plugin": "^5.1.1",
"tldts": "^5.7.25",
"tldts": "^5.7.27",
"ts-jest": "^26.5.5",
"ts-node-dev": "^1.1.6",
"tsconfig-paths": "^3.9.0",
@@ -221,7 +221,7 @@
"typescript": "^4.2.4",
"url-loader": "^4.1.1",
"use-query-params": "^1.2.2",
"webpack": "^5.33.2",
"webpack": "^5.35.0",
"webpack-dev-server": "^4.0.0-beta.0",
"webpackbar": "^5.0.0-3",
"yargs": "^16.2.0",