From 5bff100c3864c244482c1b690e4cef090076d3ab Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 1 May 2024 21:26:00 -0300 Subject: upd8: expose web route sources outside of identifyWebRoutes step --- src/upd8.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/upd8.js b/src/upd8.js index 21cabfae..258abd95 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2158,7 +2158,8 @@ async function main() { } } - let webRoutes = null; + let webRouteSources = null; + let preparedWebRoutes = null; if (stepStatusSummary.identifyWebRoutes.status === STATUS_NOT_STARTED) { Object.assign(stepStatusSummary.identifyWebRoutes, { @@ -2169,7 +2170,7 @@ async function main() { const fromRoot = urls.from('shared.root'); try { - const webRouteSources = await identifyAllWebRoutes({ + webRouteSources = await identifyAllWebRoutes({ mediaCachePath, mediaPath, wikiCachePath, @@ -2185,7 +2186,7 @@ async function main() { {message: `Errors computing effective web route paths`},); aggregate.close(); - webRoutes = result; + preparedWebRoutes = result; } catch (error) { if (!paragraph) console.log(''); niceShowAggregate(error); @@ -2274,7 +2275,7 @@ async function main() { thumbsCache, urls, urlSpec, - webRoutes, + webRoutes: preparedWebRoutes, wikiData, closeLanguageWatchers, -- cgit 1.3.0-6-gf8a5