(index)
| 7 | const MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH; |
| 8 | |
| 9 | function throwIfDepthExceeded(index) { |
| 10 | if (index > MAX_DEPTH) { |
| 11 | throw new AxiosError( |
| 12 | 'FormData field is too deeply nested (' + index + ' levels). Max depth: ' + MAX_DEPTH, |
| 13 | AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED |
| 14 | ); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] |
no outgoing calls
no test coverage detected