@salesforce/sf-plugins-core 1.16.0 → 1.17.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/sfCommand.js CHANGED
@@ -56,9 +56,8 @@ class SfCommand extends core_1.Command {
56
56
  constructor(argv, config) {
57
57
  super(argv, config);
58
58
  this.warnings = [];
59
- const outputEnabled = !this.jsonEnabled();
60
- this.progress = new ux_1.Progress(outputEnabled && core_2.envVars.getBoolean(core_2.EnvironmentVariable.SF_USE_PROGRESS_BAR, true));
61
- this.ux = new ux_1.Ux(outputEnabled);
59
+ this.ux = new ux_1.Ux({ jsonEnabled: this.jsonEnabled() });
60
+ this.progress = new ux_1.Progress(this.ux.outputEnabled && core_2.envVars.getBoolean(core_2.EnvironmentVariable.SF_USE_PROGRESS_BAR, true));
62
61
  this.spinner = this.ux.spinner;
63
62
  this.prompter = this.ux.prompter;
64
63
  this.lifecycle = core_2.Lifecycle.getInstance();
package/lib/ux/ux.d.ts CHANGED
@@ -20,10 +20,12 @@ import { Spinner } from './spinner';
20
20
  * ```
21
21
  */
22
22
  export declare class Ux extends UxBase {
23
+ readonly spinner: Spinner;
24
+ readonly prompter: Prompter;
23
25
  readonly outputEnabled: boolean;
24
- spinner: Spinner;
25
- prompter: Prompter;
26
- constructor(outputEnabled: boolean);
26
+ constructor({ jsonEnabled }?: {
27
+ jsonEnabled: boolean;
28
+ });
27
29
  /**
28
30
  * Log a message to the console. This will be automatically suppressed if output is disabled.
29
31
  *
package/lib/ux/ux.js CHANGED
@@ -28,10 +28,10 @@ const spinner_1 = require("./spinner");
28
28
  * ```
29
29
  */
30
30
  class Ux extends base_1.UxBase {
31
- constructor(outputEnabled) {
32
- super(outputEnabled);
33
- this.outputEnabled = outputEnabled;
34
- this.spinner = new spinner_1.Spinner(outputEnabled);
31
+ constructor({ jsonEnabled } = { jsonEnabled: false }) {
32
+ super(!jsonEnabled);
33
+ this.outputEnabled = !jsonEnabled;
34
+ this.spinner = new spinner_1.Spinner(this.outputEnabled);
35
35
  this.prompter = new prompter_1.Prompter();
36
36
  }
37
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@oclif/core": "^1.19.0",
36
- "@salesforce/core": "^3.30.9",
36
+ "@salesforce/core": "^3.31.16",
37
37
  "@salesforce/kit": "^1.7.0",
38
38
  "@salesforce/ts-types": "^1.5.20",
39
39
  "chalk": "^4",