fix ci issues

This commit is contained in:
undefined committed 2025-04-02 00:35:45 +08:00
1 parent 466bc984bd
commit 8af621222c
26 files changed
+108 -85

No files matched your search

+1 -1
View File
@@ -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++;
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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;