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

Function analyticsPost

src/services/utils/http.ts:140–145  ·  view source on GitHub ↗
(path: string, body?: unknown)

Source from the content-addressed store, hash-verified

138
139/** 绑定当前 epoch 的 POST:被 abortAnalyticsRequests() 取消时静默作废。 */
140export function analyticsPost<T>(path: string, body?: unknown): Promise<T> {
141 return post<T>(path, body, _analyticsController.signal).catch((err) => {
142 if (isAbortError(err)) return neverSettle<T>()
143 throw err
144 })
145}
146
147export async function del<T = boolean>(path: string): Promise<T> {
148 const resp = await fetch(`${_baseUrl}${path}`, {

Callers

nothing calls this directly

Calls 3

postFunction · 0.85
isAbortErrorFunction · 0.85
neverSettleFunction · 0.85

Tested by

no test coverage detected