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:
10
src/route.ts
10
src/route.ts
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user