tradly 1.0.41 → 1.0.44

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 +3 -2
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -202,8 +202,9 @@ class App {
202
202
  else { return responseJson }
203
203
  } catch (error) { return error }
204
204
  }
205
- async commonFuntion(param={path,data,authKey,Method}) {
206
- try { const [error, responseJson] = await network.networkCall({path:param.path,method:param.Method,authKey:param.authKey,param:param.data});
205
+ async commonFuntion(param={path,bodyParam,data,authKey,Method}) {
206
+ let url = param.bodyParam == undefined || param.bodyParam == '' ? '' : `?${serialization(param.bodyParam)}`;
207
+ try { const [error, responseJson] = await network.networkCall({path:param.path + url,method:param.Method,authKey:param.authKey,param:param.data});
207
208
  if (error) { return error }
208
209
  else { return responseJson }
209
210
  } catch (error) { return error }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.41",
3
+ "version": "1.0.44",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",