|
| 1 | +/** |
| 2 | + *@fileoverview This file is imported externally by things like vscode-coder so |
| 3 | + * it must not import anything using aliases otherwise it will break when being |
| 4 | + * imported by those external consumers. For example, `utils/delay` must be |
| 5 | + * imported using `../utils/delay` instead. |
| 6 | + */ |
| 7 | + |
1 | 8 | importaxios,{isAxiosError}from"axios";
|
2 | 9 | importtypedayjsfrom"dayjs";
|
3 | 10 | importuserAgentParserfrom"ua-parser-js";
|
4 |
| -import{delay}from"utils/delay"; |
| 11 | +import{delay}from"../utils/delay"; |
5 | 12 | import*asTypesGenfrom"./typesGenerated";
|
6 |
| -// This needs to include the `../`, otherwise it breaks when importing into |
7 |
| -// vscode-coder. |
8 | 13 |
|
9 | 14 | // Adds 304 for the default axios validateStatus function
|
10 | 15 | // https://github.com/axios/axios#handling-errors Check status here
|
|