UNPKG

@socketsecurity/lib

Version:

Core utilities and infrastructure for Socket.dev security tools

76 lines (75 loc) 2.53 kB
/** * SOCKET_ACCEPT_RISKS environment variable getter. * Whether to accept all Socket Security risks. */ export declare function getSocketAcceptRisks(): boolean; /** * SOCKET_API_BASE_URL environment variable getter. * Socket Security API base URL. */ export declare function getSocketApiBaseUrl(): string | undefined; /** * SOCKET_API_PROXY environment variable getter. * Proxy URL for Socket Security API requests. */ export declare function getSocketApiProxy(): string | undefined; /** * SOCKET_API_TIMEOUT environment variable getter. * Timeout in milliseconds for Socket Security API requests. */ export declare function getSocketApiTimeout(): number; /** * SOCKET_API_TOKEN environment variable getter. * Socket Security API authentication token. */ export declare function getSocketApiToken(): string | undefined; /** * SOCKET_CACACHE_DIR environment variable getter. * Overrides the default Socket cacache directory location. */ export declare function getSocketCacacheDir(): string | undefined; /** * SOCKET_CONFIG environment variable getter. * Socket Security configuration file path. */ export declare function getSocketConfig(): string | undefined; /** * SOCKET_DEBUG environment variable getter. * Controls Socket-specific debug output. */ export declare function getSocketDebug(): string | undefined; /** * SOCKET_DLX_DIR environment variable getter. * Overrides the default Socket DLX directory location. */ export declare function getSocketDlxDirEnv(): string | undefined; /** * SOCKET_HOME environment variable getter. * Socket Security home directory path. */ export declare function getSocketHome(): string | undefined; /** * SOCKET_NO_API_TOKEN environment variable getter. * Whether to skip Socket Security API token requirement. */ export declare function getSocketNoApiToken(): boolean; /** * SOCKET_NPM_REGISTRY environment variable getter. * Socket NPM registry URL (alternative name). */ export declare function getSocketNpmRegistry(): string | undefined; /** * SOCKET_ORG_SLUG environment variable getter. * Socket Security organization slug identifier. */ export declare function getSocketOrgSlug(): string | undefined; /** * SOCKET_REGISTRY_URL environment variable getter. * Socket Registry URL for package installation. */ export declare function getSocketRegistryUrl(): string | undefined; /** * SOCKET_VIEW_ALL_RISKS environment variable getter. * Whether to view all Socket Security risks. */ export declare function getSocketViewAllRisks(): boolean;