1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

fix: replace isValidJson with getValidJson

This commit is contained in:
2021-07-18 23:24:22 +05:00
parent 7ac7c5e52b
commit 5347aeba09
6 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import { isUrl, isValidJson, parseSasViyaDebugResponse } from './utils'
import { isUrl, getValidJson, parseSasViyaDebugResponse } from './utils'
import { UploadFile } from './types/UploadFile'
import { ErrorResponse, LoginRequiredError } from './types/errors'
import { RequestClient } from './request/RequestClient'
@@ -77,12 +77,12 @@ export class FileUploader {
this.sasjsConfig.serverUrl
)
return typeof jsonResponse === 'string'
? isValidJson(jsonResponse)
? getValidJson(jsonResponse)
: jsonResponse
}
return typeof res.result === 'string'
? isValidJson(res.result)
? getValidJson(res.result)
: res.result
//TODO: append to SASjs requests