(caBundlePath: undefined | string | string[])
| 113 | } |
| 114 | |
| 115 | async getCa(caBundlePath: undefined | string | string[]): Promise<string[]> { |
| 116 | if (!caBundlePath) { |
| 117 | return this.fixedCa; |
| 118 | } |
| 119 | |
| 120 | const customCerts = await this.getAllCachedCustomCerts(caBundlePath); |
| 121 | return [...this.fixedCa, ...customCerts]; |
| 122 | } |
| 123 | |
| 124 | async clear(): Promise<void> { |
| 125 | this._customCerts.clear(); |
no test coverage detected