From 867a533bfbad45a2eabdedc5b11f75d076fcd216 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 20 Jan 2020 23:46:49 +0100 Subject: [PATCH 1/2] Remove lodash --- package.json | 2 -- yarn.lock | 5 ----- 2 files changed, 7 deletions(-) diff --git a/package.json b/package.json index e575457..ffd79fe 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ }, "dependencies": { "@types/body-parser": "^1.17.1", - "@types/lodash": "^4.14.149", "body-parser": "^1.19.0", "compression": "^1.7.4", "config": "^3.2.4", @@ -80,7 +79,6 @@ "http-status": "^1.3.2", "js-yaml": "^3.13.1", "legit": "^1.0.7", - "lodash": "^4.17.15", "markdown-it": "^10.0.0", "markdown-it-emoji": "^1.4.0", "markdown-it-html5-media": "^0.6.0", diff --git a/yarn.lock b/yarn.lock index 33c2acc..8c6b810 100644 --- a/yarn.lock +++ b/yarn.lock @@ -179,11 +179,6 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.148.tgz#ffa2786721707b335c6aa1465e6d3d74016fbd3e" integrity sha512-05+sIGPev6pwpHF7NZKfP3jcXhXsIVFnYyVRT4WOB0me62E8OlWfTN+sKyt2/rqN+ETxuHAtgTSK1v71F0yncg== -"@types/lodash@^4.14.149": - version "4.14.149" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440" - integrity sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ== - "@types/markdown-it@0.0.9": version "0.0.9" resolved "https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-0.0.9.tgz#a5d552f95216c478e0a27a5acc1b28dcffd989ce" From ac2672e5899c244724c4a6f765ca94af5277aae4 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 21 Jan 2020 12:51:59 +0100 Subject: [PATCH 2/2] Fix http status not found error --- src/lib/errors/BlacklistedError.ts | 1 + src/lib/errors/ChatNotFoundError.ts | 1 + src/lib/errors/GroupNotFoundError.ts | 1 + src/lib/errors/NoActionSpecifiedError.ts | 1 + src/lib/errors/NotAnAdminError.ts | 1 + src/lib/errors/PostNotFoundError.ts | 1 + src/lib/errors/RequestNotFoundError.ts | 1 + src/lib/errors/UserNotFoundError.ts | 1 + 8 files changed, 8 insertions(+) diff --git a/src/lib/errors/BlacklistedError.ts b/src/lib/errors/BlacklistedError.ts index a82cf5c..2f696d6 100644 --- a/src/lib/errors/BlacklistedError.ts +++ b/src/lib/errors/BlacklistedError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/ChatNotFoundError.ts b/src/lib/errors/ChatNotFoundError.ts index 7af3d38..0734824 100644 --- a/src/lib/errors/ChatNotFoundError.ts +++ b/src/lib/errors/ChatNotFoundError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/GroupNotFoundError.ts b/src/lib/errors/GroupNotFoundError.ts index 2e618bc..d1b2d5f 100644 --- a/src/lib/errors/GroupNotFoundError.ts +++ b/src/lib/errors/GroupNotFoundError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/NoActionSpecifiedError.ts b/src/lib/errors/NoActionSpecifiedError.ts index 797ffde..9ea6eed 100644 --- a/src/lib/errors/NoActionSpecifiedError.ts +++ b/src/lib/errors/NoActionSpecifiedError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/NotAnAdminError.ts b/src/lib/errors/NotAnAdminError.ts index b9454d0..3062d1f 100644 --- a/src/lib/errors/NotAnAdminError.ts +++ b/src/lib/errors/NotAnAdminError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/PostNotFoundError.ts b/src/lib/errors/PostNotFoundError.ts index 54b20b4..3d028ae 100644 --- a/src/lib/errors/PostNotFoundError.ts +++ b/src/lib/errors/PostNotFoundError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /** diff --git a/src/lib/errors/RequestNotFoundError.ts b/src/lib/errors/RequestNotFoundError.ts index fca6895..e7383b8 100644 --- a/src/lib/errors/RequestNotFoundError.ts +++ b/src/lib/errors/RequestNotFoundError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import dataaccess from "../dataAccess"; import {BaseError} from "./BaseError"; diff --git a/src/lib/errors/UserNotFoundError.ts b/src/lib/errors/UserNotFoundError.ts index 23038d7..154cd77 100644 --- a/src/lib/errors/UserNotFoundError.ts +++ b/src/lib/errors/UserNotFoundError.ts @@ -1,3 +1,4 @@ +import * as httpStatus from "http-status"; import {BaseError} from "./BaseError"; /**