@sasjs/adapter 3.10.11 → 3.10.12

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
@@ -87,5 +87,5 @@
87
87
  "https": "1.0.0",
88
88
  "tough-cookie": "4.0.0"
89
89
  },
90
- "version": "3.10.11"
90
+ "version": "3.10.12"
91
91
  }
@@ -154,8 +154,12 @@ export class RequestClient implements HttpClient {
154
154
  sasWork = log
155
155
  }
156
156
  } else if (response?.result) {
157
- sourceCode = parseSourceCode(response.result)
158
- generatedCode = parseGeneratedCode(response.result)
157
+ // We parse only if it's a string, otherwise it would throw error
158
+ if (typeof response.result === 'string') {
159
+ sourceCode = parseSourceCode(response.result)
160
+ generatedCode = parseGeneratedCode(response.result)
161
+ }
162
+
159
163
  sasWork = response.result.WORK
160
164
  }
161
165
  }