workspace: upgrade deps

This commit is contained in:
undefined committed 2022-10-04 21:31:58 +08:00
1 parent 1c3dc161b6
commit 8cffe19609
17 files changed
+110 -98

No files matched your search

+12 -12
View File
@@ -12,21 +12,21 @@
},
"preferUnplugged": true,
"dependencies": {
"@aws-sdk/client-s3": "^3.178.0",
"@aws-sdk/middleware-endpoint": "^3.178.0",
"@aws-sdk/s3-presigned-post": "^3.178.0",
"@aws-sdk/s3-request-presigner": "^3.178.0",
"@aws-sdk/client-s3": "^3.183.0",
"@aws-sdk/middleware-endpoint": "^3.183.0",
"@aws-sdk/s3-presigned-post": "^3.183.0",
"@aws-sdk/s3-request-presigner": "^3.183.0",
"@graphql-tools/schema": "^8.5.1",
"@hydrooj/utils": "workspace:*",
"adm-zip": "0.5.5",
"cac": "^6.7.14",
"cordis": "^2.2.0",
"cordis": "^2.3.8",
"detect-browser": "^5.3.0",
"emoji-regex": "^10.1.0",
"emoji-regex": "^10.2.1",
"emojis-list": "2.1.0",
"fs-extra": "^10.1.0",
"graphql": "^16.5.0",
"graphql-scalars": "1.17.0",
"graphql": "^16.6.0",
"graphql-scalars": "1.18.0",
"isbinaryfile": "^5.0.0",
"js-yaml": "^4.1.0",
"koa": "^2.13.4",
@@ -41,7 +41,7 @@
"moment-timezone": "^0.5.37",
"mongodb": "^3.7.3",
"nanoid": "^4.0.0",
"nodemailer": "^6.7.8",
"nodemailer": "^6.8.0",
"notp": "^2.0.3",
"p-queue": "^7.3.0",
"path-to-regexp": "^6.2.1",
@@ -50,7 +50,7 @@
"schemastery": "^3.5.4",
"semver": "^7.3.7",
"serialize-javascript": "^6.0.0",
"superagent": "^8.0.0",
"superagent": "^8.0.2",
"thirty-two": "^1.0.2",
"ws": "^8.9.0"
},
@@ -62,11 +62,11 @@
"@types/koa-compress": "^4.0.3",
"@types/koa-router": "^7.4.4",
"@types/koa-static-cache": "^5.1.1",
"@types/lodash": "^4.14.184",
"@types/lodash": "^4.14.186",
"@types/mime-types": "^2.1.1",
"@types/minio": "^7.0.13",
"@types/mongodb": "^3.6.20",
"@types/nodemailer": "^6.4.5",
"@types/nodemailer": "^6.4.6",
"@types/notp": "^2.0.2",
"@types/saslprep": "^1.0.1",
"@types/semver": "^7.3.12",
+26 -24
View File
@@ -594,28 +594,30 @@ export interface OauthMap {
uid: number;
}
export interface Collections {
'blacklist': BlacklistDoc;
'domain': DomainDoc;
'domain.user': any;
'record': RecordDoc;
'document': any;
'document.status': StatusDocBase;
'user': Udoc;
'user.preference': UserPreferenceDoc;
'vuser': VUdoc;
'user.group': GDoc;
'check': System;
'message': MessageDoc;
'token': TokenDoc;
'status': any;
'oauth': OauthMap;
'system': System;
'task': Task;
'storage': FileNode;
'oplog': OplogDoc;
'event': EventDoc;
'opcount': OpCountDoc;
declare module './service/db' {
interface Collections {
'blacklist': BlacklistDoc;
'domain': DomainDoc;
'domain.user': any;
'record': RecordDoc;
'document': any;
'document.status': StatusDocBase;
'user': Udoc;
'user.preference': UserPreferenceDoc;
'vuser': VUdoc;
'user.group': GDoc;
'check': System;
'message': MessageDoc;
'token': TokenDoc;
'status': any;
'oauth': OauthMap;
'system': System;
'task': Task;
'storage': FileNode;
'oplog': OplogDoc;
'event': EventDoc;
'opcount': OpCountDoc;
}
}
export interface Model {
@@ -646,7 +648,7 @@ export interface Model {
export interface HydroService {
/** @deprecated */
bus: Context,
db: typeof import('./service/db'),
db: typeof import('./service/db').default,
monitor: typeof import('./service/monitor'),
server: typeof import('./service/server'),
storage: typeof import('./service/storage').default,
@@ -726,7 +728,7 @@ declare global {
addons: string[],
}
}
var bus: any; // eslint-disable-line
var bus: typeof import('./service/bus'); // eslint-disable-line
var app: Context; // eslint-disable-line
var Hydro: HydroGlobal; // eslint-disable-line
var addons: string[]; // eslint-disable-line
+3 -1
View File
@@ -5,7 +5,7 @@ import _ from 'lodash';
import moment from 'moment-timezone';
import Schema from 'schemastery';
import superagent from 'superagent';
import * as db from './service/db';
import db from './service/db';
export { ObjectID, ObjectId, FilterQuery } from 'mongodb';
export * from './utils';
export * from './interface';
@@ -37,6 +37,8 @@ export { default as TaskModel } from './model/task';
export * from './model/builtin';
export * as JudgeHandler from './handler/judge';
export { postJudge } from './handler/judge';
export { Collections } from './service/db';
// export { Collections } from './interface';
export { Service, Context } from './context';
export { buildContent } from './lib/content';
export * as validator from './lib/validator';
+3 -3
View File
@@ -4,11 +4,10 @@ import {
} from 'mongodb';
import { Logger } from '../logger';
import options from '../options';
// Note: this might be re-declared so we have to use Collections here
import type { Collections } from '../plugin-api';
import * as bus from './bus';
const logger = new Logger('mongo');
export interface Collections { }
interface MongoConfig {
protocol?: string,
@@ -92,4 +91,5 @@ class MongoService {
const service = new MongoService();
global.Hydro.service.db = service;
export = service;
export default service;
export const collection = service.collection.bind(service);