chore(deps): update dependencies and add type definitions

This commit is contained in:
2023-03-21 22:03:57 +08:00
parent 41c89e0203
commit 9a5ec9f0a1
4 changed files with 1120 additions and 840 deletions

View File

@ -11,21 +11,21 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.2",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/icons-material": "^5.11.11",
"@mui/material": "^5.11.13",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/tampermonkey": "^4.0.5",
"@vitejs/plugin-react": "^2.0.0",
"eslint-config-wesbos": "^3.0.2",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/tampermonkey": "^4.0.10",
"@vitejs/plugin-react": "^2.2.0",
"eslint-config-wesbos": "^3.2.3",
"typescript": "^4.9.5",
"vite": "^3.2.5",
"vite-plugin-monkey": "1.1.4"
}
}

1930
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@ const App = () => {
};
const getCookie = () =>
new Promise((resolve, reject) => {
new Promise<TampermonkeyBeta.Cookie[]>((resolve, reject) => {
GM_cookie('list', {}, (cookie, error) => {
if (error) {
reject(error);
@ -59,7 +59,7 @@ const App = () => {
});
const setCookie = (cookieObj: TampermonkeyBeta.Cookie) =>
new Promise((resolve, reject) => {
new Promise<TampermonkeyBeta.Cookie[]>((resolve, reject) => {
GM_cookie('set', cookieObj, (cookie, error) => {
if (error) {
reject(error);
@ -70,7 +70,7 @@ const App = () => {
});
const deleteCookie = async () => {
const currentCookie = (await getCookie()) as TampermonkeyBeta.Cookie[];
const currentCookie = await getCookie();
return new Promise((resolve, reject) => {
currentCookie.forEach((cookieRecord) => {
GM_cookie('delete', { name: cookieRecord.name }, (cookie, error) => {

View File

@ -12,7 +12,7 @@ export default defineConfig({
name: 'Session Magician',
namespace: 'https://www.imbytecat.com/',
icon: 'https://vitejs.dev/logo.svg',
version: '2.2.2',
version: '2.2.3',
description: 'Session Magician & Session Tools & Export/Import Sessions',
author: 'imbytecat',
match: ['*://*/*'],