MCPcopy
hub / github.com/CodebuffAI/codebuff / signalFromSpurValue

Function signalFromSpurValue

web/src/server/free-mode-country.ts:317–327  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

315}
316
317function signalFromSpurValue(value: unknown): FreeModeIpPrivacySignal | null {
318 if (typeof value !== 'string') return null
319 const normalized = value.toUpperCase()
320 if (normalized.includes('RESIDENTIAL') || normalized.includes('RES_PROXY')) {
321 return 'res_proxy'
322 }
323 if (normalized.includes('TOR')) return 'tor'
324 if (normalized.includes('VPN')) return 'vpn'
325 if (normalized.includes('PROXY')) return 'proxy'
326 return null
327}
328
329function signalFromSpurService(value: unknown): FreeModeIpPrivacySignal | null {
330 if (typeof value !== 'string') return null

Callers 1

privacySignalsFromSpurFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected