UNPKG

proxy-lib

Version:

Proxy library used in NativeScript tooling. This library gives you methods to get, set and clear proxy settings respected by NativeScript tooling.

1 lines 2.4 kB
module.exports.proxyCacheFileName="proxy-cache.json",module.exports.defaultCredentialsKey="tns_PROXY",module.exports.operations={get:"get",set:"set",clear:"clear"},module.exports.dirNames={nativeScriptCliProfileDirName:".nativescript-cli",local:".local",share:"share",bin:"bin",dotDot:"..",lib:"lib"},module.exports.dataTypes={string:"string"},module.exports.platforms={windows:"win32"},module.exports.archs={ia32:"ia32",x64:"x64"},module.exports.credentialsManagerExecutable="CredentialsManager.exe",module.exports.encodings={utf8:"utf8",utf16le:"utf16le",hex:"hex"},module.exports.algorithms={sha512:"sha512"},module.exports.credentialsManagerExitCodes={success:0,encryptionError:101,decryptionError:111,unableToGetUserInfoError:121,noSuchKey:1168},module.exports.setProxyErrors={invalidInputParams:"Passed proxy settings are not correct. You must specify proxyUrl parameter.",usernamesMismatchFormat:"Passed username (%s) and value in url (%s) are different.",passwordsMismatch:"Passed password and value in url are different.",passwordRequired:"Password is required when username is passed."},module.exports.getProxyErrors={unableToGetCredentialsFormat:"Unable to get credentials from Credential Manager for key %s. Error is: %s"},module.exports.clearProxyErrors={unableToClearCredentialsFormat:"Unable to clear credentials from Credential Manager for key %s. Error is: %s"},module.exports.setCredentialsErrors={missingCredentialsKey:"Invalid input args. You must specify a credentialsKey for which to set the credentials.",missingUsername:"Invalid input args. You must specify a username for which to set the credentials.",missingPassword:"Invalid input args. You must specify a password for which to set the credentials."},module.exports.getCredentialsErrors={missingCredentialsKey:"Invalid input args. You must specify a credentialsKey for which to get the credentials."},module.exports.clearCredentialsErrors={missingCredentialsKey:"Invalid input args. You must specify a credentialsKey for which to clear the credentials."},module.exports.credentialsManagerErrorFormat="Unable to get credentials for key %s. Command exited with code %s and signal %s. Error is: %s",module.exports.proxySettingsKeys={hostname:"PROXY_HOSTNAME",port:"PROXY_PORT",protocol:"PROXY_PROTOCOL",allowInsecure:"ALLOW_INSECURE"},module.exports.electronDirs={appAsar:"app.asar",appAsarUnpacked:"app.asar.unpacked"};