upgrade deps

This commit is contained in:
undefined committed 2021-11-25 20:45:41 +08:00
1 parent 1a857ae40a
commit 0e3b796ca8
10 files changed
+48 -51

No files matched your search

+13 -13
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.1.36",
"version": "3.1.37",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
@@ -15,14 +15,14 @@
"@graphql-tools/schema": "^8.3.1",
"@hydrooj/utils": "workspace:*",
"adm-zip": "0.5.5",
"ansi_up": "^5.0.1",
"cac": "^6.7.11",
"ansi_up": "^5.1.0",
"cac": "^6.7.12",
"cookies": "^0.8.0",
"detect-browser": "^5.2.1",
"esbuild": "^0.13.12",
"esbuild": "^0.13.15",
"fs-extra": "^10.0.0",
"graphql": "^15.7.2",
"graphql-scalars": "1.12.0",
"graphql-scalars": "1.13.6",
"js-yaml": "^4.1.0",
"koa": "^2.13.4",
"koa-body": "^4.2.0",
@@ -32,37 +32,37 @@
"koa-static-cache": "^5.1.4",
"lodash": "^4.17.21",
"lru-cache": "^6.0.0",
"mime-types": "^2.1.33",
"mime-types": "^2.1.34",
"minio": "7.0.19",
"moment-timezone": "^0.5.33",
"moment-timezone": "^0.5.34",
"mongodb": "^3.7.3",
"nanoid": "^3.1.30",
"nodemailer": "^6.6.5",
"nodemailer": "^6.7.1",
"notp": "^2.0.3",
"p-queue": "^7.1.0",
"reflect-metadata": "^0.1.13",
"serialize-javascript": "^6.0.0",
"sockjs": "^0.3.21",
"source-map-support": "^0.5.20",
"source-map-support": "^0.5.21",
"superagent": "^6.1.0",
"thirty-two": "^1.0.2",
"tx2": "^1.0.4"
"tx2": "^1.0.5"
},
"devDependencies": {
"@types/adm-zip": "^0.4.34",
"@types/fs-extra": "^9.0.13",
"@types/js-yaml": "^4.0.4",
"@types/js-yaml": "^4.0.5",
"@types/koa": "^2.13.4",
"@types/koa-compress": "^4.0.3",
"@types/koa-router": "^7.4.4",
"@types/koa-static-cache": "^5.1.1",
"@types/lodash": "^4.14.176",
"@types/lodash": "^4.14.177",
"@types/lru-cache": "^5.1.1",
"@types/mime-types": "^2.1.1",
"@types/minio": "^7.0.11",
"@types/mongodb": "^3.6.20",
"@types/nodemailer": "^6.4.4",
"@types/notp": "^2",
"@types/notp": "^2.0.1",
"@types/serialize-javascript": "^5.0.1",
"@types/sockjs": "^0.3.33",
"@types/source-map-support": "^0.5.4",
@@ -77,10 +77,6 @@ class DiscussionMainHandler extends Handler {
system.get('pagination.discussion'),
);
const udict = await user.getList(domainId, ddocs.map((ddoc) => ddoc.owner));
const path = [
['Hydro', 'homepage'],
['discussion_main', null],
];
const [vndict, vnodes] = await Promise.all([
discussion.getListVnodes(
domainId, ddocs, this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN),
+3 -2
View File
@@ -407,8 +407,9 @@ bus.once('app/started', async () => {
{ key: { domainId: 1, docType: 1, owner: 1, docId: -1 }, name: 'owner' },
// For problem
{ key: { domainId: 1, docType: 1, search: 'text', title: 'text' }, name: 'search', sparse: true },
{ key: { domainId: 1, docType: 1, tag: 1, docId: 1 }, name: 'tag', sparse: true },
{ key: { domainId: 1, docType: 1, hidden: 1, tag: 1, docId: 1 }, name: 'hidden', sparse: true },
{ key: { domainId: 1, docType: 1, sort: 1 }, name: 'sort', sparse: true },
{ key: { domainId: 1, docType: 1, tag: 1, sort: 1 }, name: 'tag', sparse: true },
{ key: { domainId: 1, docType: 1, hidden: 1, tag: 1, sort: 1 }, name: 'hidden', sparse: true },
// For problem solution
{ key: { domainId: 1, docType: 1, parentType: 1, parentId: 1, vote: -1, docId: -1 }, name: 'solution', sparse: true },
// For discussion