@salesforce/core 3.15.2 → 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.
|
@@ -67,7 +67,7 @@ export declare class ConfigAggregator extends AsyncOptionalCreatable<ConfigAggre
|
|
|
67
67
|
* @ignore
|
|
68
68
|
*/
|
|
69
69
|
constructor(options?: ConfigAggregator.Options);
|
|
70
|
-
static create<P, T extends AsyncOptionalCreatable<P>>(this: new (options?:
|
|
70
|
+
static create<P, T extends AsyncOptionalCreatable<P>>(this: new (options?: ConfigAggregator.Options) => T, options?: ConfigAggregator.Options): Promise<T>;
|
|
71
71
|
/**
|
|
72
72
|
* Get the info for a given key. If the ConfigAggregator was not asynchronously created OR
|
|
73
73
|
* the {@link ConfigAggregator.reload} was not called, the config value may be encrypted.
|
|
@@ -219,8 +219,7 @@ export declare namespace ConfigAggregator {
|
|
|
219
219
|
* @deprecated
|
|
220
220
|
*/
|
|
221
221
|
export declare class SfdxConfigAggregator extends ConfigAggregator {
|
|
222
|
-
|
|
223
|
-
constructor(options?: ConfigAggregator.Options);
|
|
222
|
+
static create<P, T extends AsyncOptionalCreatable<P>>(this: new (options?: ConfigAggregator.Options) => T, options?: ConfigAggregator.Options): Promise<T>;
|
|
224
223
|
getPropertyMeta(key: string): ConfigPropertyMeta;
|
|
225
224
|
getPropertyValue<T extends AnyJson>(key: string): Optional<T>;
|
|
226
225
|
getInfo(key: string): ConfigInfo;
|
|
@@ -37,9 +37,6 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
37
37
|
*/
|
|
38
38
|
constructor(options) {
|
|
39
39
|
super(options || {});
|
|
40
|
-
if (options === null || options === void 0 ? void 0 : options.customConfigMeta) {
|
|
41
|
-
config_1.Config.addAllowedProperties(options.customConfigMeta);
|
|
42
|
-
}
|
|
43
40
|
// Don't throw an project error with the aggregator, since it should resolve to global if
|
|
44
41
|
// there is no project.
|
|
45
42
|
try {
|
|
@@ -67,6 +64,9 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
67
64
|
if (ConfigAggregator.encrypted) {
|
|
68
65
|
await config.loadProperties();
|
|
69
66
|
}
|
|
67
|
+
if (options === null || options === void 0 ? void 0 : options.customConfigMeta) {
|
|
68
|
+
config_1.Config.addAllowedProperties(options.customConfigMeta);
|
|
69
|
+
}
|
|
70
70
|
return ConfigAggregator.instance;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -313,10 +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
|
-
|
|
319
|
-
|
|
318
|
+
// org-metadata-rest-deploy has been moved to plugin-deploy-retrieve but we need to have a placeholder
|
|
319
|
+
// for it here since sfdx needs to know how to set the deprecated restDeploy config var.
|
|
320
|
+
const restDeploy = config_1.SFDX_ALLOWED_PROPERTIES.find((p) => p.key === config_1.SfdxPropertyKeys.REST_DEPLOY);
|
|
321
|
+
const orgRestDeploy = Object.assign({}, restDeploy, { key: 'org-metadata-rest-deploy', deprecated: false });
|
|
322
|
+
options.customConfigMeta = [...customConfigMeta, orgRestDeploy];
|
|
323
|
+
return super.create(options);
|
|
320
324
|
}
|
|
321
325
|
getPropertyMeta(key) {
|
|
322
326
|
const match = this.getAllowedProperties().find((element) => key === element.key);
|
|
@@ -334,7 +338,9 @@ class SfdxConfigAggregator extends ConfigAggregator {
|
|
|
334
338
|
return super.getPropertyValue(this.translate(key));
|
|
335
339
|
}
|
|
336
340
|
getInfo(key) {
|
|
337
|
-
|
|
341
|
+
const info = super.getInfo(this.translate(key));
|
|
342
|
+
info.key = this.translate(info.key, 'toOld');
|
|
343
|
+
return info;
|
|
338
344
|
}
|
|
339
345
|
getLocation(key) {
|
|
340
346
|
return super.getLocation(this.translate(key));
|
|
@@ -357,7 +363,4 @@ class SfdxConfigAggregator extends ConfigAggregator {
|
|
|
357
363
|
}
|
|
358
364
|
}
|
|
359
365
|
exports.SfdxConfigAggregator = SfdxConfigAggregator;
|
|
360
|
-
// org-metadata-rest-deploy has been moved to plugin-deploy-retrieve but we need to have a placeholder
|
|
361
|
-
// for it here since sfdx needs to know how to set the deprecated restDeploy config var.
|
|
362
|
-
SfdxConfigAggregator.CUSTOM_CONFIG_VARS = [{ key: 'org-metadata-rest-deploy', hidden: true }];
|
|
363
366
|
//# sourceMappingURL=configAggregator.js.map
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.OrgUsersConfig = void 0;
|
|
10
|
+
const global_1 = require("../global");
|
|
10
11
|
const configFile_1 = require("./configFile");
|
|
11
12
|
/**
|
|
12
13
|
* A config file that stores usernames for an org.
|
|
@@ -33,6 +34,7 @@ class OrgUsersConfig extends configFile_1.ConfigFile {
|
|
|
33
34
|
isState: true,
|
|
34
35
|
filename: `${orgId}.json`,
|
|
35
36
|
orgId,
|
|
37
|
+
stateFolder: global_1.Global.SFDX_STATE_FOLDER,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SandboxOrgConfig = void 0;
|
|
10
|
+
const global_1 = require("../global");
|
|
10
11
|
const configFile_1 = require("./configFile");
|
|
11
12
|
/**
|
|
12
13
|
* A config file that stores usernames for an org.
|
|
@@ -33,6 +34,7 @@ class SandboxOrgConfig extends configFile_1.ConfigFile {
|
|
|
33
34
|
isState: true,
|
|
34
35
|
filename: `${orgId}.sandbox.json`,
|
|
35
36
|
orgId,
|
|
37
|
+
stateFolder: global_1.Global.SFDX_STATE_FOLDER,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
}
|