Skip to content

Commit

Permalink
chore: upgrade http-proxy-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpedemonte committed Jan 19, 2024
1 parent 37920c3 commit 8bba4f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/discovery-search-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"cors": "^2.8.5",
"dotenv": "^16.3.2",
"express": "^4.18.2",
"http-proxy-middleware": "^0.20.0",
"http-proxy-middleware": "^2.0.6",
"ibm-watson": "^8.0.0",
"node-polyfill-webpack-plugin": "^3.0.0",
"proper-url-join": "^2.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/discovery-search-app/src/setupProxy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const dotenv = require('dotenv');
const proxy = require('http-proxy-middleware');
const { createProxyMiddleware } = require('http-proxy-middleware');
const { getAuthenticatorFromEnvironment } = require('ibm-watson/auth');
const cors = require('cors');
const bodyParser = require('body-parser');
Expand Down Expand Up @@ -36,7 +36,7 @@ if (process.env.REACT_APP_CYPRESS_MODE) {
app.use(
'/api',
addAuthorization,
proxy({
createProxyMiddleware({
target,
secure: false,
changeOrigin: true,
Expand Down
20 changes: 4 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11276,7 +11276,7 @@ __metadata:
cypress: "npm:^13.6.3"
dotenv: "npm:^16.3.2"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^0.20.0"
http-proxy-middleware: "npm:^2.0.6"
ibm-watson: "npm:^8.0.0"
node-polyfill-webpack-plugin: "npm:^3.0.0"
proper-url-join: "npm:^2.1.1"
Expand Down Expand Up @@ -14575,19 +14575,7 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-middleware@npm:^0.20.0":
version: 0.20.0
resolution: "http-proxy-middleware@npm:0.20.0"
dependencies:
http-proxy: "npm:^1.17.0"
is-glob: "npm:^4.0.1"
lodash: "npm:^4.17.14"
micromatch: "npm:^4.0.2"
checksum: bf7db2d45ee401b073e0c222f07da7299dcb14cba262db6e8025d94306773b868f941f039bc25459b94376860c6fdb976efa84a9109f1ba16f4e900ae5cf68da
languageName: node
linkType: hard

"http-proxy-middleware@npm:^2.0.3":
"http-proxy-middleware@npm:^2.0.3, http-proxy-middleware@npm:^2.0.6":
version: 2.0.6
resolution: "http-proxy-middleware@npm:2.0.6"
dependencies:
Expand All @@ -14605,7 +14593,7 @@ __metadata:
languageName: node
linkType: hard

"http-proxy@npm:^1.17.0, http-proxy@npm:^1.18.1":
"http-proxy@npm:^1.18.1":
version: 1.18.1
resolution: "http-proxy@npm:1.18.1"
dependencies:
Expand Down Expand Up @@ -17311,7 +17299,7 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.7.0":
"lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.7.0":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c
Expand Down

0 comments on commit 8bba4f5

Please sign in to comment.