Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static getQueryParamsNames() {
const qbOptions = RequestQueryBuilder.getOptions();
const name = (n) => {
const selected = qbOptions.paramNamesMap[n];
return isString(selected) ? selected : selected[0];
};
return {
delim: qbOptions.delim,
delimStr: qbOptions.delimStr,
fields: name('fields'),
search: name('search'),
filter: name('filter'),
or: name('or'),
join: name('join'),
sort: name('sort'),
limit: name('limit'),
offset: name('offset'),