MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizeToken

Function normalizeToken

src/remote/daemon-proxy.ts:268–274  ·  view source on GitHub ↗
(value: string, label: string)

Source from the content-addressed store, hash-verified

266}
267
268function normalizeToken(value: string, label: string): string {
269 const token = value.trim();
270 if (!token) {
271 throw new AppError('INVALID_ARGS', `Proxy ${label} is required.`);
272 }
273 return token;
274}
275
276function resolveProxyRoute(requestUrl: string): string {
277 const pathname = new URL(requestUrl, 'http://127.0.0.1').pathname;

Callers 1

normalizeProxyOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…