MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / analyticsGet

Function analyticsGet

src/services/utils/http.ts:132–137  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

130
131/** 绑定当前 epoch 的 GET:被 abortAnalyticsRequests() 取消时静默作废。 */
132export function analyticsGet<T>(path: string): Promise<T> {
133 return get<T>(path, _analyticsController.signal).catch((err) => {
134 if (isAbortError(err)) return neverSettle<T>()
135 throw err
136 })
137}
138
139/** 绑定当前 epoch 的 POST:被 abortAnalyticsRequests() 取消时静默作废。 */
140export function analyticsPost<T>(path: string, body?: unknown): Promise<T> {

Callers 15

http.test.tsFile · 0.90
getMemberActivityMethod · 0.90
getHourlyActivityMethod · 0.90
getDailyActivityMethod · 0.90
getWeekdayActivityMethod · 0.90
getMonthlyActivityMethod · 0.90
getYearlyActivityMethod · 0.90
getTextStatsMethod · 0.90
getLongMessageCountMethod · 0.90
getMemberMonthlyTrendMethod · 0.90

Calls 3

isAbortErrorFunction · 0.85
neverSettleFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected