tradly 1.1.19 → 1.1.20

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.
Files changed (2) hide show
  1. package/Roots/App.js +8 -3
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -544,7 +544,7 @@ class App {
544
544
  }
545
545
  if (param.slug != undefined) {
546
546
  if (param.slug.length != 0) {
547
- path = SLUG + `${param.slug}`;
547
+ path = SLUG + `${encodeURIComponent(param.slug)}`;
548
548
  }
549
549
  }
550
550
  try {
@@ -770,7 +770,7 @@ class App {
770
770
  }
771
771
  if (param.slug != undefined) {
772
772
  if (param.slug.length != 0) {
773
- path = SLUG + `${param.slug}`;
773
+ path = SLUG + `${encodeURIComponent(param.slug)}`;
774
774
  }
775
775
  }
776
776
  try {
@@ -1397,7 +1397,12 @@ class App {
1397
1397
  : `?${serialization(param.bodyParam)}`;
1398
1398
  try {
1399
1399
  const [error, responseJson] = await network.networkCall({
1400
- path: CATEGORY + `/by_slug/${param.slug}` + url,
1400
+ path:
1401
+ CATEGORY +
1402
+ `/by_slug/${encodeURIComponent(
1403
+ param.slug
1404
+ )}` +
1405
+ url,
1401
1406
  method: Method.GET,
1402
1407
  authKey: param.authKey,
1403
1408
  currency: param.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",