Save setConfigValue export

73784642d27e9d877c069f9e25464144ea5ebc9f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +10 -1Showing whitespace changes
src/util.js+10 -1
@@ -54,7 +54,6 @@ export function getConfig() {
54 }54 }
55}55}
5656
57
58/**57/**
59 * Returns the value for the given key from the config object.58 * Returns the value for the given key from the config object.
60 * @param {string} key - Key to get from the config object59 * @param {string} key - Key to get from the config object
@@ -84,6 +83,16 @@ export function getConfigValue(key, defaultValue = null, typeConverter = null) {
84}83}
8584
86/**85/**
86 * THIS FUNCTION IS DEPRECATED AND ONLY EXISTS FOR BACKWARDS COMPATIBILITY. DON'T USE IT.
87 * @param {any} _key Unused
88 * @param {any} _value Unused
89 * @deprecated Configs are read-only. Use environment variables instead.
90 */
91export function setConfigValue(_key, _value) {
92 console.trace(color.yellow('setConfigValue is deprecated and should not be used.'));
93}
94
95/**
87 * Encodes the Basic Auth header value for the given user and password.96 * Encodes the Basic Auth header value for the given user and password.
88 * @param {string} auth username:password97 * @param {string} auth username:password
89 * @returns {string} Basic Auth header value98 * @returns {string} Basic Auth header value