Fix requirements

This commit is contained in:
2023-12-07 20:42:24 +01:00
parent ea881e2403
commit bae870b22f
4 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@@ -4,8 +4,8 @@ import cors from 'cors';
import logger from 'morgan';
import express from 'express';
import { log } from './modules/log';
import { speedLimiter, checkSystemLoad } from './modules/requestHandler';
import { log } from './modules/log.js';
import { speedLimiter, checkSystemLoad } from './modules/requestHandler.js';
import testRouter from './routes/test';

View File

@@ -1,8 +1,8 @@
/* eslint-disable no-undef */
import jwt from 'jsonwebtoken';
import { Level } from 'level';
import { respondWithStatus } from './requestHandler';
import { pool } from './database';
import { respondWithStatus } from './requestHandler.js';
import { pool } from './database.js';
// Set up LevelDB instance

View File

@@ -12,9 +12,12 @@
"dependencies": {
"cors": "^2.8.5",
"express": "^4.18.2",
"express-rate-limit": "^7.1.5",
"express-slow-down": "^2.0.1",
"jsonwebtoken": "^9.0.2",
"level": "^8.0.0",
"morgan": "^1.10.0",
"mysql2": "^3.6.5"
"mysql2": "^3.6.5",
"pino": "^8.16.2"
}
}