@sasjs/adapter 3.7.3 → 3.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,6 +71,8 @@ export declare class RequestClient implements HttpClient {
71
71
  }>;
72
72
  post<T>(url: string, data: any, accessToken: string | undefined, contentType?: string, overrideHeaders?: {
73
73
  [key: string]: string | number;
74
+ }, additionalSettings?: {
75
+ [key: string]: string | number;
74
76
  }): Promise<{
75
77
  result: T;
76
78
  etag: string;
package/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  "https": "1.0.0",
81
81
  "tough-cookie": "4.0.0"
82
82
  },
83
- "version": "3.7.3"
83
+ "version": "3.7.4"
84
84
  }
@@ -71,6 +71,8 @@ export declare class RequestClient implements HttpClient {
71
71
  }>;
72
72
  post<T>(url: string, data: any, accessToken: string | undefined, contentType?: string, overrideHeaders?: {
73
73
  [key: string]: string | number;
74
+ }, additionalSettings?: {
75
+ [key: string]: string | number;
74
76
  }): Promise<{
75
77
  result: T;
76
78
  etag: string;
@@ -37,7 +37,10 @@ export class SASjsApiClient {
37
37
  }>(
38
38
  'SASjsApi/drive/deploy',
39
39
  { fileTree: members, appLoc: appLoc },
40
- access_token
40
+ access_token,
41
+ undefined,
42
+ {},
43
+ { maxContentLength: Infinity, maxBodyLength: Infinity }
41
44
  )
42
45
 
43
46
  return Promise.resolve(result)
@@ -207,7 +207,8 @@ export class RequestClient implements HttpClient {
207
207
  data: any,
208
208
  accessToken: string | undefined,
209
209
  contentType = 'application/json',
210
- overrideHeaders: { [key: string]: string | number } = {}
210
+ overrideHeaders: { [key: string]: string | number } = {},
211
+ additionalSettings: { [key: string]: string | number } = {}
211
212
  ): Promise<{ result: T; etag: string }> {
212
213
  const headers = {
213
214
  ...this.getHeaders(accessToken, contentType),
@@ -215,7 +216,11 @@ export class RequestClient implements HttpClient {
215
216
  }
216
217
 
217
218
  return this.httpClient
218
- .post<T>(url, data, { headers, withCredentials: true })
219
+ .post<T>(url, data, {
220
+ headers,
221
+ withCredentials: true,
222
+ ...additionalSettings
223
+ })
219
224
  .then((response) => {
220
225
  throwIfError(response)
221
226