chore: update version to 0.0.51, add auto.ts to files, and update dependencies

feat: enhance parseXml function to handle Bun requests and refactor XML parsing logic
This commit is contained in:
2025-12-28 10:51:14 +08:00
parent 6e659fd278
commit b0eb3a9ada
4 changed files with 165 additions and 137 deletions

View File

@@ -576,10 +576,16 @@ export class QueryRouter {
* -- .on
* -- .send
*/
wait(params?: { path?: string; key?: string; payload?: any }, opts?: { emitter?: any, timeout?: number, getList?: boolean }) {
wait(params?: { path?: string; key?: string; payload?: any }, opts?: {
emitter?: any,
timeout?: number,
getList?: boolean
force?: boolean
filter?: (route: Route) => boolean
}) {
const getList = opts?.getList ?? true;
if (getList) {
this.createRouteList();
this.createRouteList(opts?.force ?? false, opts?.filter);
}
return listenProcess({ app: this, params, ...opts });
}