@salesforce/core 3.15.4 → 3.15.5
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/lib/config/configAggregator.d.ts +1 -1
- package/lib/config/configAggregator.js +2 -2
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1371
|
@@ -219,7 +219,7 @@ export declare namespace ConfigAggregator {
|
|
|
219
219
|
* @deprecated
|
|
220
220
|
*/
|
|
221
221
|
export declare class SfdxConfigAggregator extends ConfigAggregator {
|
|
222
|
-
|
|
222
|
+
static create<P, T extends AsyncOptionalCreatable<P>>(this: new (options?: ConfigAggregator.Options) => T, options?: ConfigAggregator.Options): Promise<T>;
|
|
223
223
|
getPropertyMeta(key: string): ConfigPropertyMeta;
|
|
224
224
|
getPropertyValue<T extends AnyJson>(key: string): Optional<T>;
|
|
225
225
|
getInfo(key: string): ConfigInfo;
|
|
@@ -313,14 +313,14 @@ ConfigAggregator.encrypted = true;
|
|
|
313
313
|
* @deprecated
|
|
314
314
|
*/
|
|
315
315
|
class SfdxConfigAggregator extends ConfigAggregator {
|
|
316
|
-
|
|
316
|
+
static async create(options = {}) {
|
|
317
317
|
const customConfigMeta = options.customConfigMeta || [];
|
|
318
318
|
// org-metadata-rest-deploy has been moved to plugin-deploy-retrieve but we need to have a placeholder
|
|
319
319
|
// for it here since sfdx needs to know how to set the deprecated restDeploy config var.
|
|
320
320
|
const restDeploy = config_1.SFDX_ALLOWED_PROPERTIES.find((p) => p.key === config_1.SfdxPropertyKeys.REST_DEPLOY);
|
|
321
321
|
const orgRestDeploy = Object.assign({}, restDeploy, { key: 'org-metadata-rest-deploy', deprecated: false });
|
|
322
322
|
options.customConfigMeta = [...customConfigMeta, orgRestDeploy];
|
|
323
|
-
super(options);
|
|
323
|
+
return super.create(options);
|
|
324
324
|
}
|
|
325
325
|
getPropertyMeta(key) {
|
|
326
326
|
const match = this.getAllowedProperties().find((element) => key === element.key);
|