Skip to content

Commit

Permalink
chore(deps): update dependency proxy to v2 (#560)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency proxy to v2

* adapt for `proxy@2`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
  • Loading branch information
renovate[bot] and gr2m authored May 13, 2023
1 parent fc50837 commit e1fd75e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 36 deletions.
68 changes: 35 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"jest": "^29.0.0",
"lolex": "^6.0.0",
"prettier": "2.8.8",
"proxy": "^1.0.1",
"proxy": "^2.0.0",
"semantic-release": "^21.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^29.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/agent-proxy/agent-proxy-test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
const http = require("http");

const HttpProxy = require("proxy");
const { createProxy } = require("proxy");
const { HttpProxyAgent } = require("http-proxy-agent");

import { Octokit } from "../../src";
Expand All @@ -18,7 +18,7 @@ describe("client proxy", () => {

// start HTTP proxy & http server
beforeAll((done) => {
proxy = HttpProxy();
proxy = createProxy();
proxy.listen(() => {
proxyUrl = "http://localhost:" + proxy.address().port;
done();
Expand Down

0 comments on commit e1fd75e

Please sign in to comment.