mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-11 06:10:05 +00:00
feat(*): recreate package with new name
This commit is contained in:
12
src/utils/parseSasViyaLog.ts
Normal file
12
src/utils/parseSasViyaLog.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const parseSasViyaLog = (logResponse: { items: any[] }) => {
|
||||
let log;
|
||||
try {
|
||||
log = logResponse.items
|
||||
? logResponse.items.map((i) => i.line).join("\n")
|
||||
: JSON.stringify(logResponse);
|
||||
} catch (e) {
|
||||
console.error("An error has occurred while parsing the log response", e);
|
||||
log = logResponse;
|
||||
}
|
||||
return log;
|
||||
};
|
||||
Reference in New Issue
Block a user