Upgrade major dependencies

This commit is contained in:
Alexander Ungar 2023-09-29 22:31:41 +02:00
parent 7f9c7f30f3
commit 28f9929d03
3 changed files with 475 additions and 339 deletions

View file

@ -21,13 +21,13 @@
"body-parser": "^1.20.2", "body-parser": "^1.20.2",
"currency.js": "^2.0.4", "currency.js": "^2.0.4",
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
"envalid": "^7.3.1", "envalid": "^8.0.0",
"express": "^4.18.2", "express": "^4.18.2",
"express-async-errors": "^3.1.1", "express-async-errors": "^3.1.1",
"express-async-handler": "^1.2.0", "express-async-handler": "^1.2.0",
"express-openapi-validator": "^5.0.3", "express-openapi-validator": "^5.0.3",
"express-winston": "^4.2.0", "express-winston": "^4.2.0",
"helmet": "^6.0.1", "helmet": "^7.0.0",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
"mongoose": "^7.0.2", "mongoose": "^7.0.2",
"openapi-typescript": "^6.2.0", "openapi-typescript": "^6.2.0",
@ -40,22 +40,23 @@
"@types/express": "^4.17.17", "@types/express": "^4.17.17",
"@types/jest": "^29.5.0", "@types/jest": "^29.5.0",
"@types/morgan": "^1.9.4", "@types/morgan": "^1.9.4",
"@types/node": "^18.15.0", "@types/node": "^20.7.2",
"@types/uuid": "^9.0.1", "@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.54.1", "@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.7.3",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"eslint": "^8.36.0", "eslint": "^8.0.1",
"eslint-config-prettier": "^8.7.0", "eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^34.0.0", "eslint-config-standard-with-typescript": "^39.1.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.6.1", "eslint-plugin-n": "^16.0.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.0.0",
"jest": "^29.5.0", "jest": "^29.5.0",
"nodemon": "^2.0.21", "nodemon": "^3.0.1",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^2.8.4", "prettier": "^3.0.3",
"rimraf": "^4.4.0", "rimraf": "^5.0.5",
"supertest": "^6.3.3", "supertest": "^6.3.3",
"ts-jest": "^29.0.5", "ts-jest": "^29.0.5",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",

View file

@ -5,7 +5,7 @@ import { type Budget, type BudgetSummary } from "../../domain/budget";
import UUID from "../../domain/uuid"; import UUID from "../../domain/uuid";
export const createBudget: ( export const createBudget: (
insertBudgetSummary: BudgetSummaryRepository["insert"] insertBudgetSummary: BudgetSummaryRepository["insert"],
) => BudgetUseCases["createBudget"] = ) => BudgetUseCases["createBudget"] =
(insertBudgetSummary) => async (newBudget) => { (insertBudgetSummary) => async (newBudget) => {
// We could also create a class for our domain objects and put functionalities s.a. // We could also create a class for our domain objects and put functionalities s.a.
@ -30,19 +30,19 @@ export const createBudget: (
}; };
export const getBudgetSummary: ( export const getBudgetSummary: (
findBudget: BudgetSummaryRepository["find"] findBudget: BudgetSummaryRepository["find"],
) => BudgetUseCases["getBudgetSummary"] = (findBudget) => async (budgetId) => { ) => BudgetUseCases["getBudgetSummary"] = (findBudget) => async (budgetId) => {
return await findBudget(budgetId); return await findBudget(budgetId);
}; };
export const getBudgets: ( export const getBudgets: (
findBudgets: BudgetRepository["findAll"] findBudgets: BudgetRepository["findAll"],
) => BudgetUseCases["getBudgets"] = (findAll) => async () => { ) => BudgetUseCases["getBudgets"] = (findAll) => async () => {
return await findAll(); return await findAll();
}; };
export const deleteBudget: ( export const deleteBudget: (
deleteFromPersistence: BudgetRepository["delete"] deleteFromPersistence: BudgetRepository["delete"],
) => BudgetUseCases["deleteBudget"] = ) => BudgetUseCases["deleteBudget"] =
(deleteFromPersistence) => async (budgetId) => { (deleteFromPersistence) => async (budgetId) => {
return await deleteFromPersistence(budgetId); return await deleteFromPersistence(budgetId);
@ -50,7 +50,7 @@ export const deleteBudget: (
const BudgetService: ( const BudgetService: (
budgetSummaryRepo: BudgetSummaryRepository, budgetSummaryRepo: BudgetSummaryRepository,
budgetRepo: BudgetRepository budgetRepo: BudgetRepository,
) => BudgetUseCases = (budgetSummaryRepo, budgetRepo) => ({ ) => BudgetUseCases = (budgetSummaryRepo, budgetRepo) => ({
createBudget: createBudget(budgetSummaryRepo.insert), createBudget: createBudget(budgetSummaryRepo.insert),
getBudgetSummary: getBudgetSummary(budgetSummaryRepo.find), getBudgetSummary: getBudgetSummary(budgetSummaryRepo.find),

775
yarn.lock

File diff suppressed because it is too large Load diff