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

feat: added isUrl validation utility

This commit is contained in:
Yury Shkoda
2020-09-07 16:32:53 +03:00
parent 1f970e1102
commit 0eb9bc43ff
6 changed files with 33 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { isLogInRequired, needsRetry } from './utils'
import { isLogInRequired, needsRetry, isUrl } from './utils'
import { CsrfToken } from './types/CsrfToken'
import { UploadFile } from './types/UploadFile'
@@ -11,7 +11,10 @@ export class FileUploader {
private jobsPath: string,
private setCsrfTokenWeb: any,
private csrfToken: CsrfToken | null = null
) {}
) {
if (serverUrl) isUrl(serverUrl)
}
private retryCount = 0
public uploadFile(sasJob: string, files: UploadFile[], params: any) {