« get me outta code hell

write: repl: use universalUtilities - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-09-12 14:33:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-09-12 14:33:17 -0300
commit60e4765616e231fa67aa8174ce7e00837d646778 (patch)
tree84dc36e413686ee1645fbf95296e7924ff7673de
parent8974bd704466188d46e3985e7e94c0ca993524e4 (diff)
write: repl: use universalUtilities
-rw-r--r--src/write/build-modes/repl.js25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/write/build-modes/repl.js b/src/write/build-modes/repl.js
index faba8a34..957d2c2d 100644
--- a/src/write/build-modes/repl.js
+++ b/src/write/build-modes/repl.js
@@ -50,17 +50,12 @@ export async function getContextAssignments({
   mediaPath,
   mediaCachePath,
 
+  universalUtilities,
+
   defaultLanguage,
-  languages,
-  missingImagePaths,
-  thumbsCache,
-  urls,
-  webRoutes,
   wikiData,
 
-  getSizeOfAdditionalFile,
-  getSizeOfImagePath,
-  niceShowAggregate,
+  niceShowAggregate: showAggregate,
 }) {
   let find;
   try {
@@ -72,19 +67,15 @@ export async function getContextAssignments({
   }
 
   const replContext = {
+    universalUtilities,
+    ...universalUtilities,
+
     dataPath,
     mediaPath,
     mediaCachePath,
 
-    languages,
-    defaultLanguage,
     language: defaultLanguage,
 
-    missingImagePaths,
-    thumbsCache,
-    urls,
-    webRoutes,
-
     wikiData,
     ...wikiData,
     WD: wikiData,
@@ -104,9 +95,7 @@ export async function getContextAssignments({
     find,
     bindFind,
 
-    getSizeOfAdditionalFile,
-    getSizeOfImagePath,
-    showAggregate: niceShowAggregate,
+    showAggregate,
   };
 
   replContext.replContext = replContext;