core: update cordis to 2.6.0

This commit is contained in:
undefined committed 2022-11-22 19:13:45 +08:00
1 parent afe40ec835
commit 9219bbfc24
7 files changed
+19 -19

No files matched your search

+2 -2
View File
@@ -34,8 +34,8 @@
"@types/node": "^18.11.9",
"@types/semver": "^7.3.13",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"autocannon": "^7.10.0",
"cac": "^6.7.14",
"cross-env": "^7.0.3",
+6 -6
View File
@@ -12,16 +12,16 @@
},
"preferUnplugged": true,
"dependencies": {
"@aws-sdk/client-s3": "^3.212.0",
"@aws-sdk/lib-storage": "^3.212.0",
"@aws-sdk/middleware-endpoint": "^3.212.0",
"@aws-sdk/s3-presigned-post": "^3.212.0",
"@aws-sdk/s3-request-presigner": "^3.212.0",
"@aws-sdk/client-s3": "^3.215.0",
"@aws-sdk/lib-storage": "^3.215.0",
"@aws-sdk/middleware-endpoint": "^3.215.0",
"@aws-sdk/s3-presigned-post": "^3.215.0",
"@aws-sdk/s3-request-presigner": "^3.215.0",
"@graphql-tools/schema": "^9.0.10",
"@hydrooj/utils": "workspace:*",
"adm-zip": "0.5.5",
"cac": "^6.7.14",
"cordis": "^2.5.0",
"cordis": "^2.6.0",
"detect-browser": "^5.3.0",
"emoji-regex": "^10.2.1",
"emojis-list": "2.1.0",
+3 -3
View File
@@ -45,9 +45,9 @@ export namespace Context {
export interface Config extends cordis.Context.Config { }
}
export type Runtime = cordis.Runtime<Context>;
export type State = cordis.State<Context>;
export type Fork = cordis.Fork<Context>;
export type MainScope = cordis.MainScope<Context>;
export type EffectScope = cordis.EffectScope<Context>;
export type ForkScope = cordis.ForkScope<Context>;
export type Plugin = cordis.Plugin<Context>;
export const Service = cordis.Service<Context>;
export namespace Plugin {
+4 -4
View File
@@ -4,7 +4,7 @@
import { relative, resolve } from 'path';
import { FSWatcher, watch } from 'chokidar';
import { debounce } from 'lodash';
import { Context, Runtime, Service } from '../context';
import { Context, MainScope, Service } from '../context';
import { Logger } from '../logger';
import { unwrapExports } from '../utils';
@@ -142,10 +142,10 @@ export default class Watcher extends Service {
this.analyzeChanges();
/** plugins pending classification */
const pending = new Map<string, Runtime>();
const pending = new Map<string, MainScope>();
/** plugins that should be reloaded */
const reloads = new Map<Runtime, string>();
const reloads = new Map<MainScope, string>();
// we assume that plugin entry files are "atomic"
// that is, reloading them will not cause any other reloads
@@ -172,7 +172,7 @@ export default class Watcher extends Service {
// prepare for reload
let isMarked = false;
const visited = new Set<Runtime>();
const visited = new Set<MainScope>();
const queued = [runtime];
while (queued.length) {
const runtime = queued.shift();
+2 -2
View File
@@ -31,8 +31,8 @@
"@types/qrcode": "^1.5.0",
"@types/react-dom": "^18.0.9",
"@types/redux-logger": "^3.0.9",
"@types/serviceworker": "^0.0.56",
"@types/sharedworker": "^0.0.85",
"@types/serviceworker": "^0.0.57",
"@types/sharedworker": "^0.0.86",
"@types/webpack-env": "^1.18.0",
"@vscode/codicons": "^0.0.32",
"autoprefixer": "^10.4.13",
+1 -1
View File
@@ -16,7 +16,7 @@
"mongodb": "^3.7.3",
"reggol": "^1.3.1",
"source-map-support": "^0.5.21",
"systeminformation": "^5.13.5"
"systeminformation": "^5.14.4"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
+1 -1
View File
@@ -10,7 +10,7 @@
"dependencies": {
"@hydrooj/utils": "workspace:*",
"chrome-finder": "^1.0.7",
"jsdom": "^20.0.2",
"jsdom": "^20.0.3",
"puppeteer-core": "^15.5.0",
"puppeteer-extra": "3.3.0",
"puppeteer-extra-plugin-portal": "3.1.0",