()
| 112 | } |
| 113 | |
| 114 | async isAvailable(): Promise<boolean> { |
| 115 | if (this.available === true) { |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | try { |
| 120 | await this.getClient(); |
| 121 | this.available = true; |
| 122 | return true; |
| 123 | } catch { |
| 124 | this.invalidateAvailabilityCache(); |
| 125 | return false; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | async resolve(ref: string): Promise<string | undefined> { |
| 130 | if (!ref.startsWith(OP_REF_PREFIX)) { |
no test coverage detected