@oclif/core
Advanced tools
+5
-17
@@ -159,19 +159,7 @@ "use strict"; | ||
| if (isConfig(opts)) { | ||
| /** | ||
| * Reload the Config based on the version required by the command. | ||
| * This is needed because the command is given the Config instantiated | ||
| * by the root plugin, which may be a different version than the one | ||
| * required by the command. | ||
| * | ||
| * Doing this ensures that the command can freely use any method on Config that | ||
| * exists in the version of Config required by the command but may not exist on the | ||
| * root's instance of Config. | ||
| */ | ||
| if (BASE !== opts._base) { | ||
| debug(`reloading config from ${opts._base} to ${BASE}`); | ||
| const config = new Config({ ...opts.options, plugins: opts.plugins }); | ||
| await config.load(); | ||
| return config; | ||
| } | ||
| return opts; | ||
| debug(`reloading config from ${opts._base} to ${BASE}`); | ||
| const pluginMap = new Map(opts.getPluginsList().map((p) => [p.name, p])); | ||
| const config = new Config({ ...opts.options, plugins: pluginMap }); | ||
| await config.load(); | ||
| return config; | ||
| } | ||
@@ -178,0 +166,0 @@ const config = new Config(opts); |
+1
-1
| { | ||
| "name": "@oclif/core", | ||
| "description": "base library for oclif CLIs", | ||
| "version": "4.8.3", | ||
| "version": "4.8.4", | ||
| "author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
411216
-0.14%10311
-0.12%