@514labs/moose-lib 0.6.252-ci-1-g40bb1da4 → 0.6.252-ci-5-g451c6103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2491,8 +2491,11 @@ var WebApp = class {
2491
2491
  return app.callback();
2492
2492
  }
2493
2493
  if (typeof app.routing === "function") {
2494
- return (req, res) => {
2495
- app.routing(req, res);
2494
+ const routing = app.routing;
2495
+ const readyPromise = typeof app.ready === "function" ? app.ready() : Promise.resolve();
2496
+ return async (req, res) => {
2497
+ await readyPromise;
2498
+ routing(req, res);
2496
2499
  };
2497
2500
  }
2498
2501
  throw new Error(