Skip to content

Commit dde608d

Browse files
committed
Fix tiny incompatible updates
1 parent e9e04e5 commit dde608d

File tree

6 files changed

+1845
-2902
lines changed

6 files changed

+1845
-2902
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"vite-plugin-html": "^3.2.2",
8787
"vite-tsconfig-paths": "^5.1.4",
8888
"vitest": "^2.1.9",
89-
"vitest-fetch-mock": "^0.4.3"
89+
"vitest-fetch-mock": "^0.3.0"
9090
},
9191
"engines": {
9292
"node": ">=20.9.0"

packages/bygger-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@types/express": "^4.17.21",
4141
"@types/express-correlation-id": "^1.2.6",
4242
"@types/http-proxy": "^1.17.15",
43-
"@types/jsonwebtoken": "^9.0.7",
43+
"@types/jsonwebtoken": "9.0.7",
4444
"@types/luxon": "^3.4.2",
4545
"@types/memorystream": "^0.3.4",
4646
"@types/node": "^22.13.0",

packages/fyllut-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@types/cors": "^2.8.17",
4646
"@types/express": "^4.17.21",
4747
"@types/express-correlation-id": "^1.2.6",
48-
"@types/jsonwebtoken": "^9.0.7",
48+
"@types/jsonwebtoken": "9.0.7",
4949
"@types/mustache-express": "^1.2.5",
5050
"@types/node": "^22.13.0",
5151
"@types/node-fetch": "^2.6.12",

packages/fyllut-backend/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const createApp = (setupDev: boolean = false) => {
2323

2424
app.use(expressJsonMetricHandler(express.json({ limit: '50mb' })));
2525
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
26-
app.use(correlator());
26+
app.use(correlator() as any);
2727
app.use(cors());
2828
app.set('views', buildDirectory);
2929
app.set('view engine', 'mustache');

packages/fyllut-backend/src/setup-dev-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const isFormPath = (value: string) => /^\w*$/.test(value);
1414
export const setupDevServer = (expressApp: Express, fyllutRouter: Router, config: ConfigType) => {
1515
logger.info('Server setup dev');
1616

17-
// Trust proxy IP headers, to ensure we get the actual req.ip for the client
17+
// Trust proxy IP headers, to ensure we get the actaual req.ip for the client
1818
expressApp.set('trust proxy', true);
1919

2020
expressApp.all('*', (req: Request, res: Response, next: NextFunction) => {
@@ -42,7 +42,7 @@ export const setupDevServer = (expressApp: Express, fyllutRouter: Router, config
4242
});
4343

4444
expressApp.all(/^(?!.*\/(test\/login|api)).*$/, cookieParser(), (req: Request, res: Response, next: NextFunction) => {
45-
if (isNavIp(req.ip) || req.cookies[DEV_ACCESS_COOKIE]) {
45+
if (isNavIp(req.ip || '') || req.cookies[DEV_ACCESS_COOKIE]) {
4646
logger.debug('Dev access is valid');
4747
return next();
4848
} else {

0 commit comments

Comments
 (0)