From e033b2c8d5f6dd24865fbc513da28471c343f743 Mon Sep 17 00:00:00 2001 From: "Vaka.pro" Date: Sun, 12 Apr 2026 18:51:00 +0300 Subject: [PATCH] chore: bump patch versions; remove temp request logging Frontend 0.3.1, backend 1.2.2; drop debug middleware from app.ts. Made-with: Cursor --- backend/package-lock.json | 4 ++-- backend/package.json | 2 +- backend/src/app.ts | 19 ------------------- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- 5 files changed, 6 insertions(+), 25 deletions(-) diff --git a/backend/package-lock.json b/backend/package-lock.json index 5849a18..dcf2665 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -1,12 +1,12 @@ { "name": "calendar-run-backend", - "version": "1.0.0", + "version": "1.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "calendar-run-backend", - "version": "1.0.0", + "version": "1.2.2", "dependencies": { "cors": "^2.8.5", "csv-parse": "^5.6.0", diff --git a/backend/package.json b/backend/package.json index e3d3af1..09d4959 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "calendar-run-backend", - "version": "1.2.1", + "version": "1.2.2", "private": true, "scripts": { "build": "tsc", diff --git a/backend/src/app.ts b/backend/src/app.ts index 56597ed..484c433 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -7,25 +7,6 @@ import racesRouter from "./routes/races"; export function createApp(): express.Express { const app = express(); - // TEMP: compare Host vs Origin for 200 vs 401 debugging — remove when done - app.use((req, res, next) => { - const host = req.headers.host; - const origin = req.headers.origin; - res.on("finish", () => { - console.log( - JSON.stringify({ - tag: "temp-req-headers", - host, - origin: origin ?? null, - method: req.method, - path: req.originalUrl ?? req.url, - status: res.statusCode, - }), - ); - }); - next(); - }); - app.use( cors({ origin: config.corsOrigin, methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"] }), ); diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 20cac47..cf608e6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "calendar-run-frontend", - "version": "0.1.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "calendar-run-frontend", - "version": "0.1.0", + "version": "0.3.1", "dependencies": { "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/frontend/package.json b/frontend/package.json index b739d94..1e6af99 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "calendar-run-frontend", "private": true, - "version": "0.3.0", + "version": "0.3.1", "type": "module", "scripts": { "dev": "vite", -- 2.49.1