mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-14 11:37:06 +08:00
0ef52ed9da
* Setup daily leaderboards backend (#2987) bruception * Setup daily leaderboards backend * Add enabled checks * Consistent naming * Add initial unit tests * Use more flexible daily leaderboard rule logic * Fix seed rule * Add LRU Cache + Rank Calculation * Use native functions * Optional daily leaderboard rank * Proper status code for invalid lb mode * Add result criteria check * Make daily leaderboard cache size configurable * Add Ape endpoint for daily leaderboard (#2997) * support for switching to viewing daily lbs * test * buttons * only checking daily if user has more than 2 hours typed * updated structure * setting rank if its undefined * only when daily * storing uid * fixed media queries * Daily leaderboards pagination (#3006) * Pagination * Remove with scores * Add daily leaderboard rank (#3014) Bruception * Add daily leaderboard rank * Remove unused import * Use object instead * Add client logic * Add limit checks * Announce top daily leaderboard results (#3017) * Add rank in daily leaderboard results (#3022) * not showing lb memory and top % on daily * Fix rank pagination * Actual fix * showing new rank Co-authored-by: Miodec <bartnikjack@gmail.com>
70 lines
1.8 KiB
JSON
70 lines
1.8 KiB
JSON
{
|
|
"name": "monkeytype-backend",
|
|
"version": "1.14.3",
|
|
"license": "GPL-3.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "tsc --build",
|
|
"watch": "tsc --build --watch",
|
|
"clean": "tsc --build --clean",
|
|
"start": "npm run build && node ./build/server.js",
|
|
"test": "jest --verbose --collect-coverage",
|
|
"dev": "ts-node-dev ./src/server.ts -- --inspect --transpileOnly"
|
|
},
|
|
"engines": {
|
|
"node": "16.13.2",
|
|
"npm": "8.1.2"
|
|
},
|
|
"dependencies": {
|
|
"bcrypt": "5.0.1",
|
|
"bullmq": "1.78.1",
|
|
"chalk": "4.1.2",
|
|
"cors": "2.8.5",
|
|
"cron": "1.8.2",
|
|
"dotenv": "10.0.0",
|
|
"express": "4.17.1",
|
|
"express-rate-limit": "6.2.1",
|
|
"firebase-admin": "10.0.2",
|
|
"helmet": "4.6.0",
|
|
"ioredis": "4.28.5",
|
|
"joi": "17.6.0",
|
|
"lodash": "4.17.21",
|
|
"lru-cache": "7.10.1",
|
|
"mongodb": "4.4.0",
|
|
"node-fetch": "2.6.7",
|
|
"nodemon": "2.0.7",
|
|
"object-hash": "3.0.0",
|
|
"path": "0.12.7",
|
|
"prom-client": "14.0.1",
|
|
"simple-git": "2.45.1",
|
|
"string-similarity": "4.0.4",
|
|
"swagger-stats": "0.99.2",
|
|
"swagger-ui-express": "4.3.0",
|
|
"ua-parser-js": "0.7.28",
|
|
"uuid": "8.3.2",
|
|
"winston": "3.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@shelf/jest-mongodb": "2.2.1",
|
|
"@types/bcrypt": "5.0.0",
|
|
"@types/cors": "2.8.12",
|
|
"@types/cron": "1.7.3",
|
|
"@types/ioredis": "4.28.10",
|
|
"@types/jest": "27.5.0",
|
|
"@types/lodash": "4.14.178",
|
|
"@types/node": "17.0.18",
|
|
"@types/node-fetch": "2.6.1",
|
|
"@types/object-hash": "2.2.1",
|
|
"@types/supertest": "2.0.12",
|
|
"@types/swagger-stats": "0.95.4",
|
|
"@types/swagger-ui-express": "4.1.3",
|
|
"@types/ua-parser-js": "0.7.36",
|
|
"@types/uuid": "8.3.4",
|
|
"ioredis-mock": "7.4.0",
|
|
"jest": "27.5.1",
|
|
"jest-environment-node": "27.5.1",
|
|
"supertest": "6.2.3",
|
|
"ts-jest": "27.1.4",
|
|
"ts-node-dev": "1.1.8"
|
|
}
|
|
}
|