src/server/config-loader.js
/**
 * Sanitizes config object
 *
 * @private
 * @param {string} configStr JSON string of the configuration object
 * @param {boolean} [sanitizeVersion] Sanitize the version configuration object. If unset, the object will be sanitized
 */
Sanitizes config object
@private
@param {string} configStr JSON string of the configuration object
@param {boolean} [sanitizeVersion] Sanitize the version configuration object. If unset, the object will be sanitized
Sanitizes config object @private @param { string } configStr JSON string of the configuration object @param { boolean } [ sanitizeVersion ] Sanitize the version configuration object . If unset the object will be sanitized
function __sanitizeConfigObj(configStr, sanitizeVersion = true)
{
    let config = JSON.parse(configStr);
    if(sanitizeVersion)
        __sanitizeConfigObj_version(config);
    __sanitizeConfigObj_instance(config);
    __sanitizeConfigObj_server(config);
    return config;
}
function __sanitizeConfigObj ( configStr , sanitizeVersion = true ) { let config = JSON . parse ( configStr ) ; if ( sanitizeVersion ) __sanitizeConfigObj_version ( config ) ; __sanitizeConfigObj_instance ( config ) ; __sanitizeConfigObj_server ( config ) ; return config ; }
Sanitizes config object
 @private
 @param {string} configStr JSON string of the configuration object
 @param {boolean} [sanitizeVersion] Sanitize the version configuration object.
Sanitizes config object @private @param { string } configStr JSON string of the configuration object @param { boolean } [ sanitizeVersion ] Sanitize the version configuration object .