@sasjs/adapter 3.7.0 → 3.7.1
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
|
@@ -52,9 +52,13 @@ export class SasJsJobExecutor extends BaseJobExecutor {
|
|
|
52
52
|
authConfig?.access_token
|
|
53
53
|
)
|
|
54
54
|
.then(async (res: any) => {
|
|
55
|
+
const parsedSasjsServerLog = res.result.log
|
|
56
|
+
.map((logLine: any) => logLine.line)
|
|
57
|
+
.join('\n')
|
|
58
|
+
|
|
55
59
|
const resObj = {
|
|
56
60
|
result: res.result._webout,
|
|
57
|
-
log:
|
|
61
|
+
log: parsedSasjsServerLog
|
|
58
62
|
}
|
|
59
63
|
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
|
60
64
|
|
|
@@ -146,11 +146,16 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|
|
146
146
|
const requestPromise = new Promise((resolve, reject) => {
|
|
147
147
|
this.requestClient!.post(apiUrl, formData, authConfig?.access_token)
|
|
148
148
|
.then(async (res: any) => {
|
|
149
|
+
const parsedSasjsServerLog =
|
|
150
|
+
this.serverType === ServerType.Sasjs
|
|
151
|
+
? res.result.log.map((logLine: any) => logLine.line).join('\n')
|
|
152
|
+
: res.result.log
|
|
153
|
+
|
|
149
154
|
const resObj =
|
|
150
155
|
this.serverType === ServerType.Sasjs
|
|
151
156
|
? {
|
|
152
157
|
result: res.result._webout,
|
|
153
|
-
log:
|
|
158
|
+
log: parsedSasjsServerLog
|
|
154
159
|
}
|
|
155
160
|
: res
|
|
156
161
|
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|