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

chore: removed httpsAgent type + clean up

This commit is contained in:
Saad Jutt
2021-10-07 13:45:50 +05:00
parent 2849e6ed07
commit 6ff8eece7b
11 changed files with 46 additions and 143 deletions

View File

@@ -1,10 +0,0 @@
export interface HttpsAgent {
selfSigned?: {
ca: string[]
}
clientCA?: {
key: string
cert: string
}
allowInsecure?: boolean
}

View File

@@ -1,5 +1,5 @@
import * as https from 'https'
import { ServerType } from '@sasjs/utils/types'
import { HttpsAgent } from './HttpsAgent'
/**
* Specifies the configuration for the SASjs instance - eg where and how to
@@ -59,7 +59,9 @@ export class SASjsConfig {
* When set to `true`, the adapter will allow requests to SAS servers that use a self-signed SSL certificate.
* Changing this setting is not recommended.
*/
httpsAgentConfiguration: HttpsAgent = {}
httpsAgentOptions?: https.AgentOptions
/**
* Supported login mechanisms are - Redirected and Default
*/

View File

@@ -2,7 +2,6 @@ export * from './Context'
export * from './CsrfToken'
export * from './Folder'
export * from './File'
export * from './HttpsAgent'
export * from './Job'
export * from './JobDefinition'
export * from './JobResult'