Update mocha version & Fix typing for getWindowsProxy (#26)
* UIpdate version * update node version * Update mocha config
This commit is contained in:
Родитель
84f90a3901
Коммит
5240eb71fd
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extension": ["ts"],
|
||||
"spec": "src/**/*.spec.ts",
|
||||
"require": "ts-node/register"
|
||||
}
|
|
@ -1,7 +1,8 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 9
|
||||
- 8
|
||||
- 10
|
||||
- 12
|
||||
- 14
|
||||
|
||||
install:
|
||||
- npm install
|
||||
|
@ -19,4 +20,4 @@ deploy:
|
|||
secure: a4RaA+Wva7aLYO2Zul6ax3yeCQqZF+ZnwfzJ3XeoMHSyE5yHok92Fkt3fv1Q7u6T7VREElnRVRRHz/Ziu/ri6PmajjktmsjZA1TUvA6uvZRejqtJM0z13s7/XF7AgS7sfUSH5f3vm7EVt4FbqoNOliXLi00PJ3Eqw2b/4qKzIKW3bxiou89dsZxwh01YRQjuELjj2sxcecRY4eBCgZ3u5oniP4Tl0SA8kMu5fQ6WUCLP4ohtDtJb6cdCt+UhkJivFZNc2VIPdBqdXUERy7TZQGiaZ/HpgH4Txi4doxjNt5yu2mwren0CBpnkSJSU+IvxHMFj7fya4B1zmp1vaFUm1J/Q3jDVLOXQ2u06QDppeIneU/YuEbOEPR29nUPRXkBbpni5javXTcLC2c1J3tPvuUvCW/MCEanfISlpzfiqMnOPBluY7Djxb2a2TiitOraHtwaXKXzXmAF/0fnDpP9SuLeL1KoFR2H47CbEgPtwtZLUb3GSx/jV35N2yKZ3wUjbdnD88LHXZFV+g23oqyecqJO8emvlMyb6f2Y+kijk8Bdw51Mayl4HYy8ybRY+P4BdT1AQWRqzXoaOxfuHRS5hUlKESYpgb/rLLJedMm9LMUhO5An6fBAcT0WeC+xetcoD9H/7rtpI6cwasJvGybtyaDIxRx7SpyV3RW3XFUWqP1I=
|
||||
on:
|
||||
tags: true
|
||||
node_js: 9
|
||||
node_js: 12
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# Version 0.1.12
|
||||
|
||||
Fixes:
|
||||
* Typings [#24](https://github.com/Azure/get-proxy-settings/pull/24)
|
||||
|
||||
# Version 0.1.11
|
||||
|
||||
Fixes:
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "get-proxy-settings",
|
||||
"version": "0.1.11",
|
||||
"version": "0.1.12",
|
||||
"description": "Retrieve proxy settings specified by the system",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -33,7 +33,7 @@
|
|||
"@types/node": "~9.4.0",
|
||||
"@types/proxyquire": "^1.3.28",
|
||||
"chai": "~4.1.2",
|
||||
"mocha": "~5.0.0",
|
||||
"mocha": "^8.1.1",
|
||||
"nock": "~9.1.6",
|
||||
"proxyquire": "^2.0.1",
|
||||
"ts-node": "~4.1.0",
|
||||
|
|
|
@ -39,7 +39,7 @@ export async function getAndTestProxySettings(login?: () => Promise<ProxyCredent
|
|||
|
||||
export default getProxySettings;
|
||||
|
||||
export async function getProxyWindows(): Promise<ProxySettings> {
|
||||
export async function getProxyWindows(): Promise<ProxySettings | null> {
|
||||
// HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
|
||||
const values = await openKey(Hive.HKCU, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings");
|
||||
const proxy = values["ProxyServer"];
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
-r ts-node/register
|
||||
src/**/*.spec.ts
|
Загрузка…
Ссылка в новой задаче