workspace: upgrade toolchain

This commit is contained in:
undefined committed 2022-08-13 21:19:41 +08:00
1 parent 7df24629dd
commit 267455667f
8 files changed
+42 -35

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@
"moment-timezone": "^0.5.34",
"mongodb": "^3.7.3",
"nanoid": "^4.0.0",
"nodemailer": "^6.7.7",
"nodemailer": "^6.7.8",
"notp": "^2.0.3",
"p-queue": "^7.3.0",
"path-to-regexp": "^6.2.1",
@@ -66,7 +66,7 @@
"@types/mongodb": "^3.6.20",
"@types/nodemailer": "^6.4.5",
"@types/notp": "^2.0.2",
"@types/semver": "^7.3.10",
"@types/semver": "^7.3.12",
"@types/serialize-javascript": "^5.0.2",
"@types/superagent": "^4.1.15",
"moment": "^2.29.4",
+1 -1
View File
@@ -21,7 +21,7 @@ async function get(ctx: Context) {
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="msapplication-TileColor" content="#579e9a">
<meta name="theme-color" content="#56758f">
<link rel="stylesheet" media="all" href="/vj4.css">
<link rel="stylesheet" media="all" href="/default.theme.css">
<title>Setup</title>
</head>
<body>
+2 -2
View File
@@ -233,7 +233,7 @@ export async function getSub<T extends keyof DocType, K extends ArrayKeys<DocTyp
return [doc, null];
}
export async function setSub<T extends keyof DocType, K extends ArrayKeys<DocType[T]>>(
export async function setSub<T extends keyof DocType, K extends string & ArrayKeys<DocType[T]>>(
domainId: string, docType: T, docId: DocType[T]['docId'],
key: K, subId: DocType[T][K][0]['_id'], args: Partial<DocType[T][K][0]>,
): Promise<DocType[T]> {
@@ -367,7 +367,7 @@ export async function incStatus<T extends keyof DocStatusType>(
export async function revPushStatus<T extends keyof DocStatusType>(
domainId: string, docType: T, docId: DocStatusType[T]['docId'], uid: number,
key: ArrayKeys<DocStatusType[T]>, value: any, id = '_id',
key: string & ArrayKeys<DocStatusType[T]>, value: any, id = '_id',
): Promise<DocStatusType[T]> {
let res = await collStatus.findOneAndUpdate(
{ domainId, docType, docId, uid, [`${key}.${id}`]: value[id] },
+12 -12
View File
@@ -10,15 +10,15 @@
"lint": "eslint"
},
"devDependencies": {
"@blueprintjs/core": "^4.7.0",
"@fontsource/dm-mono": "^4.5.8",
"@fontsource/fira-code": "^4.5.10",
"@fontsource/inconsolata": "^4.5.6",
"@fontsource/jetbrains-mono": "^4.5.9",
"@fontsource/pt-mono": "^4.5.9",
"@fontsource/roboto-mono": "^4.5.7",
"@fontsource/source-code-pro": "^4.5.10",
"@fontsource/ubuntu-mono": "^4.5.10",
"@blueprintjs/core": "^4.8.0",
"@fontsource/dm-mono": "^4.5.9",
"@fontsource/fira-code": "^4.5.11",
"@fontsource/inconsolata": "^4.5.7",
"@fontsource/jetbrains-mono": "^4.5.10",
"@fontsource/pt-mono": "^4.5.10",
"@fontsource/roboto-mono": "^4.5.8",
"@fontsource/source-code-pro": "^4.5.11",
"@fontsource/ubuntu-mono": "^4.5.11",
"@hydrooj/utils": "workspace:*",
"@svgr/webpack": "^6.3.1",
"@types/gulp-if": "^0.0.34",
@@ -94,7 +94,7 @@
"speed-measure-webpack-plugin": "^1.5.0",
"sticky-kit": "^1.1.3",
"style-loader": "^3.3.1",
"stylus": "^0.58.1",
"stylus": "^0.59.0",
"stylus-loader": "^7.0.0",
"tether": "1.4.7",
"tether-drop": "^1.4.2",
@@ -107,12 +107,12 @@
"web-streams-polyfill": "^3.2.1",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-dev-server": "^4.9.3",
"webpack-dev-server": "^4.10.0",
"webpackbar": "^5.0.2"
},
"dependencies": {
"ansi_up": "^5.1.0",
"esbuild": "0.14.3",
"esbuild": "0.15.2",
"fs-extra": "^10.1.0",
"js-yaml": "^4.1.0",
"jsesc": "^3.0.2",
+2 -2
View File
@@ -9,13 +9,13 @@
"preferUnplugged": true,
"dependencies": {
"cac": "^6.7.12",
"esbuild": "0.14.3",
"esbuild": "0.15.2",
"fs-extra": "^10.1.0",
"js-yaml": "^4.1.0",
"moment-timezone": "^0.5.34",
"mongodb": "^3.7.3",
"source-map-support": "^0.5.21",
"systeminformation": "^5.12.3"
"systeminformation": "^5.12.5"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
+3 -3
View File
@@ -10,9 +10,9 @@
"dependencies": {
"@hydrooj/utils": "workspace:*",
"chrome-finder": "^1.0.7",
"jsdom": "^19.0.0",
"jsdom": "^20.0.0",
"lodash": "^4.17.21",
"puppeteer-core": "^15.3.2",
"puppeteer-core": "^15.5.0",
"puppeteer-extra": "3.3.0",
"puppeteer-extra-plugin-portal": "3.1.0",
"puppeteer-extra-plugin-stealth": "2.10.1",
@@ -20,7 +20,7 @@
"superagent-proxy": "^3.0.0"
},
"devDependencies": {
"@types/jsdom": "^16.2.15",
"@types/jsdom": "^20.0.0",
"@types/lodash": "^4.14.182",
"@types/superagent": "^4.1.15",
"@types/superagent-proxy": "^3.0.0"