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

Merged branch 'master' into 'issue-62'

This commit is contained in:
Yury Shkoda
2020-09-09 09:14:24 +03:00
11 changed files with 46 additions and 19 deletions

View File

@@ -3,7 +3,8 @@ import {
parseAndSubmitAuthorizeForm,
convertToCSV,
makeRequest,
isUri
isUri,
isUrl
} from './utils'
import * as NodeFormData from 'form-data'
import * as path from 'path'
@@ -27,7 +28,10 @@ export class SASViyaApiClient {
if (!rootFolderName) {
throw new Error('Root folder must be provided.')
}
if (serverUrl) isUrl(serverUrl)
}
private csrfToken: CsrfToken | null = null
private rootFolder: Folder | null = null
private sessionManager = new SessionManager(