@oclif/multi-stage-output 0.4.0 → 0.4.2

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.
@@ -77,7 +77,7 @@ class CIMultiStageOutput {
77
77
  this.lastUpdateTime = Date.now();
78
78
  if (!this.startTimes.has(stage))
79
79
  this.startTimes.set(stage, Date.now());
80
- ux.stdout(`${this.design.icons.current} ${capitalCase(stage)}...`);
80
+ ux.stdout(`${this.design.icons.current.figure} ${capitalCase(stage)}...`);
81
81
  this.printInfo(this.preStagesBlock, 3);
82
82
  this.printInfo(this.stageSpecificBlock?.filter((info) => info.stage === stage), 3);
83
83
  this.printInfo(this.postStagesBlock, 3);
@@ -91,16 +91,16 @@ class CIMultiStageOutput {
91
91
  const startTime = this.startTimes.get(stage);
92
92
  const elapsedTime = startTime ? Date.now() - startTime : 0;
93
93
  const displayTime = readableTime(elapsedTime, this.timerUnit);
94
- ux.stdout(`${this.design.icons[status]} ${capitalCase(stage)} (${displayTime})`);
94
+ ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)} (${displayTime})`);
95
95
  this.printInfo(this.preStagesBlock, 3);
96
96
  this.printInfo(this.stageSpecificBlock?.filter((info) => info.stage === stage), 3);
97
97
  this.printInfo(this.postStagesBlock, 3);
98
98
  }
99
99
  else if (status === 'skipped') {
100
- ux.stdout(`${this.design.icons[status]} ${capitalCase(stage)} - Skipped`);
100
+ ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)} - Skipped`);
101
101
  }
102
102
  else {
103
- ux.stdout(`${this.design.icons[status]} ${capitalCase(stage)}`);
103
+ ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)}`);
104
104
  this.printInfo(this.preStagesBlock, 3);
105
105
  this.printInfo(this.stageSpecificBlock?.filter((info) => info.stage === stage), 3);
106
106
  this.printInfo(this.postStagesBlock, 3);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@oclif/multi-stage-output",
3
3
  "description": "Terminal output for oclif commands with multiple stages",
4
- "version": "0.4.0",
4
+ "version": "0.4.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/multi-stage-output/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4",
9
- "@types/react": "^18.3.4",
9
+ "@types/react": "^18.3.5",
10
10
  "change-case": "^5.4.4",
11
11
  "cli-spinners": "^2",
12
12
  "figures": "^6.1.0",