@salesforce/core-bundle 8.18.0 → 8.18.2
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/index.d.ts +7 -3
- package/lib/index.js +1324 -53
- package/messages/config.md +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ declare module '@salesforce/core-bundle/config/configAggregator' {
|
|
|
369
369
|
*/
|
|
370
370
|
export class ConfigAggregator extends AsyncOptionalCreatable<ConfigAggregator.Options> {
|
|
371
371
|
protected static encrypted: boolean;
|
|
372
|
-
protected static
|
|
372
|
+
protected static instances: Map<string, ConfigAggregator>;
|
|
373
373
|
private static readonly mutex;
|
|
374
374
|
private allowedProperties;
|
|
375
375
|
private readonly localConfig?;
|
|
@@ -382,20 +382,22 @@ declare module '@salesforce/core-bundle/config/configAggregator' {
|
|
|
382
382
|
*/
|
|
383
383
|
constructor(options?: ConfigAggregator.Options);
|
|
384
384
|
private get config();
|
|
385
|
+
static create<T extends ConfigAggregator>(this: new (options?: ConfigAggregator.Options) => T, options?: ConfigAggregator.Options): Promise<T>;
|
|
385
386
|
static create<P extends ConfigAggregator.Options, T extends AsyncOptionalCreatable<P>>(this: new (options?: P) => T, options?: P): Promise<T>;
|
|
386
387
|
/**
|
|
387
388
|
* Clear the cache to force reading from disk.
|
|
389
|
+
* If no projectPath is provided, all instances will be cleared.
|
|
388
390
|
*
|
|
389
391
|
* *NOTE: Only call this method if you must and you know what you are doing.*
|
|
390
392
|
*/
|
|
391
|
-
static clearInstance(): Promise<void>;
|
|
393
|
+
static clearInstance(projectPath?: string): Promise<void>;
|
|
392
394
|
/**
|
|
393
395
|
* Get the info for a given key. If the ConfigAggregator was not asynchronously created OR
|
|
394
396
|
* the {@link ConfigAggregator.reload} was not called, the config value may be encrypted.
|
|
395
397
|
*
|
|
396
398
|
* @param key The config key.
|
|
397
399
|
*/
|
|
398
|
-
static getValue(key: string): ConfigInfo;
|
|
400
|
+
static getValue(key: string, projectPath?: string): ConfigInfo;
|
|
399
401
|
/**
|
|
400
402
|
* Get the static ConfigAggregator instance. If one doesn't exist, one will be created with
|
|
401
403
|
* the **encrypted** config values. Encrypted config values need to be resolved
|
|
@@ -535,6 +537,8 @@ declare module '@salesforce/core-bundle/config/configAggregator' {
|
|
|
535
537
|
}
|
|
536
538
|
type Options = {
|
|
537
539
|
customConfigMeta?: ConfigPropertyMeta[];
|
|
540
|
+
/** an absolute path to the project root */
|
|
541
|
+
projectPath?: string;
|
|
538
542
|
};
|
|
539
543
|
}
|
|
540
544
|
|