mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
fix ci issues
This commit is contained in:
26 files changed
+108
-85
No files matched your search
@@ -29,7 +29,7 @@ function _buildParam(name: string, source: 'get' | 'post' | 'all' | 'route', ...
|
||||
if (type[2]) v.isOptional = type[2];
|
||||
} else if (typeof current === 'boolean') v.isOptional = current;
|
||||
else if (isValidate) {
|
||||
if (current !== null) v.validate = mergeValidator(v.validate, current);
|
||||
if (current !== null) v.validate = v.validate ? mergeValidator(v.validate, current) : current;
|
||||
isValidate = false;
|
||||
} else v.convert = current;
|
||||
cursor++;
|
||||
|
||||
@@ -29,6 +29,6 @@
|
||||
"@types/koa-router": "^7.4.8",
|
||||
"@types/lodash": "^4.17.16",
|
||||
"@types/saslprep": "^1.0.3",
|
||||
"@types/ws": "^8.18.0"
|
||||
"@types/ws": "^8.18.1"
|
||||
}
|
||||
}
|
||||
@@ -461,7 +461,7 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
|
||||
} catch (e) { }
|
||||
});
|
||||
socket.pause();
|
||||
const c: any = koa.createContext(request, {} as any);
|
||||
const c: any = koa.createContext(request, {} as any); // eslint-disable-line
|
||||
await executeMiddlewareStack(c, this.wsLayers);
|
||||
for (const manager of router.wsStack) {
|
||||
if (manager.accept(socket, request, c)) return;
|
||||
|
||||
Reference in new issue
Block a user