()
| 73506 | const err = reason instanceof Error ? reason : this.reason; |
| 73507 | controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)); |
| 73508 | } |
| 73509 | }; |
| 73510 | let timer = timeout && setTimeout(() => { |
| 73511 | timer = null; |
| 73512 | onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT)); |
| 73513 | }, timeout); |
| 73514 | const unsubscribe = () => { |
| 73515 | if (signals) { |
| 73516 | timer && clearTimeout(timer); |
| 73517 | timer = null; |
| 73518 | signals.forEach((signal2) => { |
| 73519 | signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort); |
| 73520 | }); |
no test coverage detected
searching dependent graphs…