Browse Source

Upgrade dependencies

develop
Alice Gaudon 3 weeks ago
parent
commit
6973b2600c
4 changed files with 687 additions and 646 deletions
  1. +1
    -1
      package.json
  2. +2
    -2
      src/FileUploadMiddleware.ts
  3. +1
    -1
      src/Logger.ts
  4. +683
    -642
      yarn.lock

+ 1
- 1
package.json View File

@ -46,7 +46,7 @@
"@types/ws": "^7.2.4",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"concurrently": "^5.3.0",
"concurrently": "^6.0.0",
"eslint": "^7.9.0",
"jest": "^26.1.0",
"maildev": "^1.1.0",


+ 2
- 2
src/FileUploadMiddleware.ts View File

@ -1,10 +1,10 @@
import {IncomingForm} from "formidable";
import Formidable from "formidable";
import Middleware from "./Middleware";
import {NextFunction, Request, Response} from "express";
import {FileError, ValidationBag} from "./db/Validator";
export default abstract class FileUploadMiddleware extends Middleware {
protected abstract makeForm(): IncomingForm;
protected abstract makeForm(): Formidable;
protected abstract getDefaultField(): string;


+ 1
- 1
src/Logger.ts View File

@ -33,7 +33,7 @@ export const preventContextCorruptionMiddleware = (delegate: RequestHandler): Re
) => {
const data = requestIdStorage.getStore() as string;
delegate(req, res, (err?: Error | 'router') => {
delegate(req, res, (err?: unknown | 'router') => {
requestIdStorage.enterWith(data);
next(err);
});


+ 683
- 642
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save