File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ export const sensitiveConfigKeys: Set<keyof LocalConfig> = new Set(['apiToken'])
4242let _cachedConfig : LocalConfig | undefined
4343// When using --config or SOCKET_CLI_CONFIG_OVERRIDE, do not persist the config.
4444let _readOnlyConfig = false
45- export function overrideCachedConfig ( config : unknown ) {
46- _cachedConfig = config as LocalConfig
45+ export function overrideCachedConfig ( config : object ) {
46+ _cachedConfig = { ... config } as LocalConfig
4747 _readOnlyConfig = true
4848 // Normalize apiKey to apiToken.
4949 if ( _cachedConfig [ 'apiKey' ] ) {
@@ -177,7 +177,7 @@ export function updateConfigValue<Key extends keyof LocalConfig>(
177177 const localConfig = getConfigValues ( )
178178 localConfig [ normalizeConfigKey ( key ) as Key ] = value
179179 if ( _readOnlyConfig ) {
180- logger . error (
180+ logger . warn (
181181 'Not persisting config change; current config overridden through env var or flag'
182182 )
183183 } else if ( ! _pendingSave ) {
You can’t perform that action at this time.
0 commit comments