Skip to content

Commit e2a069f

Browse files
greenkeeper[bot]pvdlg
authored andcommittedDec 11, 2019
fix(package): update https-proxy-agent to version 4.0.0
1 parent e856c0f commit e2a069f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"fs-extra": "^8.0.0",
2626
"globby": "^10.0.0",
2727
"http-proxy-agent": "^3.0.0",
28-
"https-proxy-agent": "^3.0.0",
28+
"https-proxy-agent": "^4.0.0",
2929
"issue-parser": "^5.0.0",
3030
"lodash": "^4.17.4",
3131
"mime": "^2.4.3",

‎test/get-client.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import rateLimit from './helpers/rate-limit';
1414

1515
const getClient = proxyquire('../lib/get-client', {'./definitions/rate-limit': rateLimit});
1616

17+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
18+
1719
test.serial('Use a http proxy', async t => {
1820
const server = http.createServer();
1921
await promisify(server.listen).bind(server)();
@@ -73,7 +75,7 @@ test.serial('Use a https proxy', async t => {
7375
githubToken: 'github_token',
7476
githubUrl: `https://localhost:${serverPort}`,
7577
githubApiPathPrefix: '',
76-
proxy: {host: 'localhost', port: proxyPort, rejectUnauthorized: false, headers: {foo: 'bar'}},
78+
proxy: {host: 'localhost', port: proxyPort, headers: {foo: 'bar'}},
7779
});
7880

7981
await github.repos.get({repo: 'repo', owner: 'owner'});

0 commit comments

Comments
 (0)
Please sign in to comment.