()
| 131 | constructor(private bundleBuilder: BundleBuilder) {} |
| 132 | |
| 133 | onCreateBundle(): void { |
| 134 | if (this.primaryURL === null) { |
| 135 | throw new Error('Primary URL is not set'); |
| 136 | } |
| 137 | if (!this.index.has(this.primaryURL)) { |
| 138 | throw new Error( |
| 139 | `Exchange for primary URL (${this.primaryURL}) does not exist` |
| 140 | ); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | setPrimaryURL(url: string): BundleBuilder { |
| 145 | if (this.primaryURL !== null) { |
nothing calls this directly
no outgoing calls
no test coverage detected