File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ export interface RequestOptions {
5353 * Each certificate should be an object with a `cert` key containing the PEM
5454 * certificate as a string.
5555 */
56+ additionalTrustedCAs : Array < { cert : string } > ;
57+
58+ /**
59+ * Deprecated alias for `additionalTrustedCAs`
60+ *
61+ * @deprecated
62+ */
5663 trustAdditionalCAs ?: Array < { cert : string } > ;
5764
5865 /**
Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ export class HttpClient {
8484 effectivePort ,
8585 options . ignoreHostHttpsErrors ?? [ ]
8686 ) ;
87- const caConfig = this . getCaConfig ( options . trustAdditionalCAs ) ;
87+ const caConfig = this . getCaConfig (
88+ options . additionalTrustedCAs ||
89+ options . trustAdditionalCAs
90+ ) ;
8891
8992 const agent = await getAgent ( {
9093 protocol : url . protocol as 'http:' | 'https:' ,
You can’t perform that action at this time.
0 commit comments