@sasjs/adapter 4.3.5 → 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.5"
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