From eae9f8a33136ba10056270057e34e4edfe8a3c9b Mon Sep 17 00:00:00 2001 From: Ballinette Date: Fri, 29 May 2020 11:15:29 +0200 Subject: [PATCH] fix linting --- src/classes/Agent.js | 1 + src/types.js | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/classes/Agent.js b/src/classes/Agent.js index faff0f26..70f8bbfb 100644 --- a/src/classes/Agent.js +++ b/src/classes/Agent.js @@ -120,6 +120,7 @@ class Agent { host: configuration.hostname || configuration.host, port: configuration.port || 80, proxy, + tls: {}, }; // add optional tls options for https requests. diff --git a/src/types.js b/src/types.js index c012a74c..e2f1a993 100644 --- a/src/types.js +++ b/src/types.js @@ -19,9 +19,29 @@ export type ProxyConfigurationType = {| +port: number, |}; +export type TlsConfigurationType = {| + +ca?: string, + +cert?: string, + +ciphers?: string, + +clientCertEngine?: string, + +crl?: string, + +dhparam?: string, + +ecdhCurve?: string, + +honorCipherOrder?: boolean, + +key?: string, + +passphrase?: string, + +pfx?: string, + +rejectUnauthorized?: boolean, + +secureOptions?: number, + +secureProtocol?: string, + +servername?: string, + +sessionIdContext?: string, +|}; + export type ConnectionConfigurationType = {| +host: string, +port: number, + +tls?: TlsConfigurationType, +proxy: ProxyConfigurationType, |};