Skip to content

Commit

Permalink
Update dependency http-proxy-middleware to v3 (#7140)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laurent Bonnet <laurent.bonnet@filigran.io>
  • Loading branch information
renovate[bot] and labo-flg authored Jul 4, 2024
1 parent c317384 commit 6ebcad3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 15 deletions.
3 changes: 2 additions & 1 deletion opencti-platform/opencti-front/builder/dev/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ const debounce = (func, timeout = 500) => {
}, timeout);
};
};
const middleware = (target, ws = false) => createProxyMiddleware(basePath + target, {
const middleware = (target, ws = false) => createProxyMiddleware({
target: process.env.BACK_END_URL ?? "http://localhost:4000",
pathFilter: basePath + target,
changeOrigin: true,
ws,
})
Expand Down
2 changes: 1 addition & 1 deletion opencti-platform/opencti-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"eslint-plugin-react": "7.34.3",
"express": "4.19.2",
"fs-extra": "11.2.0",
"http-proxy-middleware": "2.0.6",
"http-proxy-middleware": "3.0.0",
"i18n-auto-translation": "1.4.0",
"jsdom": "24.0.0",
"monocart-reporter": "2.4.5",
Expand Down
50 changes: 37 additions & 13 deletions opencti-platform/opencti-front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6117,7 +6117,7 @@ __metadata:
languageName: node
linkType: hard

"@types/http-proxy@npm:^1.17.8":
"@types/http-proxy@npm:^1.17.10":
version: 1.17.14
resolution: "@types/http-proxy@npm:1.17.14"
dependencies:
Expand Down Expand Up @@ -7877,6 +7877,15 @@ __metadata:
languageName: node
linkType: hard

"braces@npm:^3.0.3":
version: 3.0.3
resolution: "braces@npm:3.0.3"
dependencies:
fill-range: "npm:^7.1.1"
checksum: 10/fad11a0d4697a27162840b02b1fad249c1683cbc510cd5bf1a471f2f8085c046d41094308c577a50a03a579dd99d5a6b3724c4b5e8b14df2c4443844cfcda2c6
languageName: node
linkType: hard

"brotli@npm:^1.2.0":
version: 1.3.3
resolution: "brotli@npm:1.3.3"
Expand Down Expand Up @@ -11343,6 +11352,15 @@ __metadata:
languageName: node
linkType: hard

"fill-range@npm:^7.1.1":
version: 7.1.1
resolution: "fill-range@npm:7.1.1"
dependencies:
to-regex-range: "npm:^5.0.1"
checksum: 10/a7095cb39e5bc32fada2aa7c7249d3f6b01bd1ce461a61b0adabacccabd9198500c6fb1f68a7c851a657e273fce2233ba869638897f3d7ed2e87a2d89b4436ea
languageName: node
linkType: hard

"finalhandler@npm:1.2.0":
version: 1.2.0
resolution: "finalhandler@npm:1.2.0"
Expand Down Expand Up @@ -12503,21 +12521,17 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-middleware@npm:2.0.6":
version: 2.0.6
resolution: "http-proxy-middleware@npm:2.0.6"
"http-proxy-middleware@npm:3.0.0":
version: 3.0.0
resolution: "http-proxy-middleware@npm:3.0.0"
dependencies:
"@types/http-proxy": "npm:^1.17.8"
"@types/http-proxy": "npm:^1.17.10"
debug: "npm:^4.3.4"
http-proxy: "npm:^1.18.1"
is-glob: "npm:^4.0.1"
is-plain-obj: "npm:^3.0.0"
micromatch: "npm:^4.0.2"
peerDependencies:
"@types/express": ^4.17.13
peerDependenciesMeta:
"@types/express":
optional: true
checksum: 10/768e7ae5a422bbf4b866b64105b4c2d1f468916b7b0e9c96750551c7732383069b411aa7753eb7b34eab113e4f77fb770122cb7fb9c8ec87d138d5ddaafda891
micromatch: "npm:^4.0.5"
checksum: 10/ea3e58c4665821aaf6060f59029bc8dbdbe7b13d6c74c7e80fb6c8ddc5a7c3f0fa970898f98dd5e006b138f64d23b3a7b9f30b8a525ed254b5aa88712a3b3010
languageName: node
linkType: hard

Expand Down Expand Up @@ -15192,6 +15206,16 @@ __metadata:
languageName: node
linkType: hard

"micromatch@npm:^4.0.5":
version: 4.0.7
resolution: "micromatch@npm:4.0.7"
dependencies:
braces: "npm:^3.0.3"
picomatch: "npm:^2.3.1"
checksum: 10/a11ed1cb67dcbbe9a5fc02c4062cf8bb0157d73bf86956003af8dcfdf9b287f9e15ec0f6d6925ff6b8b5b496202335e497b01de4d95ef6cf06411bc5e5c474a0
languageName: node
linkType: hard

"mime-db@npm:1.52.0, mime-db@npm:>= 1.43.0 < 2":
version: 1.52.0
resolution: "mime-db@npm:1.52.0"
Expand Down Expand Up @@ -16276,7 +16300,7 @@ __metadata:
graphql: "npm:16.8.2"
html-to-image: "npm:1.11.11"
html-to-pdfmake: "npm:2.5.6"
http-proxy-middleware: "npm:2.0.6"
http-proxy-middleware: "npm:3.0.0"
i18n-auto-translation: "npm:1.4.0"
invert-color: "npm:2.0.0"
js-base64: "npm:3.7.7"
Expand Down

0 comments on commit 6ebcad3

Please sign in to comment.