(response: any)
| 980 | } |
| 981 | |
| 982 | const responseMeta = (response: any) => { |
| 983 | const headers = |
| 984 | response && response.headers && typeof response.headers.entries === "function" |
| 985 | ? Object.fromEntries(response.headers.entries()) |
| 986 | : undefined |
| 987 | return { |
| 988 | status: response?.status, |
| 989 | statusText: response?.statusText, |
| 990 | headers, |
| 991 | hasText: typeof response?.text === "function", |
| 992 | hasJson: typeof response?.json === "function", |
| 993 | hasArrayBuffer: typeof response?.arrayBuffer === "function", |
| 994 | type: response ? Object.prototype.toString.call(response) : "undefined", |
| 995 | ctor: response?.constructor?.name, |
| 996 | keys: response ? Object.keys(response) : undefined, |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | await logDebug("fetchGoogleUsage.start") |
| 1001 | const auth = await Auth.get(input.provider.id) |
no outgoing calls
no test coverage detected