Updated to new dependencies (#95)

This commit is contained in:
David
2022-02-24 21:33:17 +01:00
committed by GitHub
parent 5856776785
commit 16ab855ccc
5 changed files with 2638 additions and 3517 deletions

1
next-env.d.ts vendored
View File

@@ -1,5 +1,4 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
// NOTE: This file should not be edited // NOTE: This file should not be edited

View File

@@ -12,55 +12,46 @@
"cy:run": "cypress run" "cy:run": "cypress run"
}, },
"dependencies": { "dependencies": {
"@chakra-ui/icons": "^1.0.15", "@chakra-ui/icons": "1.0.15",
"@chakra-ui/react": "^1.6.6", "@chakra-ui/react": "1.6.6",
"@emotion/react": "^11", "@emotion/react": "^11",
"@emotion/styled": "^11", "@emotion/styled": "^11",
"apollo-server-micro": "^2.25.2", "apollo-server-micro": "^2.25.2",
"cheerio": "^1.0.0-rc.10", "cheerio": "^1.0.0-rc.10",
"framer-motion": "^4", "framer-motion": "^4",
"graphql": "^15.5.0", "graphql": "^15.8.0",
"next": "11.1.0", "next": "12.1.0",
"next-pwa": "^5.3.1", "next-pwa": "^5.4.4",
"nextjs-cors": "^1.0.5", "nextjs-cors": "^2.1.0",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2", "react-dom": "17.0.2",
"react-hotkeys-hook": "^3.3.1", "react-hotkeys-hook": "^3.4.4",
"react-icons": "^4.2.0", "react-icons": "^4.3.1",
"user-agents": "^1.0.680" "user-agents": "^1.0.937"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/cypress": "^8.0.0", "@testing-library/cypress": "^8.0.2",
"@testing-library/jest-dom": "^5.14.1", "@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.0.0", "@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.2.1", "@testing-library/user-event": "^13.5.0",
"@types/faker": "^5.5.6", "@types/faker": "^5.5.6",
"@types/jest": "^27.0.1", "@types/jest": "^27.4.1",
"@types/node": "^16.7.4", "@types/node": "^17.0.21",
"@types/react": "^17.0.19", "@types/react": "^17.0.39",
"@types/user-agents": "^1.0.0", "@types/user-agents": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^4.0.0",
"apollo-server-testing": "^2.25.2", "apollo-server-testing": "^2.25.2",
"babel-eslint": "^10.0.0", "babel-eslint": "^10.1.0",
"cypress": "^8.3.1", "cypress": "^9.5.0",
"eslint": "^7.5.0", "eslint": "^8.9.0",
"eslint-config-next": "^11.0.1", "eslint-config-next": "^12.1.0",
"eslint-config-react-app": "^6.0.0", "eslint-config-react-app": "^7.0.0",
"eslint-plugin-cypress": "^2.11.3", "eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.0.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-testing-library": "^3.9.0",
"faker": "^5.5.3", "faker": "^5.5.3",
"jest": "^27.1.0", "jest": "^27.5.1",
"jest-fetch-mock": "^3.0.3", "jest-fetch-mock": "^3.0.3",
"node-mocks-http": "^1.10.1", "node-mocks-http": "^1.11.0",
"typescript": "^4.4.2", "typescript": "^4.5.5",
"wait-on": "^6.0.0" "wait-on": "^6.0.1"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [
@@ -68,6 +59,15 @@
"react-app/jest", "react-app/jest",
"plugin:cypress/recommended", "plugin:cypress/recommended",
"next" "next"
],
"overrides": [
{
"files": ["cypress/integration/*.ts"],
"rules": {
"testing-library/await-async-query": "off",
"testing-library/prefer-screen-queries": "off"
}
}
] ]
}, },
"babel": { "babel": {

View File

@@ -114,9 +114,9 @@ const handler: NextApiHandler = async (req, res) => {
origin: "*" origin: "*"
}); });
return req.method !== "OPTIONS" if (req.method !== "OPTIONS")
? apolloHandler(req, res) return apolloHandler(req, res);
: res.end(); res.end();
}; };
export default handler; export default handler;

View File

@@ -17,6 +17,7 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"@*": ["*"] "@*": ["*"]

6075
yarn.lock

File diff suppressed because it is too large Load Diff