(...args)
| 21 | // const defaultFetchMethod = (...args) => console.log(...args) // mock |
| 22 | |
| 23 | const defaultFetchMethod = async function (...args) { |
| 24 | return requestJson(...args) |
| 25 | .catch( error => { |
| 26 | if ( error?.response?.status !== 404 ) { |
| 27 | console.error( error ) |
| 28 | } |
| 29 | |
| 30 | throw error |
| 31 | }) |
| 32 | } |
| 33 | |
| 34 | // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods |
| 35 | const HTTP_METHODS = [ |
nothing calls this directly
no test coverage detected