( item: BatchItem, response: BatchResponseItem, status: number, )
| 93 | document.match(operationNamePattern)?.[1]; |
| 94 | |
| 95 | const toClientError = ( |
| 96 | item: BatchItem, |
| 97 | response: BatchResponseItem, |
| 98 | status: number, |
| 99 | ): ClientError => |
| 100 | new ClientError( |
| 101 | { ...response, status }, |
| 102 | { query: item.document, variables: item.variables }, |
| 103 | ); |
| 104 | |
| 105 | const rejectBatch = (items: BatchItem[], status: number, message: string) => { |
| 106 | items.forEach((item) => { |
no outgoing calls
no test coverage detected