@514labs/moose-lib 0.6.252-ci-1-gd1d3a970 → 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.
package/dist/index.mjs CHANGED
@@ -2514,8 +2514,11 @@ var WebApp = class {
2514
2514
  return app.callback();
2515
2515
  }
2516
2516
  if (typeof app.routing === "function") {
2517
- return (req, res) => {
2518
- app.routing(req, res);
2517
+ const routing = app.routing;
2518
+ const readyPromise = typeof app.ready === "function" ? app.ready() : Promise.resolve();
2519
+ return async (req, res) => {
2520
+ await readyPromise;
2521
+ routing(req, res);
2519
2522
  };
2520
2523
  }
2521
2524
  throw new Error(