@sasjs/adapter 4.3.4 → 4.3.6

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/package.json CHANGED
@@ -84,5 +84,5 @@
84
84
  "https": "1.0.0",
85
85
  "tough-cookie": "4.0.0"
86
86
  },
87
- "version": "4.3.4"
87
+ "version": "4.3.6"
88
88
  }
@@ -93,8 +93,10 @@ export class SasjsJobExecutor extends BaseJobExecutor {
93
93
  )
94
94
  }
95
95
 
96
- const { result } = res.result
97
- if (result && result.trim()) res.result = getValidJson(result)
96
+ const { result } = res
97
+
98
+ if (result && typeof result === 'string' && result.trim())
99
+ res.result = getValidJson(result)
98
100
 
99
101
  this.requestClient!.appendRequest(res, sasJob, config.debug)
100
102
 
@@ -48,7 +48,7 @@ export class SasjsRequestClient extends RequestClient {
48
48
  const splittedResponse = response.data.split(SASJS_LOGS_SEPARATOR)
49
49
 
50
50
  webout = splittedResponse[0]
51
- if (webout) parsedResponse = webout
51
+ if (webout !== undefined) parsedResponse = webout
52
52
 
53
53
  log = splittedResponse[1]
54
54
  printOutput = splittedResponse[2]