mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
bump beta.3
This commit is contained in:
12 files changed
+20
-20
No files matched your search
@@ -4,7 +4,7 @@
|
||||
"license": "MIT",
|
||||
"main": "base.mjs",
|
||||
"dependencies": {
|
||||
"@eslint-react/eslint-plugin": "^1.50.0",
|
||||
"@eslint-react/eslint-plugin": "^1.51.0",
|
||||
"@eslint/compat": "^1.2.9",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@stylistic/eslint-plugin": "^4.4.0",
|
||||
|
||||
@@ -150,7 +150,7 @@ export class ApiService extends Service {
|
||||
await emitHook?.(`api/before/${callOrName}`, args);
|
||||
}
|
||||
let result = await func(context, args as any, sendPayload);
|
||||
if (result && 'next' in result) {
|
||||
if (result && typeof result === 'object' && 'next' in result) {
|
||||
const it = result as AsyncGenerator<any, any, never>;
|
||||
while (true) {
|
||||
const value = await it.next(); // eslint-disable-line no-await-in-loop
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/framework",
|
||||
"version": "0.2.0-beta.2",
|
||||
"version": "0.2.0-beta.3",
|
||||
"main": "index.ts",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
||||
Reference in new issue
Block a user