Skip to content

Commit cce8ff5

Browse files
authored
Merge pull request #5 from journeyapps/fix-dependencies
Fix dependencies
2 parents e098fc9 + 459ba6f commit cce8ff5

4 files changed

Lines changed: 499 additions & 1203 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@journeyapps/https-proxy-socket",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"author": "JourneyApps",
55
"repository": "journeyapps/https-proxy-socket",
66
"license": "MIT",
@@ -17,14 +17,14 @@
1717
"@types/mocha": "^5.2.6",
1818
"@types/node": "^11.9.4",
1919
"@types/node-fetch": "^2.1.6",
20-
"agent-base": "^4.2.1",
20+
"agent-base": "^6.0.0",
2121
"assert": "^1.4.1",
2222
"mocha": "^6.0.2",
2323
"mssql": "^4.3.2",
2424
"node-fetch": "^2.3.0",
2525
"proxy": "^1.0.1",
2626
"ts-node": "^8.0.2",
27-
"typescript": "3.2.4"
27+
"typescript": "^3.7.5"
2828
},
2929
"main": "./lib/index.js",
3030
"dependencies": {},

src/proxyAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as tls from 'tls';
99
* @param options - to set additional TLS options for https requests, e.g. rejectUnauthorized
1010
*/
1111
export function proxyAgent(proxy: HttpsProxySocket, options?: tls.ConnectionOptions) {
12-
return agentBase(async (req, opts: any) => {
12+
return agentBase(async (req: agentBase.ClientRequest, opts: any) => {
1313
const socket = await proxy.connect(opts);
1414

1515
if (opts.secureEndpoint) {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"outDir": "lib",
1212
"rootDir": "src",
1313
"allowJs": false,
14-
"declaration": true
14+
"declaration": true,
15+
"skipLibCheck": true
1516
},
1617
"include": [
1718
"src/**/*"

0 commit comments

Comments
 (0)