Skip to content

Commit

Permalink
fix: http-proxy-middleware v1.0.0 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] committed Feb 19, 2020
1 parent eba73d1 commit d406350
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { URL } = require("url");

const express = require("express");

const httpProxyMiddleware = require("http-proxy-middleware");
const { createProxyMiddleware } = require("http-proxy-middleware");

const validateRequest = require("./request-validation-middleware");

Expand All @@ -15,7 +15,7 @@ function proxy(state, { target }) {
middleware.use(
`/${hostname}/:fixturesId`,
validateRequest.bind(null, state),
httpProxyMiddleware({
createProxyMiddleware({
target: target,
router(req) {
const fixturesId = req.path.split("/")[2];
Expand Down
6 changes: 3 additions & 3 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 @@ -45,7 +45,7 @@
"cors": "^2.8.4",
"express": "^4.16.3",
"glob": "^7.1.2",
"http-proxy-middleware": "^0.21.0",
"http-proxy-middleware": "^1.0.0",
"lodash": "^4.17.10",
"yargs": "^15.0.1"
},
Expand Down

0 comments on commit d406350

Please sign in to comment.