@webitel/ui-sdk 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve-lib": "vue-cli-service serve",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"jszip-utils": "^0.1.0",
|
|
45
45
|
"node-polyfill-webpack-plugin": "^1.1.4",
|
|
46
46
|
"plyr": "3.6.2",
|
|
47
|
+
"query-string": "^8.1.0",
|
|
47
48
|
"sortablejs": "^1.15.0",
|
|
48
49
|
"tiny-emitter": "^2.1.0",
|
|
49
50
|
"vue": "^3.2.47",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import qs from 'query-string';
|
|
2
|
+
|
|
3
|
+
const generateUrlTransformer = (baseUrl) => (params) => {
|
|
4
|
+
const stringifyOptions = {
|
|
5
|
+
skipEmptyString: true,
|
|
6
|
+
skipNull: true,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const url = `${baseUrl}?${qs.stringify(params, stringifyOptions)}`;
|
|
10
|
+
return url;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default generateUrlTransformer;
|
|
@@ -7,6 +7,8 @@ import snakeToCamel from './snakeToCamel/snakeToCamel.transformer';
|
|
|
7
7
|
import handleUnauthorized from './handleUnauthorized/handleUnauthorized.transformer';
|
|
8
8
|
import notify from './notify/notify.transformer';
|
|
9
9
|
import sanitize from './sanitize/sanitize.transformer';
|
|
10
|
+
import generateUrl from './generateUrl/generateUrl.transformer';
|
|
11
|
+
import mergeEach from './mergeEach/mergeEach.transformer';
|
|
10
12
|
|
|
11
13
|
export default applyTransform;
|
|
12
14
|
export {
|
|
@@ -18,4 +20,6 @@ export {
|
|
|
18
20
|
snakeToCamel,
|
|
19
21
|
handleUnauthorized,
|
|
20
22
|
sanitize,
|
|
23
|
+
generateUrl,
|
|
24
|
+
mergeEach,
|
|
21
25
|
};
|