@plusscommunities/pluss-core-web 1.4.18 → 1.4.19
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/helper/api/getUrl.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -651,7 +651,7 @@ var getUrl = function getUrl(baseAction, action, query) {
|
|
|
651
651
|
|
|
652
652
|
if (query) {
|
|
653
653
|
___default['default'].keys(query).forEach(function (key, index) {
|
|
654
|
-
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(query[key]);
|
|
654
|
+
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(encodeURIComponent(query[key]));
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
|
package/dist/index.esm.js
CHANGED
|
@@ -621,7 +621,7 @@ var getUrl = function getUrl(baseAction, action, query) {
|
|
|
621
621
|
|
|
622
622
|
if (query) {
|
|
623
623
|
_.keys(query).forEach(function (key, index) {
|
|
624
|
-
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(query[key]);
|
|
624
|
+
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(encodeURIComponent(query[key]));
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
|
package/dist/index.umd.js
CHANGED
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
|
|
623
623
|
if (query) {
|
|
624
624
|
___default['default'].keys(query).forEach(function (key, index) {
|
|
625
|
-
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(query[key]);
|
|
625
|
+
queryPart += "".concat(index === 0 ? '?' : '&').concat(key, "=").concat(encodeURIComponent(query[key]));
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
|
package/package.json
CHANGED
package/src/helper/api/getUrl.js
CHANGED
|
@@ -6,7 +6,7 @@ const getUrl = (baseAction, action, query, { url, stage } = { url: null, stage:
|
|
|
6
6
|
let queryPart = '';
|
|
7
7
|
if (query) {
|
|
8
8
|
_.keys(query).forEach((key, index) => {
|
|
9
|
-
queryPart += `${index === 0 ? '?' : '&'}${key}=${query[key]}`;
|
|
9
|
+
queryPart += `${index === 0 ? '?' : '&'}${key}=${encodeURIComponent(query[key])}`;
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
return `${url || baseAPIUrl}/${baseAction}-${stage || baseStage}/${action}${queryPart}`;
|