UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and

40 lines (39 loc) 1.58 kB
/** * Shared NO_PROXY utility functions * Extracted from awsProxyIntegration.ts and proxyFetch.ts to eliminate duplication * Supports comprehensive NO_PROXY pattern matching including wildcards, domains, ports, and CIDR */ /** * Comprehensive NO_PROXY bypass check supporting multiple pattern types * * Supported patterns: * - "*" - bypass all requests * - "example.com" - exact hostname match * - ".example.com" - domain suffix match (matches example.com and subdomains) * - "localhost:8080" - hostname with specific port * - "192.168.1.0/24" - CIDR notation for IP ranges * * @param targetUrl - The URL to check for proxy bypass * @param noProxyEnv - Optional NO_PROXY environment variable value (if not provided, reads from process.env) * @returns true if the URL should bypass proxy, false otherwise */ export declare function shouldBypassProxy(targetUrl: string, noProxyEnv?: string): boolean; /** * Get the current NO_PROXY environment variable value * Checks both uppercase and lowercase variants */ export declare function getNoProxyEnv(): string | undefined; /** * Simple NO_PROXY bypass check with basic pattern support * Legacy function for backward compatibility with simpler use cases * * Supports: * - "*" - bypass all * - "example.com" - exact match * - ".example.com" - domain suffix match * * @param targetUrl - The URL to check * @param noProxyValue - The NO_PROXY value to check against * @returns true if should bypass proxy */ export declare function shouldBypassProxySimple(targetUrl: string, noProxyValue: string): boolean;