@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.
- package/dist/{browserCompatible-CoxWbneN.d.ts → browserCompatible-B_aEflr_.d.ts} +1 -1
- package/dist/{browserCompatible-BTN82akc.d.mts → browserCompatible-DnYA4Zgi.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +5 -2
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +5 -2
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +5 -2
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +5 -2
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-CNlTyF6R.d.mts → index-rECDLgTX.d.mts} +1 -0
- package/dist/{index-CNlTyF6R.d.ts → index-rECDLgTX.d.ts} +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dmv2/index.mjs
CHANGED
|
@@ -2396,8 +2396,11 @@ var WebApp = class {
|
|
|
2396
2396
|
return app.callback();
|
|
2397
2397
|
}
|
|
2398
2398
|
if (typeof app.routing === "function") {
|
|
2399
|
-
|
|
2400
|
-
|
|
2399
|
+
const routing = app.routing;
|
|
2400
|
+
const readyPromise = typeof app.ready === "function" ? app.ready() : Promise.resolve();
|
|
2401
|
+
return async (req, res) => {
|
|
2402
|
+
await readyPromise;
|
|
2403
|
+
routing(req, res);
|
|
2401
2404
|
};
|
|
2402
2405
|
}
|
|
2403
2406
|
throw new Error(
|