@salesforce/sf-plugins-core 1.11.3 → 1.12.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,24 @@
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.12.2](https://github.com/salesforcecli/sf-plugins-core/compare/v1.12.1...v1.12.2) (2022-05-03)
6
+
7
+ ### Bug Fixes
8
+
9
+ - update error message ([182cfa3](https://github.com/salesforcecli/sf-plugins-core/commit/182cfa30beb4e7fe052a0453d141e19ba7129647))
10
+
11
+ ### [1.12.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.12.0...v1.12.1) (2022-04-20)
12
+
13
+ ### Bug Fixes
14
+
15
+ - update config vars ([0c557b5](https://github.com/salesforcecli/sf-plugins-core/commit/0c557b59f6b833a6fe2812d9a765a2f006f57b01))
16
+
17
+ ## [1.12.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.11.3...v1.12.0) (2022-04-18)
18
+
19
+ ### Features
20
+
21
+ - adjusting message colors for accessibility ([6f873da](https://github.com/salesforcecli/sf-plugins-core/commit/6f873daf2e05c2ec0b52b357b15333a3b68e106e))
22
+
5
23
  ### [1.11.3](https://github.com/salesforcecli/sf-plugins-core/compare/v1.11.2...v1.11.3) (2022-04-12)
6
24
 
7
25
  ### Bug Fixes
@@ -34,7 +34,7 @@ const getDefaultFromConfig = async () => {
34
34
  // (perf) only import ConfigAggregator if necessary
35
35
  const { ConfigAggregator } = await Promise.resolve().then(() => require('@salesforce/core'));
36
36
  const config = await ConfigAggregator.create();
37
- const apiVersionFromConfig = (_a = config.getInfo('apiVersion')) === null || _a === void 0 ? void 0 : _a.value;
37
+ const apiVersionFromConfig = (_a = config.getInfo(core_2.OrgConfigProperties.ORG_API_VERSION)) === null || _a === void 0 ? void 0 : _a.value;
38
38
  if (apiVersionFromConfig) {
39
39
  await core_2.Lifecycle.getInstance().emitWarning(messages.getMessage('flags.apiVersion.overrideWarning', [apiVersionFromConfig]));
40
40
  return validate(apiVersionFromConfig);
@@ -32,12 +32,11 @@ const getOrgOrThrow = async (input) => {
32
32
  return org;
33
33
  };
34
34
  const getHubOrThrow = async (aliasOrUsername) => {
35
- var _a, _b, _c;
35
+ var _a;
36
36
  if (!aliasOrUsername) {
37
37
  // check config for a default
38
38
  const config = await core_2.ConfigAggregator.create();
39
- aliasOrUsername =
40
- (_b = (_a = config.getInfo('target-dev-hub')) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : (_c = config.getInfo('defaultdevhubusername')) === null || _c === void 0 ? void 0 : _c.value;
39
+ aliasOrUsername = (_a = config.getInfo(core_2.OrgConfigProperties.TARGET_DEV_HUB)) === null || _a === void 0 ? void 0 : _a.value;
41
40
  if (!aliasOrUsername) {
42
41
  throw messages.createError('errors.NoDefaultDevHub');
43
42
  }
package/lib/sfCommand.js CHANGED
@@ -15,10 +15,10 @@ const ux_1 = require("./ux");
15
15
  core_2.Messages.importMessagesDirectory(__dirname);
16
16
  const messages = core_2.Messages.loadMessages('@salesforce/sf-plugins-core', 'messages');
17
17
  exports.StandardColors = {
18
- error: chalk.hex('BF0201'),
19
- warning: chalk.hex('FF9A3C'),
18
+ error: chalk.bold.red,
19
+ warning: chalk.bold.yellow,
20
20
  info: chalk.dim,
21
- success: chalk.hex('4BCA81'),
21
+ success: chalk.bold.green,
22
22
  };
23
23
  /**
24
24
  * A base command that provides convenient access to CLI help
@@ -24,7 +24,7 @@ The id must begin with %s.
24
24
 
25
25
  # errors.NoDefaultEnv
26
26
 
27
- No default environment found. Use -e or --target-org to specify an environment.
27
+ No default environment found. Use -o or --target-org to specify an environment.
28
28
 
29
29
  # errors.NoDefaultDevHub
30
30
 
@@ -40,7 +40,7 @@ Override the api version used for api requests made by this command
40
40
 
41
41
  # flags.apiVersion.overrideWarning
42
42
 
43
- apiVersion configuration overridden at %s
43
+ org-api-version configuration overridden at %s
44
44
 
45
45
  # flags.apiVersion.warning.deprecated
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.11.3",
3
+ "version": "1.12.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.6.3",
36
- "@salesforce/core": "^3.11.0",
35
+ "@oclif/core": "^1.7.0",
36
+ "@salesforce/core": "^3.15.5",
37
37
  "@salesforce/kit": "^1.5.34",
38
38
  "@salesforce/ts-types": "^1.5.20",
39
39
  "chalk": "^4",