@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.
Files changed (2) hide show
  1. package/dist/index.cjs +8 -4
  2. 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 (face.progress(title, facts.measure ?? null)) return;
785
- if (activeTitle === title) spinner.say(title, facts.measure ?? null);
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 = title;
788
- spinner.start(title, facts.measure ?? null);
791
+ activeTitle = runningTitle;
792
+ spinner.start(runningTitle, facts.measure ?? null);
789
793
  }
790
794
  return;
791
795
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/hub",
3
- "version": "4.4.16",
3
+ "version": "4.5.0",
4
4
  "description": "Install and maintain the MMI CLI and every present host surface from one release-gated Hub command.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",