Skip to content

Commit

Permalink
Upgrade all dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Jul 24, 2023
1 parent dcff78c commit 7fe5623
Show file tree
Hide file tree
Showing 5 changed files with 748 additions and 656 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// well....
if (require('eslint-config-standard-with-typescript/package.json').version === '37.0.0') {
console.log('Patching eslint-config-standard-with-typescript for TypeScript ESLint 6 support.')
const fs = require('fs')
const path = require('path')
const target = path.join(__dirname, 'node_modules', 'eslint-config-standard-with-typescript', 'lib', 'index.js')
const contents = fs.readFileSync(target, { encoding: 'utf8' }).split('\n')
.filter(line => !line.includes('restrict-plus-operands'))
.join('\n')
fs.writeFileSync(target, contents, { encoding: 'utf8' })
}

module.exports = {
env: {
es6: true,
Expand Down
2 changes: 1 addition & 1 deletion imports/dashboard/files/fileManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const FileManager = (props: {
} catch (e: any) { setMessage(`Error saving file! ${e}`); console.error(e) }
}

const selectedFile = menuOpen && files && files.find(e => e.name === menuOpen)
const selectedFile = menuOpen && files?.find(e => e.name === menuOpen)
const titleName = file?.name ? file.name + ' - ' : (path ? path + ' - ' : '')
const alternativeDisplay = !error ? (
!files || !server ? <ConnectionFailure loading={fetching} /> : null
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,38 @@
"@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.13.7",
"@mui/material": "^5.13.7",
"@mui/icons-material": "^5.14.1",
"@mui/material": "^5.14.1",
"ky": "^0.33.3",
"next": "^13.4.8",
"next": "^13.4.12",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-virtualized-auto-sizer": "^1.0.20",
"react-window": "^1.8.9"
},
"devDependencies": {
"@babel/core": "^7.22.6",
"@next/eslint-plugin-next": "^13.4.8",
"@testing-library/jest-dom": "^5.16.5",
"@babel/core": "^7.22.9",
"@next/eslint-plugin-next": "^13.4.12",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@types/node": "^20.3.3",
"@types/react": "^18.2.14",
"@types/node": "^20.4.4",
"@types/react": "^18.2.15",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"eslint": "^8.44.0",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"eslint": "^8.45.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-react": "^13.0.0",
"eslint-config-standard-with-typescript": "^36.0.0",
"eslint-config-standard-with-typescript": "^37.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"jest": "^29.6.0",
"jest-environment-jsdom": "^29.6.0",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"next-router-mock": "^0.9.7",
"typescript": "^5.1.6"
}
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Index = (): JSX.Element => {
useEffect(() => {
// Check the access token in localStorage if we are on the client.
// We'll add sessionStorage support later for Remember Me stuff.
if (typeof localStorage !== 'undefined' && localStorage.getItem('token')) {
if (typeof localStorage === 'object' && localStorage.getItem('token')) {
// Then we redirect to the new page.
router.push(route).catch(console.error)
} else {
Expand Down
Loading

0 comments on commit 7fe5623

Please sign in to comment.