MCPcopy Index your code
hub / github.com/CapSoftware/Cap / parseDriveJson

Function parseDriveJson

packages/web-backend/src/Storage/GoogleDrive.ts:118–122  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

116 });
117
118const parseDriveJson = async <T>(response: Response) => {
119 const text = await response.text();
120 if (!text) return {} as T;
121 return JSON.parse(text) as T;
122};
123
124const assertDriveResponse = async (response: Response) => {
125 if (response.ok || response.status === 308) return;

Callers 5

ensureGoogleDriveFolderFunction · 0.85
copyGoogleDriveFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected