mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-11 14:20:05 +00:00
chore: removed httpsAgent type + clean up
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as https from 'https'
|
||||
import { generateTimestamp } from '@sasjs/utils/time'
|
||||
import * as NodeFormData from 'form-data'
|
||||
import { Sas9RequestClient } from './request/Sas9RequestClient'
|
||||
import { HttpsAgent } from './types/HttpsAgent'
|
||||
import { isUrl } from './utils'
|
||||
|
||||
/**
|
||||
@@ -14,13 +14,10 @@ export class SAS9ApiClient {
|
||||
constructor(
|
||||
private serverUrl: string,
|
||||
private jobsPath: string,
|
||||
httpsAgentConfiguration?: HttpsAgent
|
||||
httpsAgentOptions?: https.AgentOptions
|
||||
) {
|
||||
if (serverUrl) isUrl(serverUrl)
|
||||
this.requestClient = new Sas9RequestClient(
|
||||
serverUrl,
|
||||
httpsAgentConfiguration
|
||||
)
|
||||
this.requestClient = new Sas9RequestClient(serverUrl, httpsAgentOptions)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user