Skip to content

Commit

Permalink
fix(package): update https-proxy-agent to version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Dec 11, 2019
1 parent e856c0f commit e2a069f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"fs-extra": "^8.0.0",
"globby": "^10.0.0",
"http-proxy-agent": "^3.0.0",
"https-proxy-agent": "^3.0.0",
"https-proxy-agent": "^4.0.0",
"issue-parser": "^5.0.0",
"lodash": "^4.17.4",
"mime": "^2.4.3",
Expand Down
4 changes: 3 additions & 1 deletion test/get-client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import rateLimit from './helpers/rate-limit';

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

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

test.serial('Use a http proxy', async t => {
const server = http.createServer();
await promisify(server.listen).bind(server)();
Expand Down Expand Up @@ -73,7 +75,7 @@ test.serial('Use a https proxy', async t => {
githubToken: 'github_token',
githubUrl: `https://localhost:${serverPort}`,
githubApiPathPrefix: '',
proxy: {host: 'localhost', port: proxyPort, rejectUnauthorized: false, headers: {foo: 'bar'}},
proxy: {host: 'localhost', port: proxyPort, headers: {foo: 'bar'}},
});

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

0 comments on commit e2a069f

Please sign in to comment.