@mutmutco/hub 4.4.16 → 4.5.0
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/index.cjs +8 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -781,11 +781,15 @@ function createInstallerRun(value, options = {}) {
|
|
|
781
781
|
const fold = operation === "update" && UPDATE_CHECK_PHASES.has(id) && state !== "fail";
|
|
782
782
|
const title = PHASES[fold ? "check" : id][state === "ok" ? 1 : 0];
|
|
783
783
|
if (state === "running") {
|
|
784
|
-
if (
|
|
785
|
-
|
|
784
|
+
if (facts.runningTitle !== void 0 && (typeof facts.runningTitle !== "string" || !facts.runningTitle.trim() || /[\r\n\x00-\x1f]/u.test(facts.runningTitle))) {
|
|
785
|
+
throw new Error("installer run: invalid runningTitle");
|
|
786
|
+
}
|
|
787
|
+
const runningTitle = facts.runningTitle?.trim() ?? title;
|
|
788
|
+
if (face.progress(runningTitle, facts.measure ?? null)) return;
|
|
789
|
+
if (activeTitle === runningTitle) spinner.say(runningTitle, facts.measure ?? null);
|
|
786
790
|
else {
|
|
787
|
-
activeTitle =
|
|
788
|
-
spinner.start(
|
|
791
|
+
activeTitle = runningTitle;
|
|
792
|
+
spinner.start(runningTitle, facts.measure ?? null);
|
|
789
793
|
}
|
|
790
794
|
return;
|
|
791
795
|
}
|
package/package.json
CHANGED