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.
- package/Roots/App.js +3 -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
|
-
|
|
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 }
|