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

BREAKING CHANGE: boolean allowInsecure is replaced configuration of Https Agent

This commit is contained in:
Saad Jutt
2021-09-28 16:02:12 +05:00
parent f964bcef9e
commit f0ecfa57e5
8 changed files with 57 additions and 26 deletions

View File

@@ -4,6 +4,7 @@ import { ErrorResponse } from '../types/errors'
import { convertToCSV, isRelativePath } from '../utils'
import { BaseJobExecutor } from './JobExecutor'
import { Sas9RequestClient } from '../request/Sas9RequestClient'
import { HttpsAgent } from '../types/HttpsAgent'
/**
* Job executor for SAS9 servers for use in Node.js environments.
@@ -17,10 +18,13 @@ export class Sas9JobExecutor extends BaseJobExecutor {
serverUrl: string,
serverType: ServerType,
private jobsPath: string,
allowInsecureRequests: boolean
httpsAgentConfiguration: HttpsAgent
) {
super(serverUrl, serverType)
this.requestClient = new Sas9RequestClient(serverUrl, allowInsecureRequests)
this.requestClient = new Sas9RequestClient(
serverUrl,
httpsAgentConfiguration
)
}
async execute(sasJob: string, data: any, config: any) {