chore: bump patch versions; remove temp request logging #21

Merged
admin merged 1 commits from fix/docker-api-upstream-ambiguity into main 2026-04-12 15:56:52 +00:00
5 changed files with 6 additions and 25 deletions

View File

@@ -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",

View File

@@ -1,6 +1,6 @@
{
"name": "calendar-run-backend",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"scripts": {
"build": "tsc",

View File

@@ -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"] }),
);

View File

@@ -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",

View File

@@ -1,7 +1,7 @@
{
"name": "calendar-run-frontend",
"private": true,
"version": "0.3.0",
"version": "0.3.1",
"type": "module",
"scripts": {
"dev": "vite",