@salesforce/sf-plugins-core 1.5.1 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.5.2](https://github.com/salesforcecli/sf-plugins-core/compare/v1.5.1...v1.5.2) (2022-03-07)
6
+
7
+ ### Bug Fixes
8
+
9
+ - add styled header function to sf command ([5cc0e8b](https://github.com/salesforcecli/sf-plugins-core/commit/5cc0e8bf60774918c2ebaf2ba5b465f3dd6caf15))
10
+ - retrhow ([eaebd44](https://github.com/salesforcecli/sf-plugins-core/commit/eaebd44d0028cedab92173ed30050757602d2c28))
11
+
5
12
  ### [1.5.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.5.0...v1.5.1) (2022-03-07)
6
13
 
7
14
  ## [1.5.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.4.1...v1.5.0) (2022-03-03)
package/lib/sfCommand.js CHANGED
@@ -158,7 +158,7 @@ class SfCommand extends core_1.Command {
158
158
  if (this.jsonEnabled()) {
159
159
  core_1.CliUx.ux.styledJSON(this.toErrorJson(error));
160
160
  }
161
- return error;
161
+ throw error;
162
162
  }
163
163
  /**
164
164
  * Format errors and actions for human consumption. Adds 'Error:',
package/lib/ux/ux.d.ts CHANGED
@@ -7,6 +7,7 @@ export declare class Ux extends UxBase {
7
7
  url(text: string, uri: string, params?: {}): void;
8
8
  styledJSON(obj: AnyJson): void;
9
9
  styledObject(obj: AnyJson): void;
10
+ styledHeader(text: string): void;
10
11
  }
11
12
  export declare namespace Ux {
12
13
  namespace Table {
package/lib/ux/ux.js CHANGED
@@ -25,6 +25,9 @@ class Ux extends base_1.UxBase {
25
25
  styledObject(obj) {
26
26
  this.maybeNoop(() => core_1.CliUx.ux.styledObject(obj));
27
27
  }
28
+ styledHeader(text) {
29
+ this.maybeNoop(() => core_1.CliUx.ux.styledHeader(text));
30
+ }
28
31
  }
29
32
  exports.Ux = Ux;
30
33
  //# sourceMappingURL=ux.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -32,8 +32,8 @@
32
32
  "/messages"
33
33
  ],
34
34
  "dependencies": {
35
- "@oclif/core": "^1.5.1",
36
- "@salesforce/core": "^3.7.8",
35
+ "@oclif/core": "^1.5.2",
36
+ "@salesforce/core": "^3.7.9",
37
37
  "@salesforce/kit": "^1.5.34",
38
38
  "@salesforce/ts-types": "^1.5.20",
39
39
  "chalk": "^2.4.2",
@@ -66,7 +66,7 @@
66
66
  "shelljs": "0.8.5",
67
67
  "sinon": "10.0.1",
68
68
  "strip-ansi": "6.0.1",
69
- "ts-node": "^10.6.0",
69
+ "ts-node": "^10.7.0",
70
70
  "typescript": "^4.5.5"
71
71
  },
72
72
  "publishConfig": {