@salesforce/sf-plugins-core 1.12.0 → 1.12.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 +6 -0
- package/lib/flags/orgApiVersion.js +1 -1
- package/lib/flags/orgFlags.js +2 -3
- package/package.json +1 -1
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.12.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.12.0...v1.12.1) (2022-04-20)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- update config vars ([0c557b5](https://github.com/salesforcecli/sf-plugins-core/commit/0c557b59f6b833a6fe2812d9a765a2f006f57b01))
|
|
10
|
+
|
|
5
11
|
## [1.12.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.11.3...v1.12.0) (2022-04-18)
|
|
6
12
|
|
|
7
13
|
### Features
|
|
@@ -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(
|
|
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);
|
package/lib/flags/orgFlags.js
CHANGED
|
@@ -32,12 +32,11 @@ const getOrgOrThrow = async (input) => {
|
|
|
32
32
|
return org;
|
|
33
33
|
};
|
|
34
34
|
const getHubOrThrow = async (aliasOrUsername) => {
|
|
35
|
-
var _a
|
|
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
|
}
|