Updated to new dependencies (#95)
This commit is contained in:
1
next-env.d.ts
vendored
1
next-env.d.ts
vendored
@@ -1,5 +1,4 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
|
||||
72
package.json
72
package.json
@@ -12,55 +12,46 @@
|
||||
"cy:run": "cypress run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/icons": "^1.0.15",
|
||||
"@chakra-ui/react": "^1.6.6",
|
||||
"@chakra-ui/icons": "1.0.15",
|
||||
"@chakra-ui/react": "1.6.6",
|
||||
"@emotion/react": "^11",
|
||||
"@emotion/styled": "^11",
|
||||
"apollo-server-micro": "^2.25.2",
|
||||
"cheerio": "^1.0.0-rc.10",
|
||||
"framer-motion": "^4",
|
||||
"graphql": "^15.5.0",
|
||||
"next": "11.1.0",
|
||||
"next-pwa": "^5.3.1",
|
||||
"nextjs-cors": "^1.0.5",
|
||||
"graphql": "^15.8.0",
|
||||
"next": "12.1.0",
|
||||
"next-pwa": "^5.4.4",
|
||||
"nextjs-cors": "^2.1.0",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"react-hotkeys-hook": "^3.3.1",
|
||||
"react-icons": "^4.2.0",
|
||||
"user-agents": "^1.0.680"
|
||||
"react-hotkeys-hook": "^3.4.4",
|
||||
"react-icons": "^4.3.1",
|
||||
"user-agents": "^1.0.937"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/cypress": "^8.0.0",
|
||||
"@testing-library/jest-dom": "^5.14.1",
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"@testing-library/user-event": "^13.2.1",
|
||||
"@testing-library/cypress": "^8.0.2",
|
||||
"@testing-library/jest-dom": "^5.16.2",
|
||||
"@testing-library/react": "^12.1.3",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"@types/faker": "^5.5.6",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/node": "^16.7.4",
|
||||
"@types/react": "^17.0.19",
|
||||
"@types/user-agents": "^1.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
||||
"@typescript-eslint/parser": "^4.0.0",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^17.0.21",
|
||||
"@types/react": "^17.0.39",
|
||||
"@types/user-agents": "^1.0.2",
|
||||
"apollo-server-testing": "^2.25.2",
|
||||
"babel-eslint": "^10.0.0",
|
||||
"cypress": "^8.3.1",
|
||||
"eslint": "^7.5.0",
|
||||
"eslint-config-next": "^11.0.1",
|
||||
"eslint-config-react-app": "^6.0.0",
|
||||
"eslint-plugin-cypress": "^2.11.3",
|
||||
"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",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"cypress": "^9.5.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-config-next": "^12.1.0",
|
||||
"eslint-config-react-app": "^7.0.0",
|
||||
"eslint-plugin-cypress": "^2.12.1",
|
||||
"faker": "^5.5.3",
|
||||
"jest": "^27.1.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-fetch-mock": "^3.0.3",
|
||||
"node-mocks-http": "^1.10.1",
|
||||
"typescript": "^4.4.2",
|
||||
"wait-on": "^6.0.0"
|
||||
"node-mocks-http": "^1.11.0",
|
||||
"typescript": "^4.5.5",
|
||||
"wait-on": "^6.0.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
@@ -68,6 +59,15 @@
|
||||
"react-app/jest",
|
||||
"plugin:cypress/recommended",
|
||||
"next"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["cypress/integration/*.ts"],
|
||||
"rules": {
|
||||
"testing-library/await-async-query": "off",
|
||||
"testing-library/prefer-screen-queries": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"babel": {
|
||||
|
||||
@@ -114,9 +114,9 @@ const handler: NextApiHandler = async (req, res) => {
|
||||
origin: "*"
|
||||
});
|
||||
|
||||
return req.method !== "OPTIONS"
|
||||
? apolloHandler(req, res)
|
||||
: res.end();
|
||||
if (req.method !== "OPTIONS")
|
||||
return apolloHandler(req, res);
|
||||
res.end();
|
||||
};
|
||||
|
||||
export default handler;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@*": ["*"]
|
||||
|
||||
Reference in New Issue
Block a user