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() {
5454 }
5555}
5656
57-
5857/**
5958 * Returns the value for the given key from the config object.
6059 * @param {string} key - Key to get from the config object
@@ -84,6 +83,16 @@ export function getConfigValue(key, defaultValue = null, typeConverter = null) {
8483}
8584
8685/**
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+ */
91+export function setConfigValue(_key, _value) {
92+ console.trace(color.yellow('setConfigValue is deprecated and should not be used.'));
93+}
94+
95+/**
8796 * Encodes the Basic Auth header value for the given user and password.
8897 * @param {string} auth username:password
8998 * @returns {string} Basic Auth header value