@514labs/moose-lib 0.6.252-ci-7-g42a5abc7 → 0.6.252-ci-6-g7387d479

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
@@ -617,8 +617,6 @@ var ClickHouseEngines = /* @__PURE__ */ ((ClickHouseEngines2) => {
617
617
  ClickHouseEngines2["ReplicatedReplacingMergeTree"] = "ReplicatedReplacingMergeTree";
618
618
  ClickHouseEngines2["ReplicatedAggregatingMergeTree"] = "ReplicatedAggregatingMergeTree";
619
619
  ClickHouseEngines2["ReplicatedSummingMergeTree"] = "ReplicatedSummingMergeTree";
620
- ClickHouseEngines2["ReplicatedCollapsingMergeTree"] = "ReplicatedCollapsingMergeTree";
621
- ClickHouseEngines2["ReplicatedVersionedCollapsingMergeTree"] = "ReplicatedVersionedCollapsingMergeTree";
622
620
  return ClickHouseEngines2;
623
621
  })(ClickHouseEngines || {});
624
622
  function dropView(name) {
@@ -2516,8 +2514,15 @@ var WebApp = class {
2516
2514
  return app.callback();
2517
2515
  }
2518
2516
  if (typeof app.routing === "function") {
2519
- return (req, res) => {
2520
- app.routing(req, res);
2517
+ const routing = app.routing;
2518
+ const appWithReady = app;
2519
+ let readyPromise = null;
2520
+ return async (req, res) => {
2521
+ if (readyPromise === null) {
2522
+ readyPromise = typeof appWithReady.ready === "function" ? appWithReady.ready() : Promise.resolve();
2523
+ }
2524
+ await readyPromise;
2525
+ routing(req, res);
2521
2526
  };
2522
2527
  }
2523
2528
  throw new Error(