@514labs/moose-lib 0.6.252-ci-5-g451c6103 → 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/browserCompatible.js +5 -1
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +5 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +5 -1
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +5 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2618,8 +2618,12 @@ var WebApp = class {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
if (typeof app.routing === "function") {
|
|
2620
2620
|
const routing = app.routing;
|
|
2621
|
-
const
|
|
2621
|
+
const appWithReady = app;
|
|
2622
|
+
let readyPromise = null;
|
|
2622
2623
|
return async (req, res) => {
|
|
2624
|
+
if (readyPromise === null) {
|
|
2625
|
+
readyPromise = typeof appWithReady.ready === "function" ? appWithReady.ready() : Promise.resolve();
|
|
2626
|
+
}
|
|
2623
2627
|
await readyPromise;
|
|
2624
2628
|
routing(req, res);
|
|
2625
2629
|
};
|