mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 08:55:37 +08:00
1ca0fd1b23
* added nodemailer and mjml * added email template * basic email util file * added email queue * email worker * renamed folder * showing which queues and workers were initialized * initializing email on server boot added some test code * renamed to email worker * type fix * renamed queue * added queue to list * added worker to list * logging when config was verified * handling send mail result * not minifying (not supported anymore) using .html property returning correct value * dont send me emails * added port to .env * updated example * updated test email * using env email * parseint base * message * refactor * message * rename * moved email templates * using async file read * typo * using mustache * moved file renamed to email client * logging with prometheus * added social links * line * using stronger types (object instead of array of any[]) moved prometheus logging into email client added function to send mail using a template * fixed templates not working * removed console log * name change * rename * moved templates * rename * string interpolation * string interpolation * moved to dev dependencies, exact versions * moved types * removed function, remove unnecessary if * update template params * updated name * fixed button not clickable * throwing * moved template metadata to one place * rename * sending email on account creation * removed test code removed await * fixed button * not stopping the server if email client validation failed * added metric for queue lengths * exposing getjobcounts * added job to log queue lengths * added endpoint to request verification email * using send verification email that calls api instead of firebase built in * updated route * renamed function * recording time to complete * returning 400 if email already verified * setting transport initialized to true earlier, setting it to false if caught error * moved forgot password flow to a simple popup, added new endpoint to ape * added forgotpasswordemail route * added email tempalte * setting transport to false if caught error * added email queue function * moved try higher * fixed log
76 lines
2 KiB
JSON
76 lines
2 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 --runInBand",
|
|
"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": "2.1.0",
|
|
"dotenv": "10.0.0",
|
|
"express": "4.17.3",
|
|
"express-rate-limit": "6.2.1",
|
|
"firebase-admin": "11.4.1",
|
|
"helmet": "4.6.0",
|
|
"ioredis": "4.28.5",
|
|
"joi": "17.6.0",
|
|
"lodash": "4.17.21",
|
|
"lru-cache": "7.10.1",
|
|
"mjml": "4.13.0",
|
|
"mongodb": "4.4.0",
|
|
"mustache": "4.2.0",
|
|
"node-fetch": "2.6.7",
|
|
"nodemailer": "6.9.1",
|
|
"nodemon": "2.0.17",
|
|
"object-hash": "3.0.0",
|
|
"path": "0.12.7",
|
|
"prom-client": "14.0.1",
|
|
"rate-limiter-flexible": "2.3.7",
|
|
"simple-git": "3.16.0",
|
|
"string-similarity": "4.0.4",
|
|
"swagger-stats": "0.99.4",
|
|
"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/mustache": "4.2.2",
|
|
"@types/node": "17.0.18",
|
|
"@types/node-fetch": "2.6.1",
|
|
"@types/nodemailer": "6.4.7",
|
|
"@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"
|
|
}
|
|
}
|