@salesforce/sf-plugins-core 1.8.0 → 1.8.1

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,12 @@
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.8.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.8.0...v1.8.1) (2022-03-24)
6
+
7
+ ### Bug Fixes
8
+
9
+ - log errors to stderr ([9958d8e](https://github.com/salesforcecli/sf-plugins-core/commit/9958d8e49cf1fbe514026491d8d095651d1cb88b))
10
+
5
11
  ## [1.8.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.7.2...v1.8.0) (2022-03-17)
6
12
 
7
13
  ### Features
package/lib/sfCommand.js CHANGED
@@ -183,10 +183,13 @@ class SfCommand extends core_1.Command {
183
183
  async catch(error) {
184
184
  var _a, _b;
185
185
  process.exitCode = (_b = (_a = process.exitCode) !== null && _a !== void 0 ? _a : error.exitCode) !== null && _b !== void 0 ? _b : 1;
186
- this.log(this.formatError(error));
187
186
  if (this.jsonEnabled()) {
188
187
  core_1.CliUx.ux.styledJSON(this.toErrorJson(error));
189
188
  }
189
+ else {
190
+ // eslint-disable-next-line no-console
191
+ console.error(this.formatError(error));
192
+ }
190
193
  return error;
191
194
  }
192
195
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",