fix: update dev deps and minor version updates

This commit is contained in:
spencerwooo 2023-01-26 13:18:26 +08:00
parent e568fdd185
commit 1b6748398f
No known key found for this signature in database
GPG key ID: 24CD550268849CA0
3 changed files with 368 additions and 238 deletions

View file

@ -16,22 +16,22 @@
"@fortawesome/free-regular-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"@headlessui/react": "^1.7.3",
"@headlessui/react": "^1.7.7",
"@tailwindcss/line-clamp": "^0.4.2",
"awesome-debounce-promise": "^2.1.0",
"axios": "^1.1.2",
"cors": "^2.8.5",
"crypto-js": "^4.1.1",
"csstype": "^3.1.1",
"dayjs": "^1.11.5",
"dayjs": "^1.11.7",
"emoji-regex": "^10.2.1",
"ioredis": "^5.2.3",
"ioredis": "^5.3.0",
"jszip": "^3.10.1",
"mpegts.js": "^1.6.10",
"mpegts.js": "^1.7.2",
"next": "^12.3.1",
"next-i18next": "^12.1.0",
"nextjs-progressbar": "^0.0.14",
"plyr-react": "^5.1.0",
"nextjs-progressbar": "^0.0.16",
"plyr-react": "^5.1.2",
"preview-office-docs": "^1.0.2",
"react": "^18.2.0",
"react-async-hook": "^4.0.0",
@ -41,7 +41,7 @@
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.0",
"react-hotkeys-hook": "^3.4.7",
"react-markdown": "^8.0.3",
"react-markdown": "^8.0.5",
"react-reader": "^0.21.3",
"react-syntax-highlighter": "^15.5.0",
"react-use-system-theme": "^1.1.1",
@ -54,23 +54,23 @@
"use-constant": "^1.1.1"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/cors": "^2.8.13",
"@types/crypto-js": "^4.0.2",
"@types/node": "18.8.3",
"@types/react": "18.0.21",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.0.6",
"@types/react-pdf": "^5.0.4",
"@types/react-syntax-highlighter": "^15.5.5",
"autoprefixer": "^10.4.12",
"eslint": "8.25.0",
"@types/react-syntax-highlighter": "^15.5.6",
"autoprefixer": "^10.4.13",
"eslint": "8.32.0",
"eslint-config-next": "12.3.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-prettier": "^8.6.0",
"i18next-parser": "^6.6.0",
"postcss": "^8.4.17",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"tailwindcss": "^3.1.8",
"typescript": "4.8.4"
"postcss": "^8.4.21",
"prettier": "^2.8.3",
"prettier-plugin-tailwindcss": "^0.2.2",
"tailwindcss": "^3.2.4",
"typescript": "4.9.4"
}
}

File diff suppressed because it is too large Load diff

View file

@ -97,11 +97,13 @@ const extensions = {
* To stop TypeScript complaining about indexing the object with a non-existent key
* https://dev.to/mapleleaf/indexing-objects-in-typescript-1cgi
*
* Fixed by ChatGPT with the upgrade of TypeScript 4.9
*
* @param obj Object with keys to index
* @param key The index key
* @returns Whether or not the key exists inside the object
*/
export function hasKey<O>(obj: O, key: PropertyKey): key is keyof O {
export function hasKey(obj: Record<string, any>, key: string): boolean {
return key in obj
}