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