@oclif/multi-stage-output 0.6.0 → 0.7.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/lib/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { MultiStageOutput, MultiStageOutputOptions } from './multi-stage-output.js';
1
+ export { MultiStageOutput, MultiStageOutputOptions, ParallelMultiStageOutput } from './multi-stage-output.js';
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export { MultiStageOutput } from './multi-stage-output.js';
1
+ export { MultiStageOutput, ParallelMultiStageOutput } from './multi-stage-output.js';
@@ -157,6 +157,7 @@ export declare class ParallelMultiStageOutput<T extends Record<string, unknown>>
157
157
  resumeStage(stage: string, data?: Partial<T>): void;
158
158
  startStage(stage: string, data?: Partial<T>): void;
159
159
  stopStage(stage: string, data?: Partial<T>): void;
160
+ updateStage(stage: string, status: StageStatus, data?: Partial<T>): void;
160
161
  private update;
161
162
  }
162
163
  export {};
@@ -367,6 +367,9 @@ export class ParallelMultiStageOutput extends MultiStageOutputBase {
367
367
  stopStage(stage, data) {
368
368
  this.update(stage, 'completed', data);
369
369
  }
370
+ updateStage(stage, status, data) {
371
+ this.update(stage, status, data);
372
+ }
370
373
  update(stage, status, data) {
371
374
  if (this.stopped)
372
375
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/multi-stage-output",
3
3
  "description": "Terminal output for oclif commands with multiple stages",
4
- "version": "0.6.0",
4
+ "version": "0.7.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/multi-stage-output/issues",
7
7
  "dependencies": {