@salesforce/core 3.35.0 → 3.36.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.
|
@@ -143,9 +143,11 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
143
143
|
}
|
|
144
144
|
return match;
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
const matchFromNewKey = this.getAllowedProperties().find((element) => key === element.newKey);
|
|
147
|
+
if (matchFromNewKey) {
|
|
148
|
+
return matchFromNewKey;
|
|
148
149
|
}
|
|
150
|
+
throw messages.createError('unknownConfigKey', [key]);
|
|
149
151
|
}
|
|
150
152
|
/**
|
|
151
153
|
* Get a resolved config property.
|
|
@@ -235,7 +237,7 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
235
237
|
*/
|
|
236
238
|
getConfigInfo() {
|
|
237
239
|
const infos = Object.keys(this.getConfig())
|
|
238
|
-
.filter((key) => this.getAllowedProperties().some((element) => key === element.key))
|
|
240
|
+
.filter((key) => this.getAllowedProperties().some((element) => key === element.key || key === element.newKey))
|
|
239
241
|
.map((key) => this.getInfo(key))
|
|
240
242
|
.filter((info) => !!info);
|
|
241
243
|
return (0, kit_1.sortBy)(infos, 'key');
|
package/lib/config/envVars.js
CHANGED
|
@@ -229,7 +229,8 @@ exports.SUPPORTED_ENV_VARS = {
|
|
|
229
229
|
},
|
|
230
230
|
[EnvironmentVariable.SFDX_REST_DEPLOY]: {
|
|
231
231
|
description: getMessage(EnvironmentVariable.SFDX_REST_DEPLOY),
|
|
232
|
-
|
|
232
|
+
// this is not an "official" env var, but it supports the env=>config naming convention for the config that lives in plugin-deploy-retrieve
|
|
233
|
+
synonymOf: 'SF_ORG_METADATA_REST_DEPLOY',
|
|
233
234
|
},
|
|
234
235
|
[EnvironmentVariable.SFDX_SOURCE_MEMBER_POLLING_TIMEOUT]: {
|
|
235
236
|
description: getMessage(EnvironmentVariable.SFDX_SOURCE_MEMBER_POLLING_TIMEOUT),
|