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

+2 -4
View File
@@ -10,18 +10,16 @@
"dependencies": {
"@hydrooj/utils": "workspace:*",
"chrome-finder": "^1.0.7",
"jsdom": "^20.0.0",
"lodash": "^4.17.21",
"jsdom": "^20.0.1",
"puppeteer-core": "^15.5.0",
"puppeteer-extra": "3.3.0",
"puppeteer-extra-plugin-portal": "3.1.0",
"puppeteer-extra-plugin-stealth": "2.10.1",
"superagent": "^8.0.0",
"superagent": "^8.0.2",
"superagent-proxy": "^3.0.0"
},
"devDependencies": {
"@types/jsdom": "^20.0.0",
"@types/lodash": "^4.14.184",
"@types/superagent": "^4.1.15",
"@types/superagent-proxy": "^3.0.0"
}
+2 -3
View File
@@ -1,10 +1,9 @@
/* eslint-disable no-await-in-loop */
import { JSDOM } from 'jsdom';
import { flattenDeep } from 'lodash';
import superagent from 'superagent';
import proxy from 'superagent-proxy';
import {
Logger, SettingModel, sleep, STATUS,
_, Logger, SettingModel, sleep, STATUS,
} from 'hydrooj';
import { IBasicProvider, RemoteAccount } from '../interface';
@@ -151,7 +150,7 @@ export default class LuoguProvider implements IBasicProvider {
});
}
logger.info('Fetched with length', JSON.stringify(body).length);
const total = flattenDeep(body.currentData.testCaseGroup).length;
const total = _.flattenDeep(body.currentData.testCaseGroup).length;
// TODO sorted
if (!data.detail.judgeResult?.subtasks) continue;
for (const key in data.detail.judgeResult.subtasks) {