1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 09:24:35 +00:00

chore(*): change import to require

This commit is contained in:
Krishna Acondy
2021-02-05 12:21:33 +00:00
parent 23f8d31b1b
commit 851b6bc273

View File

@@ -5,7 +5,6 @@ import { LoginRequiredError } from '../types'
import { AuthorizeError } from '../types/AuthorizeError'
import { NotFoundError } from '../types/NotFoundError'
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
import * as https from 'https'
export interface HttpClient {
get<T>(
@@ -45,6 +44,7 @@ export class RequestClient implements HttpClient {
private httpClient: AxiosInstance
constructor(private baseUrl: string, allowInsecure = false) {
const https = require('https')
this.httpClient = axios.create({
baseURL: baseUrl,
httpsAgent: new https.Agent({