Skip to content

Commit

Permalink
ci: Bump deps (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefKai authored Apr 1, 2021
1 parent 1987557 commit 9ce0709
Show file tree
Hide file tree
Showing 9 changed files with 406 additions and 333 deletions.
5 changes: 2 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-unused-vars": ["error"],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["warn"],
"@typescript-eslint/no-use-before-define": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
}
Expand Down
4 changes: 2 additions & 2 deletions api/leaderboard/global.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { toChecksumAddress } from "ethereumjs-util";
import { getModel } from "../../utils/mongo";
import { User } from "../../utils/types";

export default async (req: NowRequest, res: NowResponse): Promise<NowResponse | void> => {
export default async (req: VercelRequest, res: VercelResponse): Promise<VercelResponse | void> => {
if (req.method?.toUpperCase() === "OPTIONS") {
return res.status(204).end();
}
Expand Down
4 changes: 2 additions & 2 deletions api/leaderboard/team.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { toChecksumAddress } from "ethereumjs-util";
import { getModel } from "../../utils/mongo";
import { User } from "../../utils/types";

export default async (req: NowRequest, res: NowResponse): Promise<NowResponse | void> => {
export default async (req: VercelRequest, res: VercelResponse): Promise<VercelResponse | void> => {
if (req.method?.toUpperCase() === "OPTIONS") {
return res.status(204).end();
}
Expand Down
4 changes: 2 additions & 2 deletions api/users/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { toChecksumAddress } from "ethereumjs-util";
import { getModel } from "../../utils/mongo";

export default async (req: NowRequest, res: NowResponse): Promise<NowResponse | void> => {
export default async (req: VercelRequest, res: VercelResponse): Promise<VercelResponse | void> => {
if (req.method?.toUpperCase() === "OPTIONS") {
return res.status(204).end();
}
Expand Down
4 changes: 2 additions & 2 deletions api/users/register.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { isValid, verifyMessage } from "../../utils";
import { getModel } from "../../utils/mongo";

export default async (req: NowRequest, res: NowResponse): Promise<NowResponse | void> => {
export default async (req: VercelRequest, res: VercelResponse): Promise<VercelResponse | void> => {
if (req.method?.toUpperCase() === "OPTIONS") {
return res.status(204).end();
}
Expand Down
4 changes: 2 additions & 2 deletions api/users/valid.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { isValid } from "../../utils";

export default async (req: NowRequest, res: NowResponse): Promise<NowResponse | void> => {
export default async (req: VercelRequest, res: VercelResponse): Promise<VercelResponse | void> => {
if (req.method?.toUpperCase() === "OPTIONS") {
return res.status(204).end();
}
Expand Down
4 changes: 2 additions & 2 deletions api/version.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NowRequest, NowResponse } from "@vercel/node";
import { VercelRequest, VercelResponse } from "@vercel/node";
import { version } from "../package.json";

export default (req: NowRequest, res: NowResponse): void => {
export default (req: VercelRequest, res: VercelResponse): void => {
res.json({ version });
};
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
},
"dependencies": {
"ethereumjs-util": "^7.0.9",
"mongoose": "^5.12.1"
"mongoose": "^5.12.3"
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"@vercel/node": "^1.9.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-jest": "^24.1.5",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"@vercel/node": "^1.9.1",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jest": "^24.3.2",
"husky": "^4.3.8",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.5.2",
"ts-jest": "^26.5.4",
"ts-node": "^9.1.1",
"typescript": "^4.1.5"
"typescript": "^4.2.3"
}
}
Loading

0 comments on commit 9ce0709

Please sign in to comment.