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