@salesforce/core 3.15.3 → 3.15.4
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,7 +219,6 @@ export declare namespace ConfigAggregator {
|
|
|
219
219
|
* @deprecated
|
|
220
220
|
*/
|
|
221
221
|
export declare class SfdxConfigAggregator extends ConfigAggregator {
|
|
222
|
-
private static CUSTOM_CONFIG_VARS;
|
|
223
222
|
constructor(options?: ConfigAggregator.Options);
|
|
224
223
|
getPropertyMeta(key: string): ConfigPropertyMeta;
|
|
225
224
|
getPropertyValue<T extends AnyJson>(key: string): Optional<T>;
|
|
@@ -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
|
/**
|
|
@@ -315,8 +315,12 @@ ConfigAggregator.encrypted = true;
|
|
|
315
315
|
class SfdxConfigAggregator extends ConfigAggregator {
|
|
316
316
|
constructor(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
|
+
super(options);
|
|
320
324
|
}
|
|
321
325
|
getPropertyMeta(key) {
|
|
322
326
|
const match = this.getAllowedProperties().find((element) => key === element.key);
|
|
@@ -359,7 +363,4 @@ class SfdxConfigAggregator extends ConfigAggregator {
|
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
exports.SfdxConfigAggregator = SfdxConfigAggregator;
|
|
362
|
-
// org-metadata-rest-deploy has been moved to plugin-deploy-retrieve but we need to have a placeholder
|
|
363
|
-
// for it here since sfdx needs to know how to set the deprecated restDeploy config var.
|
|
364
|
-
SfdxConfigAggregator.CUSTOM_CONFIG_VARS = [{ key: 'org-metadata-rest-deploy', hidden: true }];
|
|
365
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
|
}
|