Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
chore: upgrade dependencies (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: Samer Buna <[email protected]>
  • Loading branch information
samerbuna and samerbuna authored Dec 23, 2021
1 parent 6759131 commit 7b1c850
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 453 deletions.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,41 @@
"prod:stop": "pm2 stop web-walletProd",
"test:verify": "jest --coverage",
"test": "cross-env-file -p .env.local jest",
"tsc:check": "tsc --pretty --noEmit",
"tsc:check": "tsc --pretty --noEmit --skipLibCheck",
"dev:codegen": "graphql-codegen --config codegen.yml"
},
"dependencies": {
"@urql/core": "^2.3.6",
"autoprefixer": "^10.4.0",
"body-parser": "^1.19.0",
"body-parser": "^1.19.1",
"cookie-session": "^2.0.0",
"copyfiles": "^2.4.1",
"cross-env-file": "^1.0.0",
"cross-fetch": "^3.1.4",
"css-loader": "^6.5.1",
"ejs": "^3.1.6",
"express": "^4.17.1",
"graphql": "^16.1.0",
"express": "^4.17.2",
"graphql": "^16.2.0",
"helmet": "^4.6.0",
"history": "^5.1.0",
"history": "^5.2.0",
"intl-tel-input": "^17.0.15",
"mini-css-extract-plugin": "^2.4.5",
"morgan": "^1.10.0",
"normalize.css": "^8.0.1",
"pm2": "^5.1.2",
"postcss": "^8.4.4",
"postcss": "^8.4.5",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.2.1",
"postcss-nested": "^5.0.6",
"react": "^18.0.0-rc.0-next-f2a59df48-20211208",
"react-dom": "^18.0.0-rc.0-next-f2a59df48-20211208",
"react": "^18.0.0-rc.0-next-20212349a-20211223",
"react-dom": "^18.0.0-rc.0-next-20212349a-20211223",
"react-ssr-prepass": "^1.4.0",
"regenerator-runtime": "^0.13.9",
"serialize-javascript": "^6.0.0",
"source-map-loader": "^3.0.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.2.6",
"typescript": "^4.5.2",
"typescript": "^4.5.4",
"urql": "^2.0.6",
"webpack": "^5.64.4",
"webpack-cli": "^4.9.1"
Expand All @@ -75,21 +75,21 @@
"@types/intl-tel-input": "^17.0.4",
"@types/mini-css-extract-plugin": "^2.4.0",
"@types/morgan": "^1.9.3",
"@types/react": "^17.0.37",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/serialize-javascript": "^5.0.1",
"@types/testing-library__jest-dom": "^5.14.2",
"@types/testing-library__user-event": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"babel-jest": "^27.4.2",
"eslint": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"babel-jest": "^27.4.5",
"eslint": "^8.5.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"jest": "^27.4.3",
"jest": "^27.4.5",
"prettier": "^2.5.1",
"ts-jest": "^27.1.0",
"ts-jest": "^27.1.2",
"ts-node-dev": "^1.1.8",
"typesync": "^0.8.0"
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const Root = ({ initialState }: { initialState: InitialState }) => {

useEffect(() => {
const unlisten = history.listen(({ location }) => {
dispatch({ type: "state", path: location.pathname, ...location.state })
dispatch({
type: "state",
path: location.pathname,
...(location.state as Record<string, unknown> | null),
})
})
return () => unlisten()
}, [])
Expand Down
Loading

0 comments on commit 7b1c850

Please sign in to comment.