@oclif/core 2.11.7 → 2.11.9
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/config.d.ts +1 -0
- package/lib/config/config.js +4 -1
- package/package.json +1 -1
package/lib/config/config.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export declare class Config implements IConfig {
|
|
|
104
104
|
get versionDetails(): VersionDetails;
|
|
105
105
|
s3Key(type: keyof PJSON.S3.Templates, ext?: '.tar.gz' | '.tar.xz' | IConfig.s3Key.Options, options?: IConfig.s3Key.Options): string;
|
|
106
106
|
s3Url(key: string): string;
|
|
107
|
+
getPluginsList(): IPlugin[];
|
|
107
108
|
protected dir(category: 'cache' | 'data' | 'config'): string;
|
|
108
109
|
protected windowsHome(): string | undefined;
|
|
109
110
|
protected windowsHomedriveHome(): string | undefined;
|
package/lib/config/config.js
CHANGED
|
@@ -356,7 +356,7 @@ class Config {
|
|
|
356
356
|
* @returns {string[]} e.g. ['SF_DEBUG', 'SFDX_DEBUG']
|
|
357
357
|
*/
|
|
358
358
|
scopedEnvVarKeys(k) {
|
|
359
|
-
return [this.bin, ...this.binAliases ?? []].map(alias => [alias.replace(/@/g, '').replace(/[/-]/g, '_'), k].join('_').toUpperCase());
|
|
359
|
+
return [this.bin, ...this.binAliases ?? []].filter(alias => Boolean(alias)).map(alias => [alias.replace(/@/g, '').replace(/[/-]/g, '_'), k].join('_').toUpperCase());
|
|
360
360
|
}
|
|
361
361
|
findCommand(id, opts = {}) {
|
|
362
362
|
const lookupId = this.getCmdLookupId(id);
|
|
@@ -460,6 +460,9 @@ class Config {
|
|
|
460
460
|
url.pathname = path.join(url.pathname, key);
|
|
461
461
|
return url.toString();
|
|
462
462
|
}
|
|
463
|
+
getPluginsList() {
|
|
464
|
+
return this.plugins;
|
|
465
|
+
}
|
|
463
466
|
dir(category) {
|
|
464
467
|
const base = process.env[`XDG_${category.toUpperCase()}_HOME`] ||
|
|
465
468
|
(this.windows && process.env.LOCALAPPDATA) ||
|