Skip to content

Commit 36b575a

Browse files
committed
feat: bump to express 5
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
1 parent cc0b931 commit 36b575a

8 files changed

Lines changed: 337 additions & 355 deletions

lib/Server.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,16 +1411,16 @@ class Server {
14111411
return level;
14121412
};
14131413

1414-
if (typeof item.logLevel === "undefined") {
1415-
item.logLevel = getLogLevelForProxy(
1414+
if (typeof item.logger === "undefined") {
1415+
item.logger = getLogLevelForProxy(
14161416
compilerOptions.infrastructureLogging
14171417
? compilerOptions.infrastructureLogging.level
14181418
: "info",
14191419
);
14201420
}
14211421

1422-
if (typeof item.logProvider === "undefined") {
1423-
item.logProvider = () => this.logger;
1422+
if (typeof item.logger === "undefined") {
1423+
item.logger = () => this.logger;
14241424
}
14251425

14261426
return item;
@@ -2175,10 +2175,10 @@ class Server {
21752175
if (proxyConfig.target) {
21762176
const context = proxyConfig.context || proxyConfig.path;
21772177

2178-
return createProxyMiddleware(
2179-
/** @type {string} */ (context),
2180-
proxyConfig,
2181-
);
2178+
return createProxyMiddleware({
2179+
...proxyConfig,
2180+
pathFilter: /** @type {string} */ (context),
2181+
});
21822182
}
21832183

21842184
if (proxyConfig.router) {

0 commit comments

Comments
 (0)