@514labs/moose-lib 0.6.267-ci-2-gbf0ead61 → 0.6.267-ci-2-g72faeb73
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.map +1 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +18 -0
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +18 -0
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/moose-runner.mjs
CHANGED
|
@@ -710,7 +710,13 @@ var httpLogger = (req, res, startMs) => {
|
|
|
710
710
|
};
|
|
711
711
|
var modulesCache = /* @__PURE__ */ new Map();
|
|
712
712
|
var apiHandler = async (publicKey, clickhouseClient, temporalClient, apisDir, enforceAuth, isDmv2, jwtConfig) => {
|
|
713
|
+
console.log(
|
|
714
|
+
`[DEBUG] Worker ${cluster2.worker?.id} apiHandler: about to call getApis (isDmv2=${isDmv2})`
|
|
715
|
+
);
|
|
713
716
|
const apis = isDmv2 ? await getApis2() : /* @__PURE__ */ new Map();
|
|
717
|
+
console.log(
|
|
718
|
+
`[DEBUG] Worker ${cluster2.worker?.id} apiHandler: getApis completed, returning handler`
|
|
719
|
+
);
|
|
714
720
|
return async (req, res) => {
|
|
715
721
|
const start = Date.now();
|
|
716
722
|
try {
|
|
@@ -855,6 +861,9 @@ var apiHandler = async (publicKey, clickhouseClient, temporalClient, apisDir, en
|
|
|
855
861
|
};
|
|
856
862
|
};
|
|
857
863
|
var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisDir, enforceAuth, isDmv2, jwtConfig) => {
|
|
864
|
+
console.log(
|
|
865
|
+
`[DEBUG] Worker ${cluster2.worker?.id} createMainRouter: about to call apiHandler`
|
|
866
|
+
);
|
|
858
867
|
const apiRequestHandler = await apiHandler(
|
|
859
868
|
publicKey,
|
|
860
869
|
clickhouseClient,
|
|
@@ -864,7 +873,16 @@ var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisD
|
|
|
864
873
|
isDmv2,
|
|
865
874
|
jwtConfig
|
|
866
875
|
);
|
|
876
|
+
console.log(
|
|
877
|
+
`[DEBUG] Worker ${cluster2.worker?.id} createMainRouter: apiHandler completed`
|
|
878
|
+
);
|
|
879
|
+
console.log(
|
|
880
|
+
`[DEBUG] Worker ${cluster2.worker?.id} createMainRouter: about to call getWebApps (isDmv2=${isDmv2})`
|
|
881
|
+
);
|
|
867
882
|
const webApps = isDmv2 ? await getWebApps2() : /* @__PURE__ */ new Map();
|
|
883
|
+
console.log(
|
|
884
|
+
`[DEBUG] Worker ${cluster2.worker?.id} createMainRouter: getWebApps completed, returning router`
|
|
885
|
+
);
|
|
868
886
|
const sortedWebApps = Array.from(webApps.values()).sort((a, b) => {
|
|
869
887
|
const pathA = a.config.mountPath || "/";
|
|
870
888
|
const pathB = b.config.mountPath || "/";
|