Skip to content

Commit d79947d

Browse files
committed
feat: bump to express 5
Signed-off-by: Sebastian Beltran <[email protected]>
1 parent 41a53a1 commit d79947d

File tree

3 files changed

+250
-277
lines changed

3 files changed

+250
-277
lines changed

lib/Server.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,16 +1436,16 @@ class Server {
14361436
return level;
14371437
};
14381438

1439-
if (typeof item.logLevel === "undefined") {
1440-
item.logLevel = getLogLevelForProxy(
1439+
if (typeof item.logger === "undefined") {
1440+
item.logger = getLogLevelForProxy(
14411441
compilerOptions.infrastructureLogging
14421442
? compilerOptions.infrastructureLogging.level
14431443
: "info",
14441444
);
14451445
}
14461446

1447-
if (typeof item.logProvider === "undefined") {
1448-
item.logProvider = () => this.logger;
1447+
if (typeof item.logger === "undefined") {
1448+
item.logger = () => this.logger;
14491449
}
14501450

14511451
return item;
@@ -2262,10 +2262,10 @@ class Server {
22622262
if (proxyConfig.target) {
22632263
const context = proxyConfig.context || proxyConfig.path;
22642264

2265-
return createProxyMiddleware(
2266-
/** @type {string} */ (context),
2267-
proxyConfig,
2268-
);
2265+
return createProxyMiddleware({
2266+
...proxyConfig,
2267+
pathFilter: /** @type {string} */ (context),
2268+
});
22692269
}
22702270

22712271
if (proxyConfig.router) {

0 commit comments

Comments
 (0)