Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin committed Oct 26, 2023
1 parent c9b96fc commit 6d08028
Show file tree
Hide file tree
Showing 6 changed files with 2,064 additions and 2,108 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- name: Build project
run: yarn install
- name: Run jests
run: yarn ci:test
run: yarn test:ci
3 changes: 2 additions & 1 deletion middlewares/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ interface CustomNextApiRequest extends NextApiRequest {
client: sheets_v4.Sheets;
}
const authorize =
(handler: any) => async (req: CustomNextApiRequest, res: NextApiResponse) => {
(handler: CallableFunction) =>
async (req: CustomNextApiRequest, res: NextApiResponse) => {
const jwt = await getToken({ req, secret: process.env.NEXTAUTH_SECRET });

const user = jwt?.user as User;
Expand Down
3 changes: 2 additions & 1 deletion middlewares/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ interface CustomNextApiRequest extends NextApiRequest {
}

const indexHandler =
(handler: any) => async (req: CustomNextApiRequest, res: NextApiResponse) => {
(handler: CallableFunction) =>
async (req: CustomNextApiRequest, res: NextApiResponse) => {
const index = await getIndex(req.client, req.user);

if (!index) {
Expand Down
3 changes: 2 additions & 1 deletion middlewares/week.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ interface CustomNextApiRequest extends NextApiRequest {
}

const weekHandler =
(handler: any) => async (req: CustomNextApiRequest, res: NextApiResponse) => {
(handler: CallableFunction) =>
async (req: CustomNextApiRequest, res: NextApiResponse) => {
const week = Number(req.query.week);

if (Number.isNaN(week)) {
Expand Down
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@
"lint": "next lint",
"lint:ts": "eslint --ext ts,tsx ./ --max-warnings=0",
"fix:ts": "eslint --ext ts,tsx ./ --max-warnings=0 --fix",
"test": "jest --watch",
"ci:test": "jest --ci",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci",
"coverage": "jest --coverage"
},
"engines": {
"npm": ">=9.4.4",
"node": ">=18.0.0"
},
"dependencies": {
"@vercel/kv": "^0.2.1",
"googleapis": "^118.0.0",
"lodash.debounce": "^4.0.8",
"moment": "^2.29.4",
"next": "13.3.4",
"next": "~13.3.4",
"next-auth": "^4.22.1",
"next-pwa": "^5.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.8.0",
"react-query": "^3.39.3",
"react-test-renderer": "^18.2.0",
Expand All @@ -31,19 +36,18 @@
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.1",
"@types/lodash.debounce": "^4.0.7",
"@types/node": "18.16.3",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.1",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"autoprefixer": "10.4.14",
"eslint": "8.39.0",
"@types/node": "^18.16.3",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.39.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-next": "13.3.4",
"eslint-config-next": "^13.3.4",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.25.3",
Expand All @@ -56,10 +60,10 @@
"eslint-plugin-tailwindcss": "^3.8.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "8.4.23",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"tailwindcss": "3.3.2",
"tailwindcss": "^3.3.2",
"ts-jest": "^29.1.0",
"typescript": "5.0.4"
"typescript": "^5.1.0"
}
}
Loading

0 comments on commit 6d08028

Please sign in to comment.