Save setConfigValue export

This commit is contained in:
Cohee
2025-02-20 22:31:23 +02:00
parent 2b28065c9f
commit 73784642d2

View File

@@ -54,7 +54,6 @@ export function getConfig() {
}
}
/**
* Returns the value for the given key from the config object.
* @param {string} key - Key to get from the config object
@@ -83,6 +82,16 @@ export function getConfigValue(key, defaultValue = null, typeConverter = null) {
}
}
/**
* THIS FUNCTION IS DEPRECATED AND ONLY EXISTS FOR BACKWARDS COMPATIBILITY. DON'T USE IT.
* @param {any} _key Unused
* @param {any} _value Unused
* @deprecated Configs are read-only. Use environment variables instead.
*/
export function setConfigValue(_key, _value) {
console.trace(color.yellow('setConfigValue is deprecated and should not be used.'));
}
/**
* Encodes the Basic Auth header value for the given user and password.
* @param {string} auth username:password