MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / buildQuery

Function buildQuery

apps/web/src/hooks/use-security-events.ts:15–25  ·  view source on GitHub ↗
(params: Record<string, unknown>)

Source from the content-addressed store, hash-verified

13}
14
15function buildQuery(params: Record<string, unknown>): string {
16 const out = new URLSearchParams()
17 for (const [k, v] of Object.entries(params)) {
18 if (v === null || v === undefined || v === '') {
19 continue
20 }
21 out.set(k, String(v))
22 }
23 const s = out.toString()
24 return s ? `?${s}` : ''
25}
26
27export function useSecurityEvents(filters: SecurityEventFilters) {
28 return useInfiniteQuery({

Callers 2

useSecurityEventsFunction · 0.70
useSecurityStatsFunction · 0.70

Calls 1

setMethod · 0.80

Tested by

no test coverage detected