🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@oclif/core

Package Overview
Dependencies
Maintainers
2
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version
4.8.3
to
4.8.4
+5
-17
lib/config/config.js

@@ -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);

{
"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",