diff --git a/lib/utils/request/queryBuilder.d.ts b/lib/utils/request/queryBuilder.d.ts index 0fcdd25..d4fbcb9 100644 --- a/lib/utils/request/queryBuilder.d.ts +++ b/lib/utils/request/queryBuilder.d.ts @@ -1,5 +1,5 @@ -declare const queryStringBuilder: ({ filters, columnFilterName }: { - filters: any; - columnFilterName?: string | undefined; -}) => string; -export default queryStringBuilder; +declare const queryStringBuilder: ({ filters, columnFilterName }: { + filters: any; + columnFilterName?: string | undefined; +}) => string; +export default queryStringBuilder; diff --git a/lib/utils/request/queryBuilder.js b/lib/utils/request/queryBuilder.js index c1c96e8..33c632a 100644 --- a/lib/utils/request/queryBuilder.js +++ b/lib/utils/request/queryBuilder.js @@ -112,10 +112,9 @@ var queryStringBuilder = function queryStringBuilder(_ref9) { data: filters, columnFilterName: columnFilterName }); - }), R.join("&") // R.trim - )(filters); + }), R.join("&"))(filters); }; var _default = queryStringBuilder; exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9yZXF1ZXN0L3F1ZXJ5QnVpbGRlci50cyJdLCJuYW1lcyI6WyJrZXlUeXBlIiwia2V5IiwiZGF0YSIsIlIiLCJwaXBlIiwicHJvcCIsInR5cGUiLCJjb2x1bW5GaWx0ZXJEYXRhQnVpbGRlciIsImNvbHVtbkZpbHRlck5hbWUiLCJoZWFkIiwia2V5cyIsIm1hcCIsInBhdGgiLCJqb2luIiwib2JqRGF0YUJ1aWxkZXIiLCJlbmNvZGVVUklDb21wb25lbnQiLCJzaW1wbGVEYXRhQnVpbGRlciIsInZhbHVlIiwidmFsdWVzIiwiYXJyRGF0YUJ1aWxkZXIiLCJlcXVhbHMiLCJidWlsZGVyIiwicXVlcnlTdHJpbmdCdWlsZGVyIiwiZmlsdGVycyIsImZpbHRlciIsIngiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7OztBQUVBLElBQU1BLE9B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HVybiBgJHtrZXl9PSR7ZW5jb2RlVVJJQ29tcG9uZW50KFIucHJvcChrZXksIGRhdGEpKX1gO1xyXG4gICAgZGVmYXVsdDpcclxuICAgICAgcmV0dXJuIFwiXCI7XHJcbiAgfVxyXG59O1xyXG5cclxuY29uc3QgcXVlcnlTdHJpbmdCdWlsZGVyID0gKHtcclxuICBmaWx0ZXJzLFxyXG4gIGNvbHVtbkZpbHRlck5hbWVcclxufToge1xyXG4gIGZpbHRlcnM6IGFueTtcclxuICBjb2x1bW5GaWx0ZXJOYW1lPzogc3RyaW5nO1xyXG59KSA9PlxyXG4gIFIucGlwZShcclxuICAgIFIuZmlsdGVyKCh4OiBhbnkpID0+IHgpLFxyXG4gICAgUi5rZXlzLFxyXG4gICAgUi5tYXAoKGtleTogYW55KSA9PiBidWlsZGVyKHsga2V5LCBkYXRhOiBmaWx0ZXJzLCBjb2x1bW5GaWx0ZXJOYW1lIH0pKSxcclxuICAgIFIuam9pbihcIiZcIilcclxuICAgIC8vIFIudHJpbVxyXG4gICkoZmlsdGVycyk7XHJcblxyXG5leHBvcnQgZGVmYXVsdCBxdWVyeVN0cmluZ0J1aWxkZXI7XHJcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9yZXF1ZXN0L3F1ZXJ5QnVpbGRlci50cyJdLCJuYW1lcyI6WyJrZXlUeXBlIiwia2V5IiwiZGF0YSIsIlIiLCJwaXBlIiwicHJvcCIsInR5cGUiLCJjb2x1bW5GaWx0ZXJEYXRhQnVpbGRlciIsImNvbHVtbkZpbHRlck5hbWUiLCJoZWFkIiwia2V5cyIsIm1hcCIsInBhdGgiLCJqb2luIiwib2JqRGF0YUJ1aWxkZXIiLCJlbmNvZGVVUklDb21wb25lbnQiLCJzaW1wbGVEYXRhQnVpbGRlciIsInZhbHVlIiwidmFsdWVzIiwiYXJyRGF0YUJ1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GE6IFIucHJvcChrZXksIGRhdGEpIH0pO1xyXG4gICAgY2FzZSBcIk51bWJlclwiOlxyXG4gICAgY2FzZSBcIlN0cmluZ1wiOlxyXG4gICAgICByZXR1cm4gYCR7a2V5fT0ke2VuY29kZVVSSUNvbXBvbmVudChSLnByb3Aoa2V5LCBkYXRhKSl9YDtcclxuICAgIGRlZmF1bHQ6XHJcbiAgICAgIHJldHVybiBcIlwiO1xyXG4gIH1cclxufTtcclxuXHJcbmNvbnN0IHF1ZXJ5U3RyaW5nQnVpbGRlciA9ICh7XHJcbiAgZmlsdGVycyxcclxuICBjb2x1bW5GaWx0ZXJOYW1lXHJcbn06IHtcclxuICBmaWx0ZXJzOiBhbnk7XHJcbiAgY29sdW1uRmlsdGVyTmFtZT86IHN0cmluZztcclxufSkgPT5cclxuICBSLnBpcGUoXHJcbiAgICBSLmZpbHRlcigoeDogYW55KSA9PiB4KSxcclxuICAgIFIua2V5cyxcclxuICAgIFIubWFwKChrZXk6IGFueSkgPT4gYnVpbGRlcih7IGtleSwgZGF0YTogZmlsdGVycywgY29sdW1uRmlsdGVyTmFtZSB9KSksXHJcbiAgICBSLmpvaW4oXCImXCIpXHJcbiAgKShmaWx0ZXJzKTtcclxuXHJcbmV4cG9ydCBkZWZhdWx0IHF1ZXJ5U3RyaW5nQnVpbGRlcjtcclxuIl19 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f07a642..ab60b7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ark_ui_tools", - "version": "0.1.18", + "version": "0.1.19", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d79bbcd..0a768db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ark_ui_tools", - "version": "0.1.18", + "version": "0.1.19", "description": "", "keywords": [], "author": "",