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

chore(*): add .prettierrc, fix formatting

This commit is contained in:
Krishna Acondy
2020-08-31 09:15:02 +01:00
parent 688221c042
commit 929d7b993b
20 changed files with 225 additions and 209 deletions

View File

@@ -10,7 +10,7 @@ export class FileUploader {
private serverUrl: string,
private jobsPath: string,
private setCsrfTokenWeb: any,
private csrfToken: CsrfToken | null = null,
private csrfToken: CsrfToken | null = null
) {}
private retryCount = 0;
@@ -33,7 +33,7 @@ export class FileUploader {
}${paramsString}`;
const headers = {
"cache-control": "no-cache",
"cache-control": "no-cache"
};
return new Promise((resolve, reject) => {
@@ -49,7 +49,7 @@ export class FileUploader {
method: "POST",
body: formData,
referrerPolicy: "same-origin",
headers,
headers
})
.then(async (response) => {
if (!response.ok) {
@@ -60,7 +60,7 @@ export class FileUploader {
const token = response.headers.get(tokenHeader);
this.csrfToken = {
headerName: tokenHeader,
value: token || "",
value: token || ""
};
this.setCsrfTokenWeb(this.csrfToken);