(response: Response)
| 122 | }; |
| 123 | |
| 124 | const assertDriveResponse = async (response: Response) => { |
| 125 | if (response.ok || response.status === 308) return; |
| 126 | const text = await response.text().catch(() => ""); |
| 127 | throw new Error(`Google Drive request failed: ${response.status} ${text}`); |
| 128 | }; |
| 129 | |
| 130 | const escapeDriveQueryValue = (value: string) => |
| 131 | value.replace(/\\/g, "\\\\").replace(/'/g, "\\'"); |
no outgoing calls
no test coverage detected