Skip to content

Commit

Permalink
Surely
Browse files Browse the repository at this point in the history
  • Loading branch information
arsoniv committed Feb 5, 2025
1 parent 21af399 commit 8621357
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Node.js
/node_modules/

src/.env
package-lock.json
38 changes: 4 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/node": "^22.13.1",
"@types/pg": "^8.11.11",
"@types/ws": "^8.5.13",
"typescript": "^5.5.3"
Expand Down
7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import express, {Application, Request, Response} from 'express';
import {generateBoard} from './boardCreator.js';
import {truncateBoard} from './truncateBoard.js';
import {calculateEloChange} from './eloUtils.js';
import pgp from 'pg';
const { Pool } = pgp;
import {IncomingMessage} from 'http';
import Crypto from 'crypto';
import cors from 'cors'
import path from 'path';
import urlp from 'url';
import pgp from 'pg';
const { Pool } = pgp;

const {fileURLToPath} = urlp;

const __filename = fileURLToPath(import.meta.url);
Expand Down Expand Up @@ -65,7 +66,7 @@ type Queue = {
}

const pool = new Pool({
connectionString: process.env.DATABASE_URL
connectionString: process.env.DATABASE_URL,
});

let currentCustomQueueId: number = 100;
Expand Down
20 changes: 10 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2020",
"outDir": "./dist",
"rootDir": "./src",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ESNext",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
"esModuleInterop": true,
"skipLibCheck": true
},
"include": [
"src"
]
}
"include": ["src"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit 8621357

Please sign in to comment.