playov2-js-utilities 0.3.46 → 0.3.47

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.
@@ -36,11 +36,11 @@ const responseHandler = (resp, requestId) => {
36
36
  const { status, data, config = { url: '' } } = resp;
37
37
  const { url = '' } = config;
38
38
  if (status === 200) {
39
- const { requestStatus } = data;
39
+ const { requestStatus, message = 'success' } = data;
40
40
  if (!requestStatus && requestStatus != 0) { //if the service does not provide request status
41
41
  data["requestStatus"] = 1;
42
42
  }
43
- Logger.prepareInfoLog(requestId, data, `Api call to url to ${url} succeeded with status ${status}`)
43
+ Logger.prepareInfoLog(requestId, {requestStatus: data.requestStatus, message}, `Api call to url to ${url} succeeded with status ${status}`)
44
44
  return data
45
45
  }
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playov2-js-utilities",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "description": "Private package for JS utility functions",
5
5
  "main": "index.js",
6
6
  "scripts": {